mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-27 13:33:26 +00:00
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
error: interning a defined symbol
|
|
--> $DIR/interning_defined_symbol.rs:18:13
|
|
|
|
|
LL | let _ = Symbol::intern("f32");
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
|
|
|
|
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:21:13
|
|
|
|
|
LL | let _ = sym!(f32);
|
|
| ^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
|
|
|
error: interning a defined symbol
|
|
--> $DIR/interning_defined_symbol.rs:24:13
|
|
|
|
|
LL | let _ = Symbol::intern("proc-macro");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::proc_dash_macro`
|
|
|
|
error: interning a defined symbol
|
|
--> $DIR/interning_defined_symbol.rs:27:13
|
|
|
|
|
LL | let _ = Symbol::intern("self");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::symbol::kw::SelfLower`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|