File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/rustc_feature/src Expand file tree Collapse file tree 1 file changed +3
-1
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
}
You can’t perform that action at this time.
0 commit comments