2023-04-20 14:37:15 +00:00
|
|
|
//@run-rustfix
|
2021-01-15 09:56:44 +00:00
|
|
|
#![feature(rustc_private)]
|
|
|
|
#![deny(clippy::internal)]
|
2021-11-11 11:54:53 +00:00
|
|
|
#![allow(
|
2022-05-29 01:57:15 +00:00
|
|
|
clippy::borrow_deref_ref,
|
2021-11-11 11:54:53 +00:00
|
|
|
clippy::unnecessary_operation,
|
|
|
|
unused_must_use,
|
|
|
|
clippy::missing_clippy_version_attribute
|
|
|
|
)]
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
extern crate rustc_span;
|
|
|
|
|
|
|
|
use rustc_span::symbol::{Ident, Symbol};
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
Symbol::intern("foo") == rustc_span::sym::clippy;
|
|
|
|
Symbol::intern("foo") == rustc_span::symbol::kw::SelfLower;
|
|
|
|
Symbol::intern("foo") != rustc_span::symbol::kw::SelfUpper;
|
2021-10-17 20:20:30 +00:00
|
|
|
Ident::empty().name == rustc_span::sym::clippy;
|
|
|
|
rustc_span::sym::clippy == Ident::empty().name;
|
2021-01-15 09:56:44 +00:00
|
|
|
}
|