File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -132,10 +132,12 @@ macro_rules! declare_features {
132132 // Accepted/removed features aren't in this file but are never internal
133133 // (a removed feature might have been internal, but that's now irrelevant).
134134 // 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.
135137 // We just always test the name; it's not a big deal if we accidentally hit
136138 // an accepted/removed lang feature that way.
137139 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" )
139141 }
140142 _ => panic!( "`{}` was not listed in `declare_features`" , feature) ,
141143 }
Original file line number Diff line number Diff line change 33#![ feature( hash_raw_entry) ]
44#![ feature( min_specialization) ]
55#![ feature( let_chains) ]
6- #![ allow( rustc:: potential_query_instability) ]
6+ #![ allow( rustc:: potential_query_instability, internal_features ) ]
77#![ deny( rustc:: untranslatable_diagnostic) ]
88#![ deny( rustc:: diagnostic_outside_of_impl) ]
99
You can’t perform that action at this time.
0 commit comments