Auto merge of #109915 - scottmcm:layout-indexvec, r=oli-obk
Use `FieldIdx` in `FieldsShape` Finally got to the main motivating example from https://github.com/rust-lang/compiler-team/issues/606 :)
This commit is contained in:
commit
2824db39f1
7 changed files with 132 additions and 100 deletions
|
@ -287,7 +287,7 @@ impl<'tcx> TransformVisitor<'tcx> {
|
|||
statements.push(Statement {
|
||||
kind: StatementKind::Assign(Box::new((
|
||||
Place::return_place(),
|
||||
Rvalue::Aggregate(Box::new(kind), IndexVec::from_iter([val])),
|
||||
Rvalue::Aggregate(Box::new(kind), [val].into()),
|
||||
))),
|
||||
source_info,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue