@@ -1317,8 +1317,8 @@ pub(crate) fn clean_middle_assoc_item(assoc_item: &ty::AssocItem, cx: &mut DocCo
1317
1317
simplify:: move_bounds_to_generic_parameters ( & mut generics) ;
1318
1318
1319
1319
let provided = match assoc_item. container {
1320
- ty:: ImplContainer => true ,
1321
- ty:: TraitContainer => tcx. defaultness ( assoc_item. def_id ) . has_value ( ) ,
1320
+ ty:: AssocItemContainer :: Impl => true ,
1321
+ ty:: AssocItemContainer :: Trait => tcx. defaultness ( assoc_item. def_id ) . has_value ( ) ,
1322
1322
} ;
1323
1323
if provided {
1324
1324
AssocConstItem ( Box :: new ( Constant {
@@ -1335,10 +1335,10 @@ pub(crate) fn clean_middle_assoc_item(assoc_item: &ty::AssocItem, cx: &mut DocCo
1335
1335
1336
1336
if assoc_item. fn_has_self_parameter {
1337
1337
let self_ty = match assoc_item. container {
1338
- ty:: ImplContainer => {
1338
+ ty:: AssocItemContainer :: Impl => {
1339
1339
tcx. type_of ( assoc_item. container_id ( tcx) ) . instantiate_identity ( )
1340
1340
}
1341
- ty:: TraitContainer => tcx. types . self_param ,
1341
+ ty:: AssocItemContainer :: Trait => tcx. types . self_param ,
1342
1342
} ;
1343
1343
let self_arg_ty =
1344
1344
tcx. fn_sig ( assoc_item. def_id ) . instantiate_identity ( ) . input ( 0 ) . skip_binder ( ) ;
@@ -1355,13 +1355,13 @@ pub(crate) fn clean_middle_assoc_item(assoc_item: &ty::AssocItem, cx: &mut DocCo
1355
1355
}
1356
1356
1357
1357
let provided = match assoc_item. container {
1358
- ty:: ImplContainer => true ,
1359
- ty:: TraitContainer => assoc_item. defaultness ( tcx) . has_value ( ) ,
1358
+ ty:: AssocItemContainer :: Impl => true ,
1359
+ ty:: AssocItemContainer :: Trait => assoc_item. defaultness ( tcx) . has_value ( ) ,
1360
1360
} ;
1361
1361
if provided {
1362
1362
let defaultness = match assoc_item. container {
1363
- ty:: ImplContainer => Some ( assoc_item. defaultness ( tcx) ) ,
1364
- ty:: TraitContainer => None ,
1363
+ ty:: AssocItemContainer :: Impl => Some ( assoc_item. defaultness ( tcx) ) ,
1364
+ ty:: AssocItemContainer :: Trait => None ,
1365
1365
} ;
1366
1366
MethodItem ( item, defaultness)
1367
1367
} else {
@@ -1392,7 +1392,7 @@ pub(crate) fn clean_middle_assoc_item(assoc_item: &ty::AssocItem, cx: &mut DocCo
1392
1392
}
1393
1393
1394
1394
let mut predicates = tcx. explicit_predicates_of ( assoc_item. def_id ) . predicates ;
1395
- if let ty:: TraitContainer = assoc_item. container {
1395
+ if let ty:: AssocItemContainer :: Trait = assoc_item. container {
1396
1396
let bounds = tcx. explicit_item_bounds ( assoc_item. def_id ) . iter_identity_copied ( ) ;
1397
1397
predicates = tcx. arena . alloc_from_iter ( bounds. chain ( predicates. iter ( ) . copied ( ) ) ) ;
1398
1398
}
@@ -1403,7 +1403,7 @@ pub(crate) fn clean_middle_assoc_item(assoc_item: &ty::AssocItem, cx: &mut DocCo
1403
1403
} ) ;
1404
1404
simplify:: move_bounds_to_generic_parameters ( & mut generics) ;
1405
1405
1406
- if let ty:: TraitContainer = assoc_item. container {
1406
+ if let ty:: AssocItemContainer :: Trait = assoc_item. container {
1407
1407
// Move bounds that are (likely) directly attached to the associated type
1408
1408
// from the where-clause to the associated type.
1409
1409
// There is no guarantee that this is what the user actually wrote but we have
0 commit comments