Fix codegen tests
This commit is contained in:
parent
dc7d77f88e
commit
ee7e30f14a
@ -68,17 +68,17 @@ fn foo<F>(f: F) where F: FnOnce() -> i32 {
|
||||
// fn main::{{closure}}(_1: [closure@NodeId(22) d:&'19s D]) -> i32 {
|
||||
// let mut _0: i32;
|
||||
// ...
|
||||
// let _2: &'15_0rs D;
|
||||
// let _2: &'16_0rs D;
|
||||
// ...
|
||||
// let mut _3: i32;
|
||||
// bb0: {
|
||||
// StorageLive(_2);
|
||||
// _2 = &'15_0rs (*(_1.0: &'19s D));
|
||||
// _2 = &'16_0rs (*(_1.0: &'19s D));
|
||||
// StorageLive(_3);
|
||||
// _3 = ((*_2).0: i32);
|
||||
// _0 = move _3;
|
||||
// StorageDead(_3);
|
||||
// EndRegion('15_0rs);
|
||||
// EndRegion('16_0rs);
|
||||
// StorageDead(_2);
|
||||
// return;
|
||||
// }
|
||||
|
@ -76,17 +76,17 @@ fn foo<F>(f: F) where F: FnOnce() -> i32 {
|
||||
// fn main::{{closure}}(_1: [closure@NodeId(22) d:D]) -> i32 {
|
||||
// let mut _0: i32;
|
||||
// ...
|
||||
// let _2: &'15_0rs D;
|
||||
// let _2: &'16_0rs D;
|
||||
// ...
|
||||
// let mut _3: i32;
|
||||
// bb0: {
|
||||
// StorageLive(_2);
|
||||
// _2 = &'15_0rs (_1.0: D);
|
||||
// _2 = &'16_0rs (_1.0: D);
|
||||
// StorageLive(_3);
|
||||
// _3 = ((*_2).0: i32);
|
||||
// _0 = move _3;
|
||||
// StorageDead(_3);
|
||||
// EndRegion('15_0rs);
|
||||
// EndRegion('16_0rs);
|
||||
// StorageDead(_2);
|
||||
// drop(_1) -> [return: bb2, unwind: bb1];
|
||||
// }
|
||||
|
@ -64,14 +64,14 @@ fn main() {
|
||||
// bb0: {
|
||||
// Validate(Acquire, [_1: &ReFree(DefId(0/1:11 ~ validate_1[317d]::main[0]::{{closure}}[0]), BrEnv) [closure@NodeId(50)], _2: &ReFree(DefId(0/1:11 ~ validate_1[317d]::main[0]::{{closure}}[0]), BrAnon(0)) mut i32]);
|
||||
// StorageLive(_3);
|
||||
// Validate(Suspend(ReScope(Remainder(BlockRemainder { block: ItemLocalId(22), first_statement_index: 0 }))), [(*_2): i32]);
|
||||
// Validate(Suspend(ReScope(Remainder(BlockRemainder { block: ItemLocalId(25), first_statement_index: 0 }))), [(*_2): i32]);
|
||||
// _3 = &ReErased (*_2);
|
||||
// Validate(Acquire, [(*_3): i32/ReScope(Remainder(BlockRemainder { block: ItemLocalId(22), first_statement_index: 0 })) (imm)]);
|
||||
// Validate(Acquire, [(*_3): i32/ReScope(Remainder(BlockRemainder { block: ItemLocalId(25), first_statement_index: 0 })) (imm)]);
|
||||
// StorageLive(_4);
|
||||
// _4 = (*_3);
|
||||
// _0 = move _4;
|
||||
// StorageDead(_4);
|
||||
// EndRegion(ReScope(Remainder(BlockRemainder { block: ItemLocalId(22), first_statement_index: 0 })));
|
||||
// EndRegion(ReScope(Remainder(BlockRemainder { block: ItemLocalId(25), first_statement_index: 0 })));
|
||||
// StorageDead(_3);
|
||||
// return;
|
||||
// }
|
||||
|
@ -53,12 +53,12 @@ fn main() {
|
||||
// StorageLive(_3);
|
||||
// StorageLive(_4);
|
||||
// StorageLive(_5);
|
||||
// Validate(Suspend(ReScope(Node(ItemLocalId(9)))), [(*_2): i32]);
|
||||
// Validate(Suspend(ReScope(Node(ItemLocalId(12)))), [(*_2): i32]);
|
||||
// _5 = &ReErased mut (*_2);
|
||||
// Validate(Acquire, [(*_5): i32/ReScope(Node(ItemLocalId(9)))]);
|
||||
// Validate(Acquire, [(*_5): i32/ReScope(Node(ItemLocalId(12)))]);
|
||||
// _4 = move _5 as *mut i32 (Misc);
|
||||
// _3 = move _4;
|
||||
// EndRegion(ReScope(Node(ItemLocalId(9))));
|
||||
// EndRegion(ReScope(Node(ItemLocalId(12))));
|
||||
// StorageDead(_4);
|
||||
// StorageDead(_5);
|
||||
// Validate(Release, [_0: bool, _3: *mut i32]);
|
||||
|
Loading…
Reference in New Issue
Block a user