Consider param-env candidates even if they have errors
This commit is contained in:
parent
b8bb2968ce
commit
d8dc31fd3d
10 changed files with 50 additions and 104 deletions
|
@ -244,7 +244,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
.param_env
|
||||
.caller_bounds()
|
||||
.iter()
|
||||
.filter(|p| !p.references_error())
|
||||
.filter_map(|p| p.as_trait_clause())
|
||||
// Micro-optimization: filter out predicates relating to different traits.
|
||||
.filter(|p| p.def_id() == stack.obligation.predicate.def_id())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue