Rename struct_tail_erasing_lifetimes to struct_tail_for_codegen
This commit is contained in:
parent
4c6a3f4b6e
commit
6ce7e6d99f
@ -142,7 +142,7 @@ fn check_rvalue<'tcx>(
|
||||
// We cannot allow this for now.
|
||||
return Err((span, "unsizing casts are only allowed for references right now".into()));
|
||||
};
|
||||
let unsized_ty = tcx.struct_tail_erasing_lifetimes(pointee_ty, tcx.param_env(def_id));
|
||||
let unsized_ty = tcx.struct_tail_for_codegen(pointee_ty, tcx.param_env(def_id));
|
||||
if let ty::Slice(_) | ty::Str = unsized_ty.kind() {
|
||||
check_operand(tcx, op, span, body, msrv)?;
|
||||
// Casting/coercing things to slices is fine.
|
||||
|
Loading…
Reference in New Issue
Block a user