File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Rust MIR: a lowered representation of Rust.
25
25
#![ feature( stmt_expr_attributes) ]
26
26
#![ feature( trait_alias) ]
27
27
#![ feature( option_expect_none) ]
28
+ #![ feature( option_get_or_default) ]
28
29
#![ feature( or_patterns) ]
29
30
#![ feature( once_cell) ]
30
31
#![ feature( control_flow_enum) ]
Original file line number Diff line number Diff line change @@ -392,10 +392,7 @@ impl BasicCoverageBlockData {
392
392
}
393
393
}
394
394
let operand = counter_kind. as_operand_id ( ) ;
395
- if let Some ( replaced) = self
396
- . edge_from_bcbs
397
- . get_or_insert_with ( FxHashMap :: default)
398
- . insert ( from_bcb, counter_kind)
395
+ if let Some ( replaced) = self . edge_from_bcbs . get_or_default ( ) . insert ( from_bcb, counter_kind)
399
396
{
400
397
Error :: from_string ( format ! (
401
398
"attempt to set an edge counter more than once; from_bcb: \
You can’t perform that action at this time.
0 commit comments