mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
16 lines
500 B
Rust
16 lines
500 B
Rust
// 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") == rustc_span::sym::clippy;
|
|
Symbol::intern("foo") == rustc_span::symbol::kw::SelfLower;
|
|
Symbol::intern("foo") != rustc_span::symbol::kw::SelfUpper;
|
|
Ident::invalid().name == rustc_span::sym::clippy;
|
|
rustc_span::sym::clippy == Ident::invalid().name;
|
|
}
|