about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift
diff options
context:
space:
mode:
authorouz-a <ouz.agz@gmail.com>2023-08-16 08:43:30 +0300
committerouz-a <ouz.agz@gmail.com>2023-10-02 23:37:49 +0300
commit3148e6a9933b17b28ed6c7b8d8bd6c8e49fe4a50 (patch)
tree15b25c07516fd4df1199c59c59464fdf0dea0b89 /compiler/rustc_codegen_cranelift
parent177091258c039398d30137b52e1c575a98aa7597 (diff)
downloadrust-3148e6a9933b17b28ed6c7b8d8bd6c8e49fe4a50.tar.gz
rust-3148e6a9933b17b28ed6c7b8d8bd6c8e49fe4a50.zip
subtyping_projections
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
-rw-r--r--compiler/rustc_codegen_cranelift/src/base.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs
index 6d55fdc3074..06780567fb8 100644
--- a/compiler/rustc_codegen_cranelift/src/base.rs
+++ b/compiler/rustc_codegen_cranelift/src/base.rs
@@ -872,6 +872,9 @@ pub(crate) fn codegen_place<'tcx>(
 
     for elem in place.projection {
         match elem {
+            PlaceElem::Subtype(_) => {
+                continue;
+            }
             PlaceElem::Deref => {
                 cplace = cplace.place_deref(fx);
             }