about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-10-25 21:14:25 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2018-10-25 21:14:25 +0200
commitee7f4a27d324db13ce27df9d79f258e64086d8f1 (patch)
tree9364eb85ae1d908b058eb0ad471435da1454582d
parentf4fe9b0a09d1347e26a7f95e78be57360e70c411 (diff)
downloadrust-ee7f4a27d324db13ce27df9d79f258e64086d8f1.tar.gz
rust-ee7f4a27d324db13ce27df9d79f258e64086d8f1.zip
Grammar nit
-rw-r--r--src/librustc_mir/transform/promote_consts.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/transform/promote_consts.rs b/src/librustc_mir/transform/promote_consts.rs
index 1d45850a080..a27809ca1f2 100644
--- a/src/librustc_mir/transform/promote_consts.rs
+++ b/src/librustc_mir/transform/promote_consts.rs
@@ -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