55//! See <https://github.com/rust-lang/rust-clippy/issues/5393> for more information.
66
77pub const ANY_TRAIT : [ & str ; 3 ] = [ "core" , "any" , "Any" ] ;
8- #[ cfg( feature = "metadata-collector-lint " ) ]
8+ #[ cfg( feature = "internal " ) ]
99pub const APPLICABILITY : [ & str ; 2 ] = [ "rustc_lint_defs" , "Applicability" ] ;
10- #[ cfg( feature = "metadata-collector-lint " ) ]
10+ #[ cfg( feature = "internal " ) ]
1111pub const APPLICABILITY_VALUES : [ [ & str ; 3 ] ; 4 ] = [
1212 [ "rustc_lint_defs" , "Applicability" , "Unspecified" ] ,
1313 [ "rustc_lint_defs" , "Applicability" , "HasPlaceholders" ] ,
1414 [ "rustc_lint_defs" , "Applicability" , "MaybeIncorrect" ] ,
1515 [ "rustc_lint_defs" , "Applicability" , "MachineApplicable" ] ,
1616] ;
17- #[ cfg( feature = "metadata-collector-lint " ) ]
17+ #[ cfg( feature = "internal " ) ]
1818pub const DIAGNOSTIC_BUILDER : [ & str ; 3 ] = [ "rustc_errors" , "diagnostic_builder" , "DiagnosticBuilder" ] ;
1919pub const ARC_PTR_EQ : [ & str ; 4 ] = [ "alloc" , "sync" , "Arc" , "ptr_eq" ] ;
2020#[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
@@ -45,7 +45,7 @@ pub const DISPLAY_TRAIT: [&str; 3] = ["core", "fmt", "Display"];
4545pub const DOUBLE_ENDED_ITERATOR : [ & str ; 4 ] = [ "core" , "iter" , "traits" , "DoubleEndedIterator" ] ;
4646pub const DROP : [ & str ; 3 ] = [ "core" , "mem" , "drop" ] ;
4747pub const DURATION : [ & str ; 3 ] = [ "core" , "time" , "Duration" ] ;
48- #[ cfg( feature = "internal-lints " ) ]
48+ #[ cfg( feature = "internal" ) ]
4949pub const EARLY_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "EarlyContext" ] ;
5050#[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
5151pub const EPRINT_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "eprint" ] ;
@@ -71,9 +71,9 @@ pub const HASH: [&str; 3] = ["core", "hash", "Hash"];
7171pub const HASHMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "contains_key" ] ;
7272pub const HASHMAP_ENTRY : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "map" , "Entry" ] ;
7373pub const HASHMAP_INSERT : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "insert" ] ;
74- #[ cfg( feature = "internal-lints " ) ]
74+ #[ cfg( feature = "internal" ) ]
7575pub const IDENT : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Ident" ] ;
76- #[ cfg( feature = "internal-lints " ) ]
76+ #[ cfg( feature = "internal" ) ]
7777pub const IDENT_AS_STR : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Ident" , "as_str" ] ;
7878pub const INDEX : [ & str ; 3 ] = [ "core" , "ops" , "Index" ] ;
7979pub const INDEX_MUT : [ & str ; 3 ] = [ "core" , "ops" , "IndexMut" ] ;
@@ -85,11 +85,11 @@ pub const IPADDR_V6: [&str; 5] = ["std", "net", "ip", "IpAddr", "V6"];
8585pub const ITER_REPEAT : [ & str ; 5 ] = [ "core" , "iter" , "sources" , "repeat" , "repeat" ] ;
8686#[ allow( clippy:: invalid_paths) ] // internal lints do not know about all external crates
8787pub const ITERTOOLS_NEXT_TUPLE : [ & str ; 3 ] = [ "itertools" , "Itertools" , "next_tuple" ] ;
88- #[ cfg( feature = "internal-lints " ) ]
88+ #[ cfg( feature = "internal" ) ]
8989pub const KW_MODULE : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "kw" ] ;
90- #[ cfg( feature = "internal-lints " ) ]
90+ #[ cfg( feature = "internal" ) ]
9191pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
92- #[ cfg( any ( feature = "internal-lints" , feature = "metadata-collector-lint" ) ) ]
92+ #[ cfg( feature = "internal" ) ]
9393pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
9494pub const MEM_DISCRIMINANT : [ & str ; 3 ] = [ "core" , "mem" , "discriminant" ] ;
9595pub const MEM_FORGET : [ & str ; 3 ] = [ "core" , "mem" , "forget" ] ;
@@ -179,17 +179,17 @@ pub const STR_ENDS_WITH: [&str; 4] = ["core", "str", "<impl str>", "ends_with"];
179179pub const STR_FROM_UTF8 : [ & str ; 4 ] = [ "core" , "str" , "converts" , "from_utf8" ] ;
180180pub const STR_LEN : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "len" ] ;
181181pub const STR_STARTS_WITH : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "starts_with" ] ;
182- #[ cfg( feature = "internal-lints " ) ]
182+ #[ cfg( feature = "internal" ) ]
183183pub const SYMBOL : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Symbol" ] ;
184- #[ cfg( feature = "internal-lints " ) ]
184+ #[ cfg( feature = "internal" ) ]
185185pub const SYMBOL_AS_STR : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "as_str" ] ;
186- #[ cfg( feature = "internal-lints " ) ]
186+ #[ cfg( feature = "internal" ) ]
187187pub const SYMBOL_INTERN : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "intern" ] ;
188- #[ cfg( feature = "internal-lints " ) ]
188+ #[ cfg( feature = "internal" ) ]
189189pub const SYMBOL_TO_IDENT_STRING : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "to_ident_string" ] ;
190- #[ cfg( feature = "internal-lints " ) ]
190+ #[ cfg( feature = "internal" ) ]
191191pub const SYM_MODULE : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "sym" ] ;
192- #[ cfg( feature = "internal-lints " ) ]
192+ #[ cfg( feature = "internal" ) ]
193193pub const SYNTAX_CONTEXT : [ & str ; 3 ] = [ "rustc_span" , "hygiene" , "SyntaxContext" ] ;
194194pub const TO_OWNED_METHOD : [ & str ; 4 ] = [ "alloc" , "borrow" , "ToOwned" , "to_owned" ] ;
195195pub const TO_STRING_METHOD : [ & str ; 4 ] = [ "alloc" , "string" , "ToString" , "to_string" ] ;
0 commit comments