2 #![feature(rustc_private)]
3 #![deny(clippy::internal)]
5 clippy::borrow_deref_ref,
6 clippy::unnecessary_operation,
8 clippy::missing_clippy_version_attribute
11 extern crate rustc_span;
13 use rustc_span::symbol::{Ident, Symbol};
16 Symbol::intern("foo").as_str() == "clippy";
17 Symbol::intern("foo").to_string() == "self";
18 Symbol::intern("foo").to_ident_string() != "Self";
19 &*Ident::empty().as_str() == "clippy";
20 "clippy" == Ident::empty().to_string();