Skip to content

Commit ee7f4a2

Browse files
committed
Grammar nit
1 parent f4fe9b0 commit ee7f4a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/transform/promote_consts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ impl<'a, 'tcx> Promoter<'a, 'tcx> {
333333
mem::replace(&mut args[index], operand)
334334
}
335335
// We expected a `TerminatorKind::Call` for which we'd like to promote an
336-
// argument. Since `qualify_consts` saw a `TerminatorKind::Call` here, but
337-
// we are seeing a `Goto`, that means that the `promote_temps` method
336+
// argument. `qualify_consts` saw a `TerminatorKind::Call` here, but
337+
// we are seeing a `Goto`. That means that the `promote_temps` method
338338
// already promoted this call away entirely. This case occurs when calling
339339
// a function requiring a constant argument and as that constant value
340340
// providing a value whose computation contains another call to a function

0 commit comments

Comments
 (0)