Rollup merge of #55199 - oli-obk:instance_printing, r=davidtwco
Impl items have generics
This commit is contained in:
commit
db4e77ce91
16 changed files with 34 additions and 35 deletions
|
|
@ -44,7 +44,7 @@ fn foo(i: i32) {
|
|||
// let mut _5: i32;
|
||||
// bb0: {
|
||||
// StorageLive(_1);
|
||||
// _1 = D::{{constructor}}(const 0i32,);
|
||||
// _1 = D(const 0i32,);
|
||||
// FakeRead(ForLet, _1);
|
||||
// StorageLive(_2);
|
||||
// _2 = const 0i32;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ fn foo<F>(f: F) where F: FnOnce() -> i32 {
|
|||
// let mut _4: &'18s D;
|
||||
// bb0: {
|
||||
// StorageLive(_1);
|
||||
// _1 = D::{{constructor}}(const 0i32,);
|
||||
// _1 = D(const 0i32,);
|
||||
// FakeRead(ForLet, _1);
|
||||
// StorageLive(_3);
|
||||
// StorageLive(_4);
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ fn foo<F>(f: F) where F: FnOnce() -> i32 {
|
|||
// let mut _4: &'24s D;
|
||||
// bb0: {
|
||||
// StorageLive(_1);
|
||||
// _1 = D::{{constructor}}(const 0i32,);
|
||||
// _1 = D(const 0i32,);
|
||||
// FakeRead(ForLet, _1);
|
||||
// StorageLive(_3);
|
||||
// StorageLive(_4);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ fn foo<F>(f: F) where F: FnOnce() -> i32 {
|
|||
// let mut _3: [closure@NodeId(33) d:D];
|
||||
// bb0: {
|
||||
// StorageLive(_1);
|
||||
// _1 = D::{{constructor}}(const 0i32,);
|
||||
// _1 = D(const 0i32,);
|
||||
// FakeRead(ForLet, _1);
|
||||
// StorageLive(_3);
|
||||
// _3 = [closure@NodeId(33)] { d: move _1 };
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ fn foo<F>(f: F) where F: FnOnce() -> i32 {
|
|||
// let mut _4: [closure@NodeId(33) r:&'24s D];
|
||||
// bb0: {
|
||||
// StorageLive(_1);
|
||||
// _1 = D::{{constructor}}(const 0i32,);
|
||||
// _1 = D(const 0i32,);
|
||||
// FakeRead(ForLet, _1);
|
||||
// StorageLive(_2);
|
||||
// _2 = &'26_1rs _1;
|
||||
|
|
|
|||
|
|
@ -79,16 +79,16 @@ unsafe impl<'a, #[may_dangle] 'b> Drop for D1<'a, 'b> {
|
|||
// StorageLive(_3);
|
||||
// StorageLive(_4);
|
||||
// StorageLive(_5);
|
||||
// _5 = S1::{{constructor}}(const "ex1",);
|
||||
// _5 = S1(const "ex1",);
|
||||
// _4 = &'15ds _5;
|
||||
// _3 = &'15ds (*_4);
|
||||
// StorageLive(_6);
|
||||
// StorageLive(_7);
|
||||
// StorageLive(_8);
|
||||
// _8 = S1::{{constructor}}(const "dang1",);
|
||||
// _8 = S1(const "dang1",);
|
||||
// _7 = &'13s _8;
|
||||
// _6 = &'13s (*_7);
|
||||
// _2 = D1<'15ds, '13s>::{{constructor}}(move _3, move _6);
|
||||
// _2 = D1<'15ds, '13s>(move _3, move _6);
|
||||
// EndRegion('13s);
|
||||
// StorageDead(_6);
|
||||
// StorageDead(_3);
|
||||
|
|
@ -132,7 +132,7 @@ unsafe impl<'a, #[may_dangle] 'b> Drop for D1<'a, 'b> {
|
|||
// StorageLive(_7);
|
||||
// _7 = &'13s (promoted[0]: S1);
|
||||
// _6 = &'13s (*_7);
|
||||
// _2 = D1<'15ds, '13s>::{{constructor}}(move _3, move _6);
|
||||
// _2 = D1<'15ds, '13s>(move _3, move _6);
|
||||
// EndRegion('13s);
|
||||
// StorageDead(_6);
|
||||
// StorageDead(_3);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ impl Drop for Droppy {
|
|||
// bb0: {
|
||||
// StorageLive(_1);
|
||||
// ...
|
||||
// _1 = Packed::{{constructor}}(move _2,);
|
||||
// _1 = Packed(move _2,);
|
||||
// ...
|
||||
// StorageLive(_6);
|
||||
// _6 = move (_1.0: Aligned);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue