2020-12-13 04:32:41 +00:00
|
|
|
error: interning a defined symbol
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:17:13
|
2020-12-13 04:32:41 +00:00
|
|
|
|
|
|
|
|
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
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:1:9
|
2020-12-13 04:32:41 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::internal)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
= note: `#[deny(clippy::interning_defined_symbol)]` implied by `#[deny(clippy::internal)]`
|
|
|
|
|
|
|
|
error: interning a defined symbol
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:20:13
|
2020-12-13 04:32:41 +00:00
|
|
|
|
|
|
|
|
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
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:23:13
|
2020-12-13 04:32:41 +00:00
|
|
|
|
|
|
|
|
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
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui-internal/interning_defined_symbol.rs:26:13
|
2020-12-29 21:40:55 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|