Print generic args in function calls in MIR
This commit is contained in:
parent
0528954c80
commit
fec79d3552
|
@ -1539,8 +1539,8 @@ define_print_and_forward_display! {
|
|||
|
||||
&'tcx ty::Const<'tcx> {
|
||||
let u8 = cx.tcx().types.u8;
|
||||
if let ty::FnDef(did, _) = self.ty.sty {
|
||||
p!(write("{}", cx.tcx().def_path_str(did)));
|
||||
if let ty::FnDef(did, substs) = self.ty.sty {
|
||||
p!(print_value_path(did, substs));
|
||||
return Ok(cx);
|
||||
}
|
||||
if let ConstValue::Unevaluated(did, substs) = self.val {
|
||||
|
|
|
@ -52,7 +52,7 @@ impl Drop for S {
|
|||
// StorageDead(_2);
|
||||
// StorageLive(_4);
|
||||
// _4 = move _1;
|
||||
// _3 = const std::mem::drop(move _4) -> [return: bb5, unwind: bb7];
|
||||
// _3 = const std::mem::drop::<std::boxed::Box<S>>(move _4) -> [return: bb5, unwind: bb7];
|
||||
// }
|
||||
//
|
||||
// bb5: {
|
||||
|
|
|
@ -25,7 +25,7 @@ impl X for () {
|
|||
// ...
|
||||
// bb0: {
|
||||
// ...
|
||||
// _0 = const X::y(move _2) -> bb1;
|
||||
// _0 = const <dyn X as X>::y(move _2) -> bb1;
|
||||
// }
|
||||
// ...
|
||||
// END rustc.test.Inline.after.mir
|
||||
|
|
|
@ -30,7 +30,7 @@ fn main() {
|
|||
// ...
|
||||
// bb0: {
|
||||
// ...
|
||||
// _0 = const X::y(move _2) -> bb1;
|
||||
// _0 = const <dyn X as X>::y(move _2) -> bb1;
|
||||
// }
|
||||
// ...
|
||||
// END rustc.test2.Inline.after.mir
|
||||
|
|
|
@ -93,7 +93,7 @@ fn main() {
|
|||
// StorageDead(_3);
|
||||
// StorageLive(_6);
|
||||
// _6 = &_2;
|
||||
// _5 = const std::mem::drop(move _6) -> [return: bb19, unwind: bb4];
|
||||
// _5 = const std::mem::drop::<&i32>(move _6) -> [return: bb19, unwind: bb4];
|
||||
// }
|
||||
// bb19: {
|
||||
// StorageDead(_6);
|
||||
|
|
|
@ -68,7 +68,7 @@ fn main() {
|
|||
// }
|
||||
// bb7: {
|
||||
// _2 = &mut (*_1);
|
||||
// _3 = const std::ops::Drop::drop(move _2) -> [return: bb6, unwind: bb5];
|
||||
// _3 = const <std::vec::Vec<i32> as std::ops::Drop>::drop(move _2) -> [return: bb6, unwind: bb5];
|
||||
// }
|
||||
// END rustc.ptr-real_drop_in_place.std__vec__Vec_i32_.AddMovesForPackedDrops.before.mir
|
||||
|
||||
|
|
Loading…
Reference in New Issue