1 #![feature(rustc_private)]
3 #![warn(clippy::unnecessary_def_path)]
5 extern crate rustc_hir;
7 use rustc_hir::LangItem;
10 const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
11 const DEREF_MUT_TRAIT: [&str; 4] = ["core", "ops", "deref", "DerefMut"];
12 const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"];
14 // Don't lint, not yet a diagnostic or language item
15 const DEREF_MUT_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "DerefMut", "deref_mut"];