@@ -228,7 +228,7 @@ fn build_external_function(cx: &DocContext<'_>, did: DefId) -> clean::Function {
228
228
}
229
229
230
230
fn build_enum ( cx : & DocContext < ' _ > , did : DefId ) -> clean:: Enum {
231
- let predicates = cx. tcx . predicates_of ( did) ;
231
+ let predicates = cx. tcx . explicit_predicates_of ( did) ;
232
232
233
233
clean:: Enum {
234
234
generics : ( cx. tcx . generics_of ( did) , & predicates) . clean ( cx) ,
@@ -238,7 +238,7 @@ fn build_enum(cx: &DocContext<'_>, did: DefId) -> clean::Enum {
238
238
}
239
239
240
240
fn build_struct ( cx : & DocContext < ' _ > , did : DefId ) -> clean:: Struct {
241
- let predicates = cx. tcx . predicates_of ( did) ;
241
+ let predicates = cx. tcx . explicit_predicates_of ( did) ;
242
242
let variant = cx. tcx . adt_def ( did) . non_enum_variant ( ) ;
243
243
244
244
clean:: Struct {
@@ -254,7 +254,7 @@ fn build_struct(cx: &DocContext<'_>, did: DefId) -> clean::Struct {
254
254
}
255
255
256
256
fn build_union ( cx : & DocContext < ' _ > , did : DefId ) -> clean:: Union {
257
- let predicates = cx. tcx . predicates_of ( did) ;
257
+ let predicates = cx. tcx . explicit_predicates_of ( did) ;
258
258
let variant = cx. tcx . adt_def ( did) . non_enum_variant ( ) ;
259
259
260
260
clean:: Union {
@@ -266,7 +266,7 @@ fn build_union(cx: &DocContext<'_>, did: DefId) -> clean::Union {
266
266
}
267
267
268
268
fn build_type_alias ( cx : & DocContext < ' _ > , did : DefId ) -> clean:: Typedef {
269
- let predicates = cx. tcx . predicates_of ( did) ;
269
+ let predicates = cx. tcx . explicit_predicates_of ( did) ;
270
270
271
271
clean:: Typedef {
272
272
type_ : cx. tcx . type_of ( did) . clean ( cx) ,
@@ -325,7 +325,7 @@ pub fn build_impl(cx: &DocContext<'_>, did: DefId, ret: &mut Vec<clean::Item>) {
325
325
}
326
326
}
327
327
328
- let predicates = tcx. predicates_of ( did) ;
328
+ let predicates = tcx. explicit_predicates_of ( did) ;
329
329
let ( trait_items, generics) = if let Some ( hir_id) = tcx. hir ( ) . as_local_hir_id ( did) {
330
330
match tcx. hir ( ) . expect_item_by_hir_id ( hir_id) . node {
331
331
hir:: ItemKind :: Impl ( .., ref gen, _, _, ref item_ids) => {
0 commit comments