Expect clause more
This commit is contained in:
parent
46a650f4e0
commit
2fa796a3c7
4 changed files with 7 additions and 10 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue