2020-12-12 22:32:41 -06:00
|
|
|
error: interning a defined symbol
|
2021-11-11 05:54:53 -06:00
|
|
|
--> $DIR/interning_defined_symbol.rs:18: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
|
|
|
|
--> $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-11-11 05:54:53 -06:00
|
|
|
--> $DIR/interning_defined_symbol.rs:21: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
|
2021-11-11 05:54:53 -06:00
|
|
|
--> $DIR/interning_defined_symbol.rs:24: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
|
2021-11-11 05:54:53 -06:00
|
|
|
--> $DIR/interning_defined_symbol.rs:27: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
|
|
|
|