5
5
//! See <https://github.com/rust-lang/rust-clippy/issues/5393> for more information.
6
6
7
7
pub const ANY_TRAIT : [ & str ; 3 ] = [ "core" , "any" , "Any" ] ;
8
- #[ cfg( feature = "metadata-collector-lint " ) ]
8
+ #[ cfg( feature = "internal " ) ]
9
9
pub const APPLICABILITY : [ & str ; 2 ] = [ "rustc_lint_defs" , "Applicability" ] ;
10
- #[ cfg( feature = "metadata-collector-lint " ) ]
10
+ #[ cfg( feature = "internal " ) ]
11
11
pub const APPLICABILITY_VALUES : [ [ & str ; 3 ] ; 4 ] = [
12
12
[ "rustc_lint_defs" , "Applicability" , "Unspecified" ] ,
13
13
[ "rustc_lint_defs" , "Applicability" , "HasPlaceholders" ] ,
14
14
[ "rustc_lint_defs" , "Applicability" , "MaybeIncorrect" ] ,
15
15
[ "rustc_lint_defs" , "Applicability" , "MachineApplicable" ] ,
16
16
] ;
17
- #[ cfg( feature = "metadata-collector-lint " ) ]
17
+ #[ cfg( feature = "internal " ) ]
18
18
pub const DIAGNOSTIC_BUILDER : [ & str ; 3 ] = [ "rustc_errors" , "diagnostic_builder" , "DiagnosticBuilder" ] ;
19
19
pub const ARC_PTR_EQ : [ & str ; 4 ] = [ "alloc" , "sync" , "Arc" , "ptr_eq" ] ;
20
20
#[ 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"];
45
45
pub const DOUBLE_ENDED_ITERATOR : [ & str ; 4 ] = [ "core" , "iter" , "traits" , "DoubleEndedIterator" ] ;
46
46
pub const DROP : [ & str ; 3 ] = [ "core" , "mem" , "drop" ] ;
47
47
pub const DURATION : [ & str ; 3 ] = [ "core" , "time" , "Duration" ] ;
48
- #[ cfg( feature = "internal-lints " ) ]
48
+ #[ cfg( feature = "internal" ) ]
49
49
pub const EARLY_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "EarlyContext" ] ;
50
50
#[ allow( clippy:: invalid_paths) ] // `check_path` does not seem to work for macros
51
51
pub const EPRINT_MACRO : [ & str ; 3 ] = [ "std" , "macros" , "eprint" ] ;
@@ -71,9 +71,9 @@ pub const HASH: [&str; 3] = ["core", "hash", "Hash"];
71
71
pub const HASHMAP_CONTAINS_KEY : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "contains_key" ] ;
72
72
pub const HASHMAP_ENTRY : [ & str ; 5 ] = [ "std" , "collections" , "hash" , "map" , "Entry" ] ;
73
73
pub const HASHMAP_INSERT : [ & str ; 6 ] = [ "std" , "collections" , "hash" , "map" , "HashMap" , "insert" ] ;
74
- #[ cfg( feature = "internal-lints " ) ]
74
+ #[ cfg( feature = "internal" ) ]
75
75
pub const IDENT : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Ident" ] ;
76
- #[ cfg( feature = "internal-lints " ) ]
76
+ #[ cfg( feature = "internal" ) ]
77
77
pub const IDENT_AS_STR : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Ident" , "as_str" ] ;
78
78
pub const INDEX : [ & str ; 3 ] = [ "core" , "ops" , "Index" ] ;
79
79
pub const INDEX_MUT : [ & str ; 3 ] = [ "core" , "ops" , "IndexMut" ] ;
@@ -85,11 +85,11 @@ pub const IPADDR_V6: [&str; 5] = ["std", "net", "ip", "IpAddr", "V6"];
85
85
pub const ITER_REPEAT : [ & str ; 5 ] = [ "core" , "iter" , "sources" , "repeat" , "repeat" ] ;
86
86
#[ allow( clippy:: invalid_paths) ] // internal lints do not know about all external crates
87
87
pub const ITERTOOLS_NEXT_TUPLE : [ & str ; 3 ] = [ "itertools" , "Itertools" , "next_tuple" ] ;
88
- #[ cfg( feature = "internal-lints " ) ]
88
+ #[ cfg( feature = "internal" ) ]
89
89
pub const KW_MODULE : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "kw" ] ;
90
- #[ cfg( feature = "internal-lints " ) ]
90
+ #[ cfg( feature = "internal" ) ]
91
91
pub const LATE_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "LateContext" ] ;
92
- #[ cfg( any ( feature = "internal-lints" , feature = "metadata-collector-lint" ) ) ]
92
+ #[ cfg( feature = "internal" ) ]
93
93
pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
94
94
pub const MEM_DISCRIMINANT : [ & str ; 3 ] = [ "core" , "mem" , "discriminant" ] ;
95
95
pub 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"];
179
179
pub const STR_FROM_UTF8 : [ & str ; 4 ] = [ "core" , "str" , "converts" , "from_utf8" ] ;
180
180
pub const STR_LEN : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "len" ] ;
181
181
pub const STR_STARTS_WITH : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "starts_with" ] ;
182
- #[ cfg( feature = "internal-lints " ) ]
182
+ #[ cfg( feature = "internal" ) ]
183
183
pub const SYMBOL : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "Symbol" ] ;
184
- #[ cfg( feature = "internal-lints " ) ]
184
+ #[ cfg( feature = "internal" ) ]
185
185
pub const SYMBOL_AS_STR : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "as_str" ] ;
186
- #[ cfg( feature = "internal-lints " ) ]
186
+ #[ cfg( feature = "internal" ) ]
187
187
pub const SYMBOL_INTERN : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "intern" ] ;
188
- #[ cfg( feature = "internal-lints " ) ]
188
+ #[ cfg( feature = "internal" ) ]
189
189
pub const SYMBOL_TO_IDENT_STRING : [ & str ; 4 ] = [ "rustc_span" , "symbol" , "Symbol" , "to_ident_string" ] ;
190
- #[ cfg( feature = "internal-lints " ) ]
190
+ #[ cfg( feature = "internal" ) ]
191
191
pub const SYM_MODULE : [ & str ; 3 ] = [ "rustc_span" , "symbol" , "sym" ] ;
192
- #[ cfg( feature = "internal-lints " ) ]
192
+ #[ cfg( feature = "internal" ) ]
193
193
pub const SYNTAX_CONTEXT : [ & str ; 3 ] = [ "rustc_span" , "hygiene" , "SyntaxContext" ] ;
194
194
pub const TO_OWNED_METHOD : [ & str ; 4 ] = [ "alloc" , "borrow" , "ToOwned" , "to_owned" ] ;
195
195
pub const TO_STRING_METHOD : [ & str ; 4 ] = [ "alloc" , "string" , "ToString" , "to_string" ] ;
0 commit comments