]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-internal/unnecessary_symbol_str.stderr
Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup
[rust.git] / src / tools / clippy / tests / ui-internal / unnecessary_symbol_str.stderr
1 error: unnecessary `Symbol` to string conversion
2   --> $DIR/unnecessary_symbol_str.rs:15:5
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
8   --> $DIR/unnecessary_symbol_str.rs:3:9
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
15   --> $DIR/unnecessary_symbol_str.rs:16:5
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
21   --> $DIR/unnecessary_symbol_str.rs:17:5
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
27   --> $DIR/unnecessary_symbol_str.rs:18:5
28    |
29 LL |     &*Ident::empty().as_str() == "clippy";
30    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ident::empty().name == rustc_span::sym::clippy`
31
32 error: unnecessary `Symbol` to string conversion
33   --> $DIR/unnecessary_symbol_str.rs:19:5
34    |
35 LL |     "clippy" == Ident::empty().to_string();
36    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::clippy == Ident::empty().name`
37
38 error: aborting due to 5 previous errors
39