@@ -1503,7 +1503,7 @@ impl Clean<Type> for hir::Ty<'_> {
1503
1503
}
1504
1504
1505
1505
/// Returns `None` if the type could not be normalized
1506
- fn normalize ( cx : & DocContext < ' tcx > , ty : Ty < ' tcx > ) -> Option < Ty < ' tcx > > {
1506
+ fn normalize ( cx : & DocContext < ' tcx > , ty : Ty < ' _ > ) -> Option < Ty < ' tcx > > {
1507
1507
use crate :: rustc_trait_selection:: infer:: TyCtxtInferExt ;
1508
1508
use crate :: rustc_trait_selection:: traits:: query:: normalize:: AtExt ;
1509
1509
use rustc_middle:: traits:: ObligationCause ;
@@ -1518,11 +1518,11 @@ fn normalize(cx: &DocContext<'tcx>, ty: Ty<'tcx>) -> Option<Ty<'tcx>> {
1518
1518
} ) ;
1519
1519
match normalized {
1520
1520
Ok ( normalized_value) => {
1521
- debug ! ( "resolved {:?} to {:?}" , ty, normalized_value) ;
1521
+ debug ! ( "normalized {:?} to {:?}" , ty, normalized_value) ;
1522
1522
Some ( normalized_value)
1523
1523
}
1524
1524
Err ( err) => {
1525
- debug ! ( "failed to resolve {:?}: {:?}" , ty, err) ;
1525
+ debug ! ( "failed to normalize {:?}: {:?}" , ty, err) ;
1526
1526
None
1527
1527
}
1528
1528
}
@@ -1531,7 +1531,7 @@ fn normalize(cx: &DocContext<'tcx>, ty: Ty<'tcx>) -> Option<Ty<'tcx>> {
1531
1531
impl < ' tcx > Clean < Type > for Ty < ' tcx > {
1532
1532
fn clean ( & self , cx : & DocContext < ' _ > ) -> Type {
1533
1533
debug ! ( "cleaning type: {:?}" , self ) ;
1534
- let ty = normalize ( cx, self . lift_to_tcx ( cx . tcx ) . unwrap ( ) ) . unwrap_or ( self ) ;
1534
+ let ty = normalize ( cx, self ) . unwrap_or ( self ) ;
1535
1535
match * ty. kind ( ) {
1536
1536
ty:: Never => Never ,
1537
1537
ty:: Bool => Primitive ( PrimitiveType :: Bool ) ,
0 commit comments