We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e79f8 commit 585eac8Copy full SHA for 585eac8
compiler/rustc_trait_selection/src/solve/delegate.rs
@@ -135,6 +135,13 @@ impl<'tcx> rustc_next_trait_solver::delegate::SolverDelegate for SolverDelegate<
135
None
136
}
137
138
+ ty::PredicateKind::Clause(ty::ClauseKind::ConstArgHasType(ct, _)) => {
139
+ if self.shallow_resolve_const(ct).is_ct_infer() {
140
+ Some(Certainty::AMBIGUOUS)
141
+ } else {
142
+ None
143
+ }
144
145
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(arg)) => {
146
let arg = self.shallow_resolve_term(arg);
147
if arg.is_trivially_wf(self.tcx) {
0 commit comments