File tree 1 file changed +5
-2
lines changed
compiler/rustc_codegen_ssa/src
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,11 @@ pub(crate) fn provide(providers: &mut Providers) {
149
149
assert_eq ! ( cnum, LOCAL_CRATE ) ;
150
150
let target = & tcx. sess . target ;
151
151
if tcx. sess . opts . actually_rustdoc {
152
- // rustdoc needs to be able to document functions that use all the features, so
153
- // whitelist them all
152
+ // HACK: rustdoc would like to pretend that we have all the target features, so we
153
+ // have to merge all the lists into one. The result has a "random" stability
154
+ // (depending on the order in which we consider features); all places that check
155
+ // target stability are expected to check `actually_rustdoc` and do nothing when
156
+ // that is set.
154
157
rustc_target:: target_features:: all_rust_features ( )
155
158
. map ( |( a, b) | ( a. to_string ( ) , b. compute_toggleability ( target) ) )
156
159
. collect ( )
You can’t perform that action at this time.
0 commit comments