Skip to content

Commit

Permalink
Grammar nit
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 25, 2018
1 parent f4fe9b0 commit ee7f4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/transform/promote_consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ impl<'a, 'tcx> Promoter<'a, 'tcx> {
mem::replace(&mut args[index], operand)
}
// We expected a `TerminatorKind::Call` for which we'd like to promote an
// argument. Since `qualify_consts` saw a `TerminatorKind::Call` here, but
// we are seeing a `Goto`, that means that the `promote_temps` method
// argument. `qualify_consts` saw a `TerminatorKind::Call` here, but
// we are seeing a `Goto`. That means that the `promote_temps` method
// already promoted this call away entirely. This case occurs when calling
// a function requiring a constant argument and as that constant value
// providing a value whose computation contains another call to a function
Expand Down

0 comments on commit ee7f4a2

Please sign in to comment.