1
Fork 0

Expect clause more

This commit is contained in:
Michael Goulet 2023-06-19 20:48:46 +00:00
parent 46a650f4e0
commit 2fa796a3c7
4 changed files with 7 additions and 10 deletions

View file

@ -47,7 +47,7 @@ fn associated_type_bounds<'tcx>(
}
_ => false,
})
.map(|(pred, span)| (pred.as_clause().unwrap(), span));
.map(|(pred, span)| (pred.expect_clause(), span));
let all_bounds = tcx.arena.alloc_from_iter(bounds.clauses().chain(bounds_from_parent));
debug!(