change usages of type_of to bound_type_of
This commit is contained in:
@@ -453,7 +453,7 @@ impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx> {
|
||||
| clean::BorrowedRef { type_: box clean::Type::Path { ref path }, .. } => {
|
||||
dids.insert(path.def_id());
|
||||
if let Some(generics) = path.generics() &&
|
||||
let ty::Adt(adt, _) = self.tcx.type_of(path.def_id()).kind() &&
|
||||
let ty::Adt(adt, _) = self.tcx.bound_type_of(path.def_id()).subst_identity().kind() &&
|
||||
adt.is_fundamental() {
|
||||
for ty in generics {
|
||||
if let Some(did) = ty.def_id(self.cache) {
|
||||
|
||||
Reference in New Issue
Block a user