]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: unnecessary `Symbol` to string conversion |
c620b35d | 2 | --> tests/ui-internal/unnecessary_symbol_str.rs:15:5 |
f20569fa XL |
3 | | |
4 | LL | Symbol::intern("foo").as_str() == "clippy"; | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Symbol::intern("foo") == rustc_span::sym::clippy` | |
6 | | | |
7 | note: the lint level is defined here | |
c620b35d | 8 | --> tests/ui-internal/unnecessary_symbol_str.rs:2:9 |
f20569fa XL |
9 | | |
10 | LL | #![deny(clippy::internal)] | |
11 | | ^^^^^^^^^^^^^^^^ | |
12 | = note: `#[deny(clippy::unnecessary_symbol_str)]` implied by `#[deny(clippy::internal)]` | |
13 | ||
14 | error: unnecessary `Symbol` to string conversion | |
c620b35d | 15 | --> tests/ui-internal/unnecessary_symbol_str.rs:16:5 |
f20569fa XL |
16 | | |
17 | LL | Symbol::intern("foo").to_string() == "self"; | |
18 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Symbol::intern("foo") == rustc_span::symbol::kw::SelfLower` | |
19 | ||
20 | error: unnecessary `Symbol` to string conversion | |
c620b35d | 21 | --> tests/ui-internal/unnecessary_symbol_str.rs:17:5 |
f20569fa XL |
22 | | |
23 | LL | Symbol::intern("foo").to_ident_string() != "Self"; | |
24 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Symbol::intern("foo") != rustc_span::symbol::kw::SelfUpper` | |
25 | ||
26 | error: unnecessary `Symbol` to string conversion | |
c620b35d | 27 | --> tests/ui-internal/unnecessary_symbol_str.rs:18:5 |
f20569fa | 28 | | |
3c0e092e XL |
29 | LL | &*Ident::empty().as_str() == "clippy"; |
30 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ident::empty().name == rustc_span::sym::clippy` | |
f20569fa XL |
31 | |
32 | error: unnecessary `Symbol` to string conversion | |
c620b35d | 33 | --> tests/ui-internal/unnecessary_symbol_str.rs:19:5 |
f20569fa | 34 | | |
3c0e092e XL |
35 | LL | "clippy" == Ident::empty().to_string(); |
36 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::clippy == Ident::empty().name` | |
f20569fa XL |
37 | |
38 | error: aborting due to 5 previous errors | |
39 |