File tree 4 files changed +6
-2
lines changed
4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -132,10 +132,12 @@ macro_rules! declare_features {
132
132
// Accepted/removed features aren't in this file but are never internal
133
133
// (a removed feature might have been internal, but that's now irrelevant).
134
134
// Libs features are internal if they end in `_internal` or `_internals`.
135
+ // As a special exception we also consider `core_intrinsics` internal;
136
+ // renaming that age-old feature is just not worth the hassle.
135
137
// We just always test the name; it's not a big deal if we accidentally hit
136
138
// an accepted/removed lang feature that way.
137
139
let name = feature. as_str( ) ;
138
- name. ends_with( "_internal" ) || name. ends_with( "_internals" )
140
+ name == "core_intrinsics" || name . ends_with( "_internal" ) || name. ends_with( "_internals" )
139
141
}
140
142
_ => panic!( "`{}` was not listed in `declare_features`" , feature) ,
141
143
}
Original file line number Diff line number Diff line change 3
3
#![ feature( hash_raw_entry) ]
4
4
#![ feature( min_specialization) ]
5
5
#![ feature( let_chains) ]
6
- #![ allow( rustc:: potential_query_instability) ]
6
+ #![ allow( rustc:: potential_query_instability, internal_features ) ]
7
7
#![ deny( rustc:: untranslatable_diagnostic) ]
8
8
#![ deny( rustc:: diagnostic_outside_of_impl) ]
9
9
Original file line number Diff line number Diff line change 40
40
#![ feature( thin_box) ]
41
41
#![ feature( strict_provenance) ]
42
42
#![ feature( drain_keep_rest) ]
43
+ #![ allow( internal_features) ]
43
44
#![ deny( fuzzy_provenance_casts) ]
44
45
#![ deny( unsafe_op_in_unsafe_fn) ]
45
46
Original file line number Diff line number Diff line change 116
116
#![ feature( get_many_mut) ]
117
117
#![ feature( offset_of) ]
118
118
#![ feature( iter_map_windows) ]
119
+ #![ allow( internal_features) ]
119
120
#![ deny( unsafe_op_in_unsafe_fn) ]
120
121
#![ deny( fuzzy_provenance_casts) ]
121
122
You can’t perform that action at this time.
0 commit comments