Skip to content

Commit a5ed0a7

Browse files
committed
Comment about normalization of anon consts with impossible preds
1 parent 1889367 commit a5ed0a7

File tree

1 file changed

+7
-0
lines changed
  • compiler/rustc_next_trait_solver/src/solve/normalizes_to

1 file changed

+7
-0
lines changed

compiler/rustc_next_trait_solver/src/solve/normalizes_to/anon_const.rs

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ where
2121
self.instantiate_normalizes_to_term(goal, normalized_const.into());
2222
self.evaluate_added_goals_and_make_canonical_response(Certainty::Yes)
2323
} else {
24+
// FIXME(BoxyUwU) FIXME(min_generic_const_args): I could not figure out how to write a test for this
25+
// as we don't currently support constants in the type system with impossible predicates. It may become
26+
// possible once `min_generic_const_args` has progressed more.
27+
28+
// In coherence we should never consider an unevaluatable constant to be rigid. It may be failing due to
29+
// impossible predicates (cc #139000 #137972), or a `panic!`, either way we don't want this to influence
30+
// what impls are considered to overlap.
2431
self.evaluate_added_goals_and_make_canonical_response(Certainty::AMBIGUOUS)
2532
}
2633
}

0 commit comments

Comments
 (0)