Skip to content

Commit 6ce7e6d

Browse files
Rename struct_tail_erasing_lifetimes to struct_tail_for_codegen
1 parent 4c6a3f4 commit 6ce7e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fn check_rvalue<'tcx>(
142142
// We cannot allow this for now.
143143
return Err((span, "unsizing casts are only allowed for references right now".into()));
144144
};
145-
let unsized_ty = tcx.struct_tail_erasing_lifetimes(pointee_ty, tcx.param_env(def_id));
145+
let unsized_ty = tcx.struct_tail_for_codegen(pointee_ty, tcx.param_env(def_id));
146146
if let ty::Slice(_) | ty::Str = unsized_ty.kind() {
147147
check_operand(tcx, op, span, body, msrv)?;
148148
// Casting/coercing things to slices is fine.

0 commit comments

Comments
 (0)