@@ -16,12 +16,6 @@ pub const APPLICABILITY_VALUES: [[&str; 3]; 4] = [
1616#[ cfg( feature = "internal" ) ]
1717pub const DIAGNOSTIC_BUILDER : [ & str ; 3 ] = [ "rustc_errors" , "diagnostic_builder" , "DiagnosticBuilder" ] ;
1818pub const ARC_PTR_EQ : [ & str ; 4 ] = [ "alloc" , "sync" , "Arc" , "ptr_eq" ] ;
19- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
20- pub const ASSERT_EQ_MACRO : [ & str ; 3 ] = [ "core" , "macros" , "assert_eq" ] ;
21- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
22- pub const ASSERT_MACRO : [ & str ; 4 ] = [ "core" , "macros" , "builtin" , "assert" ] ;
23- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
24- pub const ASSERT_NE_MACRO : [ & str ; 3 ] = [ "core" , "macros" , "assert_ne" ] ;
2519pub const ASMUT_TRAIT : [ & str ; 3 ] = [ "core" , "convert" , "AsMut" ] ;
2620pub const ASREF_TRAIT : [ & str ; 3 ] = [ "core" , "convert" , "AsRef" ] ;
2721/// Preferably use the diagnostic item `sym::Borrow` where possible
@@ -43,17 +37,11 @@ pub const DISPLAY_TRAIT: [&str; 3] = ["core", "fmt", "Display"];
4337pub const DROP : [ & str ; 3 ] = [ "core" , "mem" , "drop" ] ;
4438#[ cfg( feature = "internal" ) ]
4539pub const EARLY_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "EarlyContext" ] ;
46- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
47- pub const EPRINT_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "eprint" ] ;
48- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
49- pub const EPRINTLN_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "eprintln" ] ;
5040pub const EXIT : [ & str ; 3 ] = [ "std" , "process" , "exit" ] ;
5141pub const F32_EPSILON : [ & str ; 4 ] = [ "core" , "f32" , "<impl f32>" , "EPSILON" ] ;
5242pub const F64_EPSILON : [ & str ; 4 ] = [ "core" , "f64" , "<impl f64>" , "EPSILON" ] ;
5343pub const FILE : [ & str ; 3 ] = [ "std" , "fs" , "File" ] ;
5444pub const FILE_TYPE : [ & str ; 3 ] = [ "std" , "fs" , "FileType" ] ;
55- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
56- pub const FORMAT_ARGS_MACRO : [ & str ; 4 ] = [ "core" , "macros" , "builtin" , "format_args" ] ;
5745pub const FROM_FROM : [ & str ; 4 ] = [ "core" , "convert" , "From" , "from" ] ;
5846pub const FROM_ITERATOR_METHOD : [ & str ; 6 ] = [ "core" , "iter" , "traits" , "collect" , "FromIterator" , "from_iter" ] ;
5947pub const FROM_STR_METHOD : [ & str ; 5 ] = [ "core" , "str" , "traits" , "FromStr" , "from_str" ] ;
@@ -116,10 +104,6 @@ pub const PERMISSIONS_FROM_MODE: [&str; 6] = ["std", "os", "unix", "fs", "Permis
116104pub const POLL : [ & str ; 4 ] = [ "core" , "task" , "poll" , "Poll" ] ;
117105pub const POLL_PENDING : [ & str ; 5 ] = [ "core" , "task" , "poll" , "Poll" , "Pending" ] ;
118106pub const POLL_READY : [ & str ; 5 ] = [ "core" , "task" , "poll" , "Poll" , "Ready" ] ;
119- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
120- pub const PRINT_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "print" ] ;
121- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
122- pub const PRINTLN_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "println" ] ;
123107pub const PTR_COPY : [ & str ; 3 ] = [ "core" , "intrinsics" , "copy" ] ;
124108pub const PTR_COPY_NONOVERLAPPING : [ & str ; 3 ] = [ "core" , "intrinsics" , "copy_nonoverlapping" ] ;
125109pub const PTR_EQ : [ & str ; 3 ] = [ "core" , "ptr" , "eq" ] ;
@@ -200,8 +184,4 @@ pub const VEC_NEW: [&str; 4] = ["alloc", "vec", "Vec", "new"];
200184pub const VEC_RESIZE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "resize" ] ;
201185pub const WEAK_ARC : [ & str ; 3 ] = [ "alloc" , "sync" , "Weak" ] ;
202186pub const WEAK_RC : [ & str ; 3 ] = [ "alloc" , "rc" , "Weak" ] ;
203- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
204- pub const WRITE_MACRO : [ & str ; 3 ] = [ "core" , "macros" , "write" ] ;
205- #[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
206- pub const WRITELN_MACRO : [ & str ; 3 ] = [ "core" , "macros" , "writeln" ] ;
207187pub const PTR_NON_NULL : [ & str ; 4 ] = [ "core" , "ptr" , "non_null" , "NonNull" ] ;
0 commit comments