3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,6 @@ pub(super) fn explicit_item_bounds(
104
104
None => { }
105
105
}
106
106
107
- // effects desugared associated types have no bounds.
108
- if tcx. is_effects_desugared_assoc_ty ( def_id. to_def_id ( ) ) {
109
- return ty:: EarlyBinder :: bind ( & [ ] ) ;
110
- }
111
-
112
107
let bounds = match tcx. hir_node_by_def_id ( def_id) {
113
108
hir:: Node :: TraitItem ( hir:: TraitItem {
114
109
kind : hir:: TraitItemKind :: Type ( bounds, _) ,
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ pub struct AssocItem {
34
34
/// provides additional information about its source.
35
35
pub opt_rpitit_info : Option < ty:: ImplTraitInTraitData > ,
36
36
37
- // TODO: is this necessary
38
37
pub is_effects_desugaring : bool ,
39
38
}
40
39
Original file line number Diff line number Diff line change @@ -236,6 +236,9 @@ fn associated_type_for_effects(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<De
236
236
}
237
237
} ) ;
238
238
239
+ // TODO deduplicate
240
+ trait_assoc_ty. explicit_item_bounds ( ty:: EarlyBinder :: bind ( & [ ] ) ) ;
241
+
239
242
// There are no inferred outlives for the synthesized associated type.
240
243
trait_assoc_ty. inferred_outlives_of ( & [ ] ) ;
241
244
@@ -311,6 +314,8 @@ fn associated_type_for_effects(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<De
311
314
}
312
315
} ) ;
313
316
317
+ impl_assoc_ty. explicit_item_bounds ( ty:: Earlybinder :: bind ( & [ ] ) ) ;
318
+
314
319
// There are no inferred outlives for the synthesized associated type.
315
320
impl_assoc_ty. inferred_outlives_of ( & [ ] ) ;
316
321
0 commit comments