44//! Whenever possible, please consider diagnostic items over hardcoded paths.
55//! See <https://github.com/rust-lang/rust-clippy/issues/5393> for more information.
66
7- #[ cfg( feature = "internal" ) ]
87pub const APPLICABILITY : [ & str ; 2 ] = [ "rustc_lint_defs" , "Applicability" ] ;
9- #[ cfg( feature = "internal" ) ]
108pub const APPLICABILITY_VALUES : [ [ & str ; 3 ] ; 4 ] = [
119 [ "rustc_lint_defs" , "Applicability" , "Unspecified" ] ,
1210 [ "rustc_lint_defs" , "Applicability" , "HasPlaceholders" ] ,
1311 [ "rustc_lint_defs" , "Applicability" , "MaybeIncorrect" ] ,
1412 [ "rustc_lint_defs" , "Applicability" , "MachineApplicable" ] ,
1513] ;
16- #[ cfg( feature = "internal" ) ]
1714pub const DIAGNOSTIC_BUILDER : [ & str ; 3 ] = [ "rustc_errors" , "diagnostic_builder" , "DiagnosticBuilder" ] ;
1815pub const BINARYHEAP_ITER : [ & str ; 5 ] = [ "alloc" , "collections" , "binary_heap" , "BinaryHeap" , "iter" ] ;
1916pub const BTREEMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "alloc" , "collections" , "btree" , "map" , "BTreeMap" , "contains_key" ] ;
@@ -25,9 +22,7 @@ pub const CORE_ITER_COPIED: [&str; 6] = ["core", "iter", "traits", "iterator", "
2522pub const CORE_ITER_FILTER : [ & str ; 6 ] = [ "core" , "iter" , "traits" , "iterator" , "Iterator" , "filter" ] ;
2623pub const CORE_RESULT_OK_METHOD : [ & str ; 4 ] = [ "core" , "result" , "Result" , "ok" ] ;
2724pub const CSTRING_AS_C_STR : [ & str ; 5 ] = [ "alloc" , "ffi" , "c_str" , "CString" , "as_c_str" ] ;
28- #[ cfg( feature = "internal" ) ]
2925pub const EARLY_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "EarlyContext" ] ;
30- #[ cfg( feature = "internal" ) ]
3126pub const EARLY_LINT_PASS : [ & str ; 3 ] = [ "rustc_lint" , "passes" , "EarlyLintPass" ] ;
3227pub const F32_EPSILON : [ & str ; 4 ] = [ "core" , "f32" , "<impl f32>" , "EPSILON" ] ;
3328pub const F64_EPSILON : [ & str ; 4 ] = [ "core" , "f64" , "<impl f64>" , "EPSILON" ] ;
@@ -38,21 +33,14 @@ pub const FUTURES_IO_ASYNCWRITEEXT: [&str; 3] = ["futures_util", "io", "AsyncWri
3833pub const HASHMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "contains_key" ] ;
3934pub const HASHMAP_INSERT : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "insert" ] ;
4035pub const HASHSET_ITER : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "set" , "HashSet" , "iter" ] ;
41- #[ cfg( feature = "internal" ) ]
4236pub const IDENT : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Ident" ] ;
43- #[ cfg( feature = "internal" ) ]
4437pub const IDENT_AS_STR : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Ident" , "as_str" ] ;
4538pub const INSERT_STR : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "insert_str" ] ;
4639pub const ITERTOOLS_NEXT_TUPLE : [ & str ; 3 ] = [ "itertools" , "Itertools" , "next_tuple" ] ;
47- #[ cfg( feature = "internal" ) ]
4840pub const KW_MODULE : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "kw" ] ;
49- #[ cfg( feature = "internal" ) ]
5041pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
51- #[ cfg( feature = "internal" ) ]
5242pub const LATE_LINT_PASS : [ & str ; 3 ] = [ "rustc_lint" , "passes" , "LateLintPass" ] ;
53- #[ cfg( feature = "internal" ) ]
5443pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
55- #[ cfg( feature = "internal" ) ]
5644pub const MSRV : [ & str ; 3 ] = [ "clippy_config" , "msrvs" , "Msrv" ] ;
5745pub const OS_STRING_AS_OS_STR : [ & str ; 5 ] = [ "std" , "ffi" , "os_str" , "OsString" , "as_os_str" ] ;
5846pub const OS_STR_TO_OS_STRING : [ & str ; 5 ] = [ "std" , "ffi" , "os_str" , "OsStr" , "to_os_string" ] ;
@@ -86,17 +74,11 @@ pub const STR_CHARS: [&str; 4] = ["core", "str", "<impl str>", "chars"];
8674pub const STR_ENDS_WITH : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "ends_with" ] ;
8775pub const STR_LEN : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "len" ] ;
8876pub const STR_STARTS_WITH : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "starts_with" ] ;
89- #[ cfg( feature = "internal" ) ]
9077pub const SYMBOL : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Symbol" ] ;
91- #[ cfg( feature = "internal" ) ]
9278pub const SYMBOL_AS_STR : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "as_str" ] ;
93- #[ cfg( feature = "internal" ) ]
9479pub const SYMBOL_INTERN : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "intern" ] ;
95- #[ cfg( feature = "internal" ) ]
9680pub const SYMBOL_TO_IDENT_STRING : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "to_ident_string" ] ;
97- #[ cfg( feature = "internal" ) ]
9881pub const SYM_MODULE : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "sym" ] ;
99- #[ cfg( feature = "internal" ) ]
10082pub const SYNTAX_CONTEXT : [ & str ; 3 ] = [ "rustc_span" , "hygiene" , "SyntaxContext" ] ;
10183#[ expect( clippy:: invalid_paths) ] // internal lints do not know about all external crates
10284pub const TOKIO_IO_ASYNCREADEXT : [ & str ; 5 ] = [ "tokio" , "io" , "util" , "async_read_ext" , "AsyncReadExt" ] ;
0 commit comments