mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 17:13:48 +00:00
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
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
|
|
|