2020-12-12 22:32:41 -06:00
|
|
|
error: interning a defined symbol
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:17:13
|
2020-12-12 22:32:41 -06:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("f32");
|
2020-12-30 15:38:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
2020-12-12 22:32:41 -06:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:1:9
|
2020-12-12 22:32:41 -06:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::internal)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
= note: `#[deny(clippy::interning_defined_symbol)]` implied by `#[deny(clippy::internal)]`
|
|
|
|
|
|
|
|
error: interning a defined symbol
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:20:13
|
2020-12-12 22:32:41 -06:00
|
|
|
|
|
|
|
|
LL | let _ = sym!(f32);
|
2020-12-30 15:38:21 -06:00
|
|
|
| ^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
2020-12-12 22:32:41 -06:00
|
|
|
|
|
|
|
error: interning a defined symbol
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:23:13
|
2020-12-12 22:32:41 -06:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("proc-macro");
|
2020-12-30 15:38:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::proc_dash_macro`
|
2020-12-12 22:32:41 -06:00
|
|
|
|
2020-12-29 15:40:55 -06:00
|
|
|
error: interning a defined symbol
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:26:13
|
2020-12-29 15:40:55 -06:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("self");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::symbol::kw::SelfLower`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2020-12-12 22:32:41 -06:00
|
|
|
|