diff options
| author | scottmcm <scottmcm@users.noreply.github.com> | 2024-12-08 05:26:19 +0000 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-01-08 18:46:30 -0800 |
| commit | 259c425bd4a85e145b31021ce438727b1a201214 (patch) | |
| tree | 324f35b9f7eb9329004075c9045f2edd107278eb /compiler/rustc_mir_transform/src | |
| parent | 8dcc676c9283b040d1ef6d66f156ff2212544b10 (diff) | |
| download | rust-259c425bd4a85e145b31021ce438727b1a201214.tar.gz rust-259c425bd4a85e145b31021ce438727b1a201214.zip | |
Apply suggestions from code review
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/gvn.rs | 4 |
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, |
