2021-01-15 10:56:44 +01:00
|
|
|
// run-rustfix
|
|
|
|
#![feature(rustc_private)]
|
|
|
|
#![deny(clippy::internal)]
|
|
|
|
#![allow(clippy::unnecessary_operation, unused_must_use)]
|
|
|
|
|
|
|
|
extern crate rustc_span;
|
|
|
|
|
|
|
|
use rustc_span::symbol::{Ident, Symbol};
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
Symbol::intern("foo").as_str() == "clippy";
|
|
|
|
Symbol::intern("foo").to_string() == "self";
|
|
|
|
Symbol::intern("foo").to_ident_string() != "Self";
|
2021-10-17 23:20:30 +03:00
|
|
|
&*Ident::empty().as_str() == "clippy";
|
|
|
|
"clippy" == Ident::empty().to_string();
|
2021-01-15 10:56:44 +01:00
|
|
|
}
|