Rename struct_tail_erasing_lifetimes to struct_tail_for_codegen

This commit is contained in:
Michael Goulet
2024-08-08 11:56:12 -04:00
parent f81549c9ca
commit b916431976
17 changed files with 24 additions and 29 deletions

View File

@@ -22,7 +22,7 @@ where
};
let ty = place.ty(local_decls, tcx).ty;
let unsized_tail = || tcx.struct_tail_erasing_lifetimes(ty, param_env);
let unsized_tail = || tcx.struct_tail_for_codegen(ty, param_env);
match tcx.layout_of(param_env.and(ty)) {
Ok(layout)
if layout.align.abi <= pack