about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-08-11 19:21:33 -0400
committerMichael Goulet <michael@errs.io>2024-08-11 19:40:03 -0400
commitf15997ffeca4c7da66e7de9e348ccb8d3cccc946 (patch)
tree2662511eb64f7bb5fab35bb545e6bc1448c696c0 /compiler/rustc_const_eval
parentb5d2079fb9c9ac9f0fe594f65452b4097e71c2de (diff)
downloadrust-f15997ffeca4c7da66e7de9e348ccb8d3cccc946.tar.gz
rust-f15997ffeca4c7da66e7de9e348ccb8d3cccc946.zip
Remove struct_tail_no_normalization
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/eval_queries.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
index ff27e400016..96b3ec6f187 100644
--- a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
+++ b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -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 {}",