File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ impl tls::DebugContext for Program {
121
121
fmt : & mut fmt:: Formatter < ' _ > ,
122
122
) -> Result < ( ) , fmt:: Error > {
123
123
if let Some ( d) = self . opaque_ty_data . get ( & opaque_ty_id) {
124
- write ! ( fmt, "{:?}" , d. bound)
124
+ write ! ( fmt, "{:?}" , d. bound. value . hidden_ty )
125
125
} else {
126
126
fmt. debug_struct ( "InvalidItemId" )
127
127
. field ( "index" , & opaque_ty_id. 0 )
Original file line number Diff line number Diff line change @@ -167,12 +167,10 @@ impl<I: Interner> ToProgramClauses<I> for OpaqueTyDatum<I> {
167
167
. cast ( interner) ,
168
168
) ) ;
169
169
170
+ let substitution = Substitution :: from1 ( interner, alias_placeholder_ty. clone ( ) ) ;
170
171
for bound in & opaque_ty_bound. bounds {
171
172
// Implemented(!T<..>: Bound).
172
- let bound_with_placeholder_ty = bound. substitute (
173
- interner,
174
- & Substitution :: from1 ( interner, alias_placeholder_ty. clone ( ) ) ,
175
- ) ;
173
+ let bound_with_placeholder_ty = bound. substitute ( interner, & substitution) ;
176
174
builder. push_binders ( & bound_with_placeholder_ty, |builder, bound| {
177
175
builder. push_fact ( bound. into_well_formed_goal ( interner) ) ;
178
176
} ) ;
@@ -183,7 +181,7 @@ impl<I: Interner> ToProgramClauses<I> for OpaqueTyDatum<I> {
183
181
builder. push_clause (
184
182
TraitRef {
185
183
trait_id : auto_trait_id,
186
- substitution : Substitution :: from1 ( interner , alias_placeholder_ty . clone ( ) ) ,
184
+ substitution : substitution . clone ( ) ,
187
185
} ,
188
186
iter:: once ( TraitRef {
189
187
trait_id : auto_trait_id,
You can’t perform that action at this time.
0 commit comments