diff options
| author | beepster4096 <19316085+beepster4096@users.noreply.github.com> | 2025-09-25 20:54:54 -0700 |
|---|---|---|
| committer | beepster4096 <19316085+beepster4096@users.noreply.github.com> | 2025-09-26 01:25:26 -0700 |
| commit | aa5a21450a070fdea66a07d3cab3b69e6735c328 (patch) | |
| tree | 567cde8291ef8952492db8c17b96689cf6cd91b9 /compiler/rustc_mir_transform/src/gvn.rs | |
| parent | 7ac0330c6d684d86d6f86fabe601a3defdc3b234 (diff) | |
| download | rust-aa5a21450a070fdea66a07d3cab3b69e6735c328.tar.gz rust-aa5a21450a070fdea66a07d3cab3b69e6735c328.zip | |
ProjectionElem::Subtype -> CastKind::Subtype
Diffstat (limited to 'compiler/rustc_mir_transform/src/gvn.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/gvn.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/gvn.rs b/compiler/rustc_mir_transform/src/gvn.rs index ebec3d12500..eb59ae830ae 100644 --- a/compiler/rustc_mir_transform/src/gvn.rs +++ b/compiler/rustc_mir_transform/src/gvn.rs @@ -656,7 +656,7 @@ impl<'body, 'tcx> VnState<'body, 'tcx> { let res = self.ecx.float_to_float_or_int(&value, ty).discard_err()?; res.into() } - CastKind::Transmute => { + CastKind::Transmute | CastKind::Subtype => { let value = self.evaluated[value].as_ref()?; // `offset` for immediates generally only supports projections that match the // type of the immediate. However, as a HACK, we exploit that it can also do @@ -788,7 +788,6 @@ impl<'body, 'tcx> VnState<'body, 'tcx> { ProjectionElem::Subslice { from, to, from_end } } ProjectionElem::OpaqueCast(_) => ProjectionElem::OpaqueCast(()), - ProjectionElem::Subtype(_) => ProjectionElem::Subtype(()), ProjectionElem::UnwrapUnsafeBinder(_) => ProjectionElem::UnwrapUnsafeBinder(()), }; |
