2020-12-20 16:19:49 +00:00
|
|
|
error: interning a defined symbol
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/interning_defined_symbol.rs:17:13
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("f32");
|
2021-01-15 09:56:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/interning_defined_symbol.rs:1:9
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::internal)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
= note: `#[deny(clippy::interning_defined_symbol)]` implied by `#[deny(clippy::internal)]`
|
|
|
|
|
|
|
|
error: interning a defined symbol
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/interning_defined_symbol.rs:20:13
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | let _ = sym!(f32);
|
2021-01-15 09:56:44 +00:00
|
|
|
| ^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: interning a defined symbol
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/interning_defined_symbol.rs:23:13
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("proc-macro");
|
2021-01-15 09:56:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::proc_dash_macro`
|
2020-12-20 16:19:49 +00:00
|
|
|
|
2021-01-15 09:56:44 +00:00
|
|
|
error: interning a defined symbol
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/interning_defined_symbol.rs:26:13
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("self");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::symbol::kw::SelfLower`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2020-12-20 16:19:49 +00:00
|
|
|
|