]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-internal/unnecessary_def_path_hardcoded_path.rs
Rollup merge of #105768 - fee1-dead-contrib:iat-style, r=eholk
[rust.git] / src / tools / clippy / tests / ui-internal / unnecessary_def_path_hardcoded_path.rs
1 #![feature(rustc_private)]
2 #![allow(unused)]
3 #![warn(clippy::unnecessary_def_path)]
4
5 extern crate rustc_hir;
6
7 use rustc_hir::LangItem;
8
9 fn main() {
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"];
13
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"];
16 }