File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tools/miri/src/concurrency Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1165,7 +1165,7 @@ impl FrameState {
11651165 } else {
11661166 // This can fail to exist if `race_detecting` was false when the allocation
11671167 // occurred, in which case we can backdate this to the beginning of time.
1168- let clocks = clocks. entry ( local) . or_insert_with ( Default :: default ) ;
1168+ let clocks = clocks. entry ( local) . or_default ( ) ;
11691169 clocks. write = thread_clocks. clock [ index] ;
11701170 clocks. write_type = NaWriteType :: Write ;
11711171 }
@@ -1186,7 +1186,7 @@ impl FrameState {
11861186 // This can fail to exist if `race_detecting` was false when the allocation
11871187 // occurred, in which case we can backdate this to the beginning of time.
11881188 let mut clocks = self . local_clocks . borrow_mut ( ) ;
1189- let clocks = clocks. entry ( local) . or_insert_with ( Default :: default ) ;
1189+ let clocks = clocks. entry ( local) . or_default ( ) ;
11901190 clocks. read = thread_clocks. clock [ index] ;
11911191 }
11921192
You can’t perform that action at this time.
0 commit comments