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