fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unnecessary `Symbol` to string conversion 2 --> $DIR/unnecessary_symbol_str.rs:15:5 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 8 --> $DIR/unnecessary_symbol_str.rs:2:9 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 15 --> $DIR/unnecessary_symbol_str.rs:16:5 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 21 --> $DIR/unnecessary_symbol_str.rs:17:5 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 27 --> $DIR/unnecessary_symbol_str.rs:18:5 28 | 29LL | &*Ident::empty().as_str() == "clippy"; 30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Ident::empty().name == rustc_span::sym::clippy` 31 32error: unnecessary `Symbol` to string conversion 33 --> $DIR/unnecessary_symbol_str.rs:19:5 34 | 35LL | "clippy" == Ident::empty().to_string(); 36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `rustc_span::sym::clippy == Ident::empty().name` 37 38error: aborting due to 5 previous errors 39