Commit 737e301 1 parent 885278b commit 737e301 Copy full SHA for 737e301
File tree 2 files changed +7
-2
lines changed
compiler/rustc_session/src
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,11 @@ impl CheckCfg {
410
410
}
411
411
412
412
if self . exhaustive_values {
413
+ #[ cfg( not( bootstrap) ) ]
414
+ let values = self . expecteds . get_disjoint_mut ( VALUES ) ;
415
+ #[ cfg( bootstrap) ]
416
+ let values = self . expecteds . get_many_mut ( VALUES ) ;
417
+
413
418
// Get all values map at once otherwise it would be costly.
414
419
// (8 values * 220 targets ~= 1760 times, at the time of writing this comment).
415
420
let [
@@ -421,7 +426,7 @@ impl CheckCfg {
421
426
Some ( values_target_os) ,
422
427
Some ( values_target_pointer_width) ,
423
428
Some ( values_target_vendor) ,
424
- ] = self . expecteds . get_many_mut ( VALUES )
429
+ ] = values
425
430
else {
426
431
panic ! ( "unable to get all the check-cfg values buckets" ) ;
427
432
} ;
Original file line number Diff line number Diff line change 1
1
// tidy-alphabetical-start
2
2
#![ allow( internal_features) ]
3
+ #![ cfg_attr( bootstrap, feature( map_many_mut) ) ]
3
4
#![ feature( iter_intersperse) ]
4
5
#![ feature( let_chains) ]
5
- #![ feature( map_many_mut) ]
6
6
#![ feature( rustc_attrs) ]
7
7
#![ warn( unreachable_pub) ]
8
8
// tidy-alphabetical-end
You can’t perform that action at this time.
0 commit comments