Skip to content

Commit 1c15b6a

Browse files
committed
Replace a hard-to-read line.
Too clever by half, IMO.
1 parent 3b69781 commit 1c15b6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_expand/src/expand.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
432432
break;
433433
}
434434
invocations = mem::take(&mut undetermined_invocations);
435-
force = !mem::replace(&mut progress, false);
435+
force = !progress;
436+
progress = false;
436437
if force && self.monotonic {
437438
self.cx.dcx().span_delayed_bug(
438439
invocations.last().unwrap().0.span(),

0 commit comments

Comments
 (0)