mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
error: interning a defined symbol
|
|
--> $DIR/interning_defined_symbol.rs:17:13
|
|
|
|
|
LL | let _ = Symbol::intern("f32");
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/interning_defined_symbol.rs:1: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);
|
|
| ^^^^^^^^^ help: try: `rustc_span::sym::f32`
|
|
|
|
error: interning a defined symbol
|
|
--> $DIR/interning_defined_symbol.rs:23: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:26:13
|
|
|
|
|
LL | let _ = Symbol::intern("self");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::symbol::kw::SelfLower`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|