We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e58b932 commit 5a496aaCopy full SHA for 5a496aa
compiler/rustc_trait_selection/src/traits/const_evaluatable.rs
@@ -157,12 +157,7 @@ fn satisfied_from_param_env<'tcx>(
157
for pred in param_env.caller_bounds() {
158
match pred.kind().skip_binder() {
159
ty::PredicateKind::ConstEvaluatable(ce) => {
160
- let ty::ConstKind::Unevaluated(_) = ce.kind() else {
161
- continue
162
- };
163
- let Some(b_ct) = tcx.expand_abstract_consts(ce)? else {
164
165
+ let b_ct = tcx.expand_abstract_consts(ce)?.unwrap_or(ce);
166
167
let mut v = Visitor { ct, infcx, param_env };
168
let result = b_ct.visit_with(&mut v);
0 commit comments