about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/instsimplify.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-12 10:57:57 +0200
committerRalf Jung <post@ralfj.de>2024-08-18 19:46:53 +0200
commit35709be02d43b40e7f720408f8a88bf6e9d5501d (patch)
tree5f4aa6c08afcb38af2c712e7b24cbff7983ceb4d /compiler/rustc_mir_transform/src/instsimplify.rs
parentb8464961a2681585a6231b93cd7e85e50022c2b3 (diff)
downloadrust-35709be02d43b40e7f720408f8a88bf6e9d5501d.tar.gz
rust-35709be02d43b40e7f720408f8a88bf6e9d5501d.zip
rename AddressOf -> RawBorrow inside the compiler
Diffstat (limited to 'compiler/rustc_mir_transform/src/instsimplify.rs')
-rw-r--r--compiler/rustc_mir_transform/src/instsimplify.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/instsimplify.rs b/compiler/rustc_mir_transform/src/instsimplify.rs
index 1589653968c..3ec553d0ba0 100644
--- a/compiler/rustc_mir_transform/src/instsimplify.rs
+++ b/compiler/rustc_mir_transform/src/instsimplify.rs
@@ -141,7 +141,7 @@ impl<'tcx> InstSimplifyContext<'tcx, '_> {
 
     /// Transform `&(*a)` ==> `a`.
     fn simplify_ref_deref(&self, source_info: &SourceInfo, rvalue: &mut Rvalue<'tcx>) {
-        if let Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place) = rvalue {
+        if let Rvalue::Ref(_, _, place) | Rvalue::RawPtr(_, place) = rvalue {
             if let Some((base, ProjectionElem::Deref)) = place.as_ref().last_projection() {
                 if rvalue.ty(self.local_decls, self.tcx) != base.ty(self.local_decls, self.tcx).ty {
                     return;