Skip to content

Commit 37e1c95

Browse files
committed
Adjust check-cfg get_many_mut usage following API change
1 parent 8760a40 commit 37e1c95

File tree

1 file changed

+12
-12
lines changed
  • compiler/rustc_session/src/config

1 file changed

+12
-12
lines changed

compiler/rustc_session/src/config/cfg.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -402,18 +402,18 @@ impl CheckCfg {
402402
// Get all values map at once otherwise it would be costly.
403403
// (8 values * 220 targets ~= 1760 times, at the time of writing this comment).
404404
let [
405-
values_target_abi,
406-
values_target_arch,
407-
values_target_endian,
408-
values_target_env,
409-
values_target_family,
410-
values_target_os,
411-
values_target_pointer_width,
412-
values_target_vendor,
413-
] = self
414-
.expecteds
415-
.get_many_mut(VALUES)
416-
.expect("unable to get all the check-cfg values buckets");
405+
Some(values_target_abi),
406+
Some(values_target_arch),
407+
Some(values_target_endian),
408+
Some(values_target_env),
409+
Some(values_target_family),
410+
Some(values_target_os),
411+
Some(values_target_pointer_width),
412+
Some(values_target_vendor),
413+
] = self.expecteds.get_many_mut(VALUES)
414+
else {
415+
panic!("unable to get all the check-cfg values buckets");
416+
};
417417

418418
for target in TARGETS
419419
.iter()

0 commit comments

Comments
 (0)