Remove struct_tail_no_normalization

This commit is contained in:
Michael Goulet 2024-08-11 19:21:33 -04:00
parent b5d2079fb9
commit f15997ffec
5 changed files with 10 additions and 13 deletions

View file

@ -226,7 +226,7 @@ pub(super) fn op_to_const<'tcx>(
let pointee_ty = imm.layout.ty.builtin_deref(false).unwrap(); // `false` = no raw ptrs
debug_assert!(
matches!(
ecx.tcx.struct_tail_without_normalization(pointee_ty).kind(),
ecx.tcx.struct_tail_for_codegen(pointee_ty, ecx.param_env).kind(),
ty::Str | ty::Slice(..),
),
"`ConstValue::Slice` is for slice-tailed types only, but got {}",