@@ -23,31 +23,31 @@ impl<I: Interner> Debug for AssocTypeId<I> {
23
23
24
24
impl < I : Interner > Debug for Ty < I > {
25
25
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 ) )
27
27
}
28
28
}
29
29
30
30
impl < I : Interner > Debug for Lifetime < I > {
31
31
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 ) )
33
33
}
34
34
}
35
35
36
36
impl < I : Interner > Debug for Parameter < I > {
37
37
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 ) )
39
39
}
40
40
}
41
41
42
42
impl < I : Interner > Debug for Goal < I > {
43
43
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 ) )
45
45
}
46
46
}
47
47
48
48
impl < I : Interner > Debug for Goals < I > {
49
49
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 ) )
51
51
}
52
52
}
53
53
@@ -79,7 +79,7 @@ impl<I: Interner> Debug for AliasTy<I> {
79
79
80
80
impl < I : Interner > Display for Substitution < I > {
81
81
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 ) )
83
83
}
84
84
}
85
85
0 commit comments