@@ -906,7 +906,7 @@ impl Clean<bool> for hir::IsAuto {
906
906
impl Clean < Type > for hir:: TraitRef < ' _ > {
907
907
fn clean ( & self , cx : & mut DocContext < ' _ > ) -> Type {
908
908
let path = self . path . clean ( cx) ;
909
- resolve_type ( cx, path, self . hir_ref_id )
909
+ resolve_type ( cx, path)
910
910
}
911
911
}
912
912
@@ -1164,7 +1164,7 @@ impl Clean<Item> for ty::AssocItem {
1164
1164
1165
1165
fn clean_qpath ( hir_ty : & hir:: Ty < ' _ > , cx : & mut DocContext < ' _ > ) -> Type {
1166
1166
use rustc_hir:: GenericParamCount ;
1167
- let hir:: Ty { hir_id, span, ref kind } = * hir_ty;
1167
+ let hir:: Ty { hir_id : _ , span, ref kind } = * hir_ty;
1168
1168
let qpath = match kind {
1169
1169
hir:: TyKind :: Path ( qpath) => qpath,
1170
1170
_ => unreachable ! ( ) ,
@@ -1271,7 +1271,7 @@ fn clean_qpath(hir_ty: &hir::Ty<'_>, cx: &mut DocContext<'_>) -> Type {
1271
1271
return cx. enter_alias ( ty_substs, lt_substs, ct_substs, |cx| ty. clean ( cx) ) ;
1272
1272
}
1273
1273
let path = path. clean ( cx) ;
1274
- resolve_type ( cx, path, hir_id )
1274
+ resolve_type ( cx, path)
1275
1275
}
1276
1276
hir:: QPath :: Resolved ( Some ( ref qself) , ref p) => {
1277
1277
// Try to normalize `<X as Y>::T` to a type
@@ -1292,7 +1292,7 @@ fn clean_qpath(hir_ty: &hir::Ty<'_>, cx: &mut DocContext<'_>) -> Type {
1292
1292
name : p. segments . last ( ) . expect ( "segments were empty" ) . ident . name ,
1293
1293
self_def_id : Some ( DefId :: local ( qself. hir_id . owner . local_def_index ) ) ,
1294
1294
self_type : Box :: new ( qself. clean ( cx) ) ,
1295
- trait_ : Box :: new ( resolve_type ( cx, trait_path, hir_id ) ) ,
1295
+ trait_ : Box :: new ( resolve_type ( cx, trait_path) ) ,
1296
1296
}
1297
1297
}
1298
1298
hir:: QPath :: TypeRelative ( ref qself, ref segment) => {
@@ -1308,7 +1308,7 @@ fn clean_qpath(hir_ty: &hir::Ty<'_>, cx: &mut DocContext<'_>) -> Type {
1308
1308
name : segment. ident . name ,
1309
1309
self_def_id : res. opt_def_id ( ) ,
1310
1310
self_type : Box :: new ( qself. clean ( cx) ) ,
1311
- trait_ : Box :: new ( resolve_type ( cx, trait_path, hir_id ) ) ,
1311
+ trait_ : Box :: new ( resolve_type ( cx, trait_path) ) ,
1312
1312
}
1313
1313
}
1314
1314
hir:: QPath :: LangItem ( ..) => bug ! ( "clean: requiring documentation of lang item" ) ,
0 commit comments