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_const_eval/src/interpret/cast.rs | |
| parent | 7ac0330c6d684d86d6f86fabe601a3defdc3b234 (diff) | |
| download | rust-aa5a21450a070fdea66a07d3cab3b69e6735c328.tar.gz rust-aa5a21450a070fdea66a07d3cab3b69e6735c328.zip | |
ProjectionElem::Subtype -> CastKind::Subtype
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/cast.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/cast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/cast.rs b/compiler/rustc_const_eval/src/interpret/cast.rs index 0075740e031..b058d4b8ad4 100644 --- a/compiler/rustc_const_eval/src/interpret/cast.rs +++ b/compiler/rustc_const_eval/src/interpret/cast.rs @@ -133,7 +133,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { } } - CastKind::Transmute => { + CastKind::Transmute | CastKind::Subtype => { assert!(src.layout.is_sized()); assert!(dest.layout.is_sized()); assert_eq!(cast_ty, dest.layout.ty); // we otherwise ignore `cast_ty` enirely... |
