diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-23 23:49:46 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-24 01:48:44 +0000 |
| commit | d8dc31fd3d2a03bc4b01974328c92d2ffb2f4fea (patch) | |
| tree | ee3dc46be9840ae6f3a5235ba6330c4bf43349c5 /compiler/rustc_trait_selection/src | |
| parent | b8bb2968ce1e44d01520c9d59ee6299ed66df3f9 (diff) | |
| download | rust-d8dc31fd3d2a03bc4b01974328c92d2ffb2f4fea.tar.gz rust-d8dc31fd3d2a03bc4b01974328c92d2ffb2f4fea.zip | |
Consider param-env candidates even if they have errors
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs b/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs index eea3867190d..c0122d3d552 100644 --- a/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs +++ b/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs @@ -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()) |
