mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-30 06:53:27 +00:00
20 lines
567 B
Rust
20 lines
567 B
Rust
#![feature(rustc_private)]
|
|
#![deny(clippy::internal)]
|
|
#![allow(
|
|
clippy::borrow_deref_ref,
|
|
clippy::unnecessary_operation,
|
|
unused_must_use,
|
|
clippy::missing_clippy_version_attribute
|
|
)]
|
|
|
|
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::empty().name == rustc_span::sym::clippy;
|
|
rustc_span::sym::clippy == Ident::empty().name;
|
|
}
|