]> git.lizzy.rs Git - rust.git/blob - tests/ui-internal/unnecessary_symbol_str.fixed
Fix FP in `wrong_self_convention` lint
[rust.git] / tests / ui-internal / unnecessary_symbol_str.fixed
1 // run-rustfix
2 #![feature(rustc_private)]
3 #![deny(clippy::internal)]
4 #![allow(clippy::unnecessary_operation, unused_must_use)]
5
6 extern crate rustc_span;
7
8 use rustc_span::symbol::{Ident, Symbol};
9
10 fn main() {
11     Symbol::intern("foo") == rustc_span::sym::clippy;
12     Symbol::intern("foo") == rustc_span::symbol::kw::SelfLower;
13     Symbol::intern("foo") != rustc_span::symbol::kw::SelfUpper;
14     Ident::invalid().name == rustc_span::sym::clippy;
15     rustc_span::sym::clippy == Ident::invalid().name;
16 }