@@ -551,24 +551,24 @@ impl<'tcx> Debug for Lvalue<'tcx> {
551
551
write ! ( fmt, "arg{:?}" , id) ,
552
552
Temp ( id) =>
553
553
write ! ( fmt, "tmp{:?}" , id) ,
554
- Static ( id ) =>
555
- write ! ( fmt, "Static({:?}) ", id ) ,
554
+ Static ( def_id ) =>
555
+ write ! ( fmt, "{} ", ty :: tls :: with ( |tcx| tcx . item_path_str ( def_id ) ) ) ,
556
556
ReturnPointer =>
557
- write ! ( fmt, "ReturnPointer" ) ,
557
+ write ! ( fmt, "ReturnPointer" ) ,
558
558
Projection ( ref data) =>
559
559
match data. elem {
560
560
ProjectionElem :: Downcast ( ref adt_def, index) =>
561
- write ! ( fmt, "({:?} as {})" , data. base, adt_def. variants[ index] . name) ,
561
+ write ! ( fmt, "({:?} as {})" , data. base, adt_def. variants[ index] . name) ,
562
562
ProjectionElem :: Deref =>
563
- write ! ( fmt, "(*{:?})" , data. base) ,
563
+ write ! ( fmt, "(*{:?})" , data. base) ,
564
564
ProjectionElem :: Field ( field) =>
565
- write ! ( fmt, "{:?}.{:?}" , data. base, field. index( ) ) ,
565
+ write ! ( fmt, "{:?}.{:?}" , data. base, field. index( ) ) ,
566
566
ProjectionElem :: Index ( ref index) =>
567
- write ! ( fmt, "{:?}[{:?}]" , data. base, index) ,
567
+ write ! ( fmt, "{:?}[{:?}]" , data. base, index) ,
568
568
ProjectionElem :: ConstantIndex { offset, min_length, from_end : false } =>
569
- write ! ( fmt, "{:?}[{:?} of {:?}]" , data. base, offset, min_length) ,
569
+ write ! ( fmt, "{:?}[{:?} of {:?}]" , data. base, offset, min_length) ,
570
570
ProjectionElem :: ConstantIndex { offset, min_length, from_end : true } =>
571
- write ! ( fmt, "{:?}[-{:?} of {:?}]" , data. base, offset, min_length) ,
571
+ write ! ( fmt, "{:?}[-{:?} of {:?}]" , data. base, offset, min_length) ,
572
572
} ,
573
573
}
574
574
}
0 commit comments