2020-12-13 04:32:41 +00:00
|
|
|
error: interning a defined symbol
|
|
|
|
--> $DIR/interning_defined_symbol.rs:17:13
|
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("f32");
|
2020-12-30 21:38:21 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
2020-12-13 04:32:41 +00: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
|
|
|
|
--> $DIR/interning_defined_symbol.rs:20:13
|
|
|
|
|
|
|
|
|
LL | let _ = sym!(f32);
|
2020-12-30 21:38:21 +00:00
|
|
|
| ^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
2020-12-13 04:32:41 +00:00
|
|
|
|
|
|
|
error: interning a defined symbol
|
|
|
|
--> $DIR/interning_defined_symbol.rs:23:13
|
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("proc-macro");
|
2020-12-30 21:38:21 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::proc_dash_macro`
|
2020-12-13 04:32:41 +00:00
|
|
|
|
2020-12-29 21:40:55 +00:00
|
|
|
error: interning a defined symbol
|
|
|
|
--> $DIR/interning_defined_symbol.rs:26:13
|
|
|
|
|
|
|
|
|
LL | let _ = Symbol::intern("self");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::symbol::kw::SelfLower`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2020-12-13 04:32:41 +00:00
|
|
|
|