Rename struct_tail_erasing_lifetimes to struct_tail_for_codegen
This commit is contained in:
parent
f81549c9ca
commit
b916431976
17 changed files with 24 additions and 29 deletions
|
@ -532,7 +532,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
|
|||
#[instrument(level = "trace", skip(self))]
|
||||
fn load_operand(&mut self, place: PlaceRef<'tcx, &'ll Value>) -> OperandRef<'tcx, &'ll Value> {
|
||||
if place.layout.is_unsized() {
|
||||
let tail = self.tcx.struct_tail_erasing_lifetimes(place.layout.ty, self.param_env());
|
||||
let tail = self.tcx.struct_tail_for_codegen(place.layout.ty, self.param_env());
|
||||
if matches!(tail.kind(), ty::Foreign(..)) {
|
||||
// Unsized locals and, at least conceptually, even unsized arguments must be copied
|
||||
// around, which requires dynamically determining their size. Therefore, we cannot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue