diff options
| author | ouz-a <ouz.agz@gmail.com> | 2023-08-28 11:19:19 +0300 |
|---|---|---|
| committer | ouz-a <ouz.agz@gmail.com> | 2023-10-02 23:39:44 +0300 |
| commit | cd7f47193182d1d557a83593bcff6afe0568fc53 (patch) | |
| tree | 5ae299b1d8d300839a57994f58b37d0f20541594 /compiler/rustc_codegen_ssa | |
| parent | 3148e6a9933b17b28ed6c7b8d8bd6c8e49fe4a50 (diff) | |
| download | rust-cd7f47193182d1d557a83593bcff6afe0568fc53.tar.gz rust-cd7f47193182d1d557a83593bcff6afe0568fc53.zip | |
Add docs, remove code, change subtyper code
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/place.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/place.rs b/compiler/rustc_codegen_ssa/src/mir/place.rs index 9ff73aab907..eb590a45a63 100644 --- a/compiler/rustc_codegen_ssa/src/mir/place.rs +++ b/compiler/rustc_codegen_ssa/src/mir/place.rs @@ -466,6 +466,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { mir::ProjectionElem::OpaqueCast(ty) => { bug!("encountered OpaqueCast({ty}) in codegen") } + mir::ProjectionElem::Subtype(ty) => cg_base.project_type(bx, self.monomorphize(ty)), mir::ProjectionElem::Index(index) => { let index = &mir::Operand::Copy(mir::Place::from(index)); let index = self.codegen_operand(bx, index); @@ -499,7 +500,6 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { subslice } mir::ProjectionElem::Downcast(_, v) => cg_base.project_downcast(bx, v), - mir::ProjectionElem::Subtype(_) => continue, }; } debug!("codegen_place(place={:?}) => {:?}", place_ref, cg_base); |
