Skip to content

Commit 7132ef4

Browse files
committed
also don't normalize associated type bounds in wfcheck
1 parent 4e782e8 commit 7132ef4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_hir_analysis/src/check/wfcheck.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
});

0 commit comments

Comments
 (0)