about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_mir_transform/src')
-rw-r--r--compiler/rustc_mir_transform/src/gvn.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/gvn.rs b/compiler/rustc_mir_transform/src/gvn.rs
index ca70dc36da0..ffbb054f84c 100644
--- a/compiler/rustc_mir_transform/src/gvn.rs
+++ b/compiler/rustc_mir_transform/src/gvn.rs
@@ -1450,8 +1450,8 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
             }
         }
 
-        // PtrToPtr-then-Transmute can just transmute the original, so long as the
-        // PtrToPtr didn't change metadata (and thus the size of the pointer)
+        // Transmute-then-PtrToPtr can just transmute the original, so long as the
+        // PtrToPtr won't change metadata (and thus the size of the pointer)
         if let PtrToPtr = kind
             && let Value::Cast {
                 kind: Transmute,