Skip to content

Commit bf8a7d6

Browse files
committed
Clear some more todos
1 parent 3749b91 commit bf8a7d6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

compiler/rustc_privacy/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ where
156156
}
157157
ty::ClauseKind::ConstEvaluatable(ct) => ct.visit_with(self),
158158
ty::ClauseKind::WellFormed(term) => term.visit_with(self),
159-
ty::ClauseKind::UnstableFeature(_) => todo!(), // TODO: maybe we need a visit with function here too?
159+
ty::ClauseKind::UnstableFeature(_) => V::Result::output(),
160160
}
161161
}
162162

compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,10 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
639639
}
640640
}
641641

642-
ty::PredicateKind::Clause(ty::ClauseKind::UnstableFeature(_)) => todo!(), // TODO: is this for error reporting?
642+
ty::PredicateKind::Clause(ty::ClauseKind::UnstableFeature(symbol)) => {
643+
// TODO: write a test that can trigger this path.
644+
span_bug!(span, "unstable feature {:?} not enabled", symbol);
645+
}
643646

644647
// Errors for `ConstEvaluatable` predicates show up as
645648
// `SelectionError::ConstEvalFailure`,

0 commit comments

Comments
 (0)