@@ -23,31 +23,31 @@ impl<I: Interner> Debug for AssocTypeId<I> {
2323
2424impl < I : Interner > Debug for Ty < I > {
2525 fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
26- I :: debug_ty ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "Ty(?)" ) )
26+ I :: debug_ty ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "{:?}" , self . interned ) )
2727 }
2828}
2929
3030impl < I : Interner > Debug for Lifetime < I > {
3131 fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
32- I :: debug_lifetime ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "Lifetime(?)" ) )
32+ I :: debug_lifetime ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "{:?}" , self . interned ) )
3333 }
3434}
3535
3636impl < I : Interner > Debug for Parameter < I > {
3737 fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
38- I :: debug_parameter ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "Parameter(?)" ) )
38+ I :: debug_parameter ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "{:?}" , self . 0 ) )
3939 }
4040}
4141
4242impl < I : Interner > Debug for Goal < I > {
4343 fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
44- I :: debug_goal ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "Goal(?)" ) )
44+ I :: debug_goal ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "{:?}" , self . interned ) )
4545 }
4646}
4747
4848impl < I : Interner > Debug for Goals < I > {
4949 fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
50- I :: debug_goals ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "Goals(?)" ) )
50+ I :: debug_goals ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "{:?}" , self . goals ) )
5151 }
5252}
5353
@@ -79,7 +79,7 @@ impl<I: Interner> Debug for AliasTy<I> {
7979
8080impl < I : Interner > Display for Substitution < I > {
8181 fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
82- I :: debug_substitution ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "Substitution(?)" ) )
82+ I :: debug_substitution ( self , fmt) . unwrap_or_else ( || write ! ( fmt, "{:?}" , self . parameters ) )
8383 }
8484}
8585
0 commit comments