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 3a5045a commit a7171a3Copy full SHA for a7171a3
compiler/rustc_hir_analysis/src/check/wfcheck.rs
@@ -2370,9 +2370,12 @@ impl<'tcx> WfCheckingCtxt<'_, 'tcx> {
2370
// We lower empty bounds like `Vec<dyn Copy>:` as
2371
// `WellFormed(Vec<dyn Copy>)`, which will later get checked by
2372
// regular WF checking
2373
- if let ty::ClauseKind::WellFormed(..) = pred.kind().skip_binder() {
2374
- continue;
+
+ match pred.kind().skip_binder() {
2375
+ ty::ClauseKind::WellFormed(..) | ty::ClauseKind::UnstableFeature(..) => continue,
2376
+ _ => {},
2377
}
2378
2379
// Match the existing behavior.
2380
if pred.is_global() && !pred.has_type_flags(TypeFlags::HAS_BINDER_VARS) {
2381
let pred = self.normalize(span, None, pred);
0 commit comments