@@ -1147,17 +1147,16 @@ fn check_trait(tcx: TyCtxt<'_>, item: &hir::Item<'_>) -> Result<(), ErrorGuarant
11471147///
11481148/// Assuming the defaults are used, check that all predicates (bounds on the
11491149/// assoc type and where clauses on the trait) hold.
1150- fn check_associated_type_bounds ( wfcx : & WfCheckingCtxt < ' _ , ' _ > , item : ty:: AssocItem , span : Span ) {
1150+ fn check_associated_type_bounds ( wfcx : & WfCheckingCtxt < ' _ , ' _ > , item : ty:: AssocItem , _span : Span ) {
11511151 let bounds = wfcx. tcx ( ) . explicit_item_bounds ( item. def_id ) ;
11521152
11531153 debug ! ( "check_associated_type_bounds: bounds={:?}" , bounds) ;
11541154 let wf_obligations = bounds. iter_identity_copied ( ) . flat_map ( |( bound, bound_span) | {
1155- let normalized_bound = wfcx. normalize ( span, None , bound) ;
11561155 traits:: wf:: clause_obligations (
11571156 wfcx. infcx ,
11581157 wfcx. param_env ,
11591158 wfcx. body_def_id ,
1160- normalized_bound ,
1159+ bound ,
11611160 bound_span,
11621161 )
11631162 } ) ;
@@ -1525,7 +1524,6 @@ pub(super) fn check_where_clauses<'tcx>(wfcx: &WfCheckingCtxt<'_, 'tcx>, def_id:
15251524
15261525 assert_eq ! ( predicates. predicates. len( ) , predicates. spans. len( ) ) ;
15271526 let wf_obligations = predicates. into_iter ( ) . flat_map ( |( p, sp) | {
1528- let p = wfcx. normalize ( sp, None , p) ;
15291527 traits:: wf:: clause_obligations ( infcx, wfcx. param_env , wfcx. body_def_id , p, sp)
15301528 } ) ;
15311529 let obligations: Vec < _ > = wf_obligations. chain ( default_obligations) . collect ( ) ;
0 commit comments