2020-12-20 10:19:49 -06:00
|
|
|
error: interning a defined symbol
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/interning_defined_symbol.rs:18:13
|
2020-12-20 10:19:49 -06:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("f32");
|
2021-01-15 03:56:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
2020-12-20 10:19:49 -06:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/interning_defined_symbol.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(clippy::internal)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
= note: `#[deny(clippy::interning_defined_symbol)]` implied by `#[deny(clippy::internal)]`
|
|
|
|
|
|
|
|
error: interning a defined symbol
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/interning_defined_symbol.rs:21:13
|
2020-12-20 10:19:49 -06:00
|
|
|
|
|
|
|
|
LL | let _ = sym!(f32);
|
2021-01-15 03:56:44 -06:00
|
|
|
| ^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
2020-12-20 10:19:49 -06:00
|
|
|
|
|
|
|
error: interning a defined symbol
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/interning_defined_symbol.rs:24:13
|
2020-12-20 10:19:49 -06:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("proc-macro");
|
2021-01-15 03:56:44 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::proc_dash_macro`
|
2020-12-20 10:19:49 -06:00
|
|
|
|
2021-01-15 03:56:44 -06:00
|
|
|
error: interning a defined symbol
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/interning_defined_symbol.rs:27:13
|
2021-01-15 03:56:44 -06:00
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("self");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::symbol::kw::SelfLower`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2020-12-20 10:19:49 -06:00
|
|
|
|