about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-10-23 23:49:46 +0000
committerMichael Goulet <michael@errs.io>2024-10-24 01:48:44 +0000
commitd8dc31fd3d2a03bc4b01974328c92d2ffb2f4fea (patch)
treeee3dc46be9840ae6f3a5235ba6330c4bf43349c5 /compiler/rustc_trait_selection/src
parentb8bb2968ce1e44d01520c9d59ee6299ed66df3f9 (diff)
downloadrust-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.rs1
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())