Skip to content

Commit 53ec4bc

Browse files
Remove some stale FIXMEs in new solver
1 parent f421586 commit 53ec4bc

File tree

2 files changed

+0
-6
lines changed
  • compiler/rustc_trait_selection/src/solve

2 files changed

+0
-6
lines changed

compiler/rustc_trait_selection/src/solve/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
//! FIXME(@lcnr): Write that section. If you read this before then ask me
1010
//! about it on zulip.
1111
12-
// FIXME: uses of `infcx.at` need to enable deferred projection equality once that's implemented.
13-
1412
use rustc_hir::def_id::DefId;
1513
use rustc_infer::infer::canonical::{Canonical, CanonicalVarValues};
1614
use rustc_infer::traits::query::NoSolution;
@@ -105,8 +103,6 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
105103
goal: Goal<'tcx, SubtypePredicate<'tcx>>,
106104
) -> QueryResult<'tcx> {
107105
if goal.predicate.a.is_ty_var() && goal.predicate.b.is_ty_var() {
108-
// FIXME: Do we want to register a subtype relation between these vars?
109-
// That won't actually reflect in the query response, so it seems moot.
110106
self.evaluate_added_goals_and_make_canonical_response(Certainty::AMBIGUOUS)
111107
} else {
112108
self.sub(goal.param_env, goal.predicate.a, goal.predicate.b)?;

compiler/rustc_trait_selection/src/solve/search_graph/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ impl<'tcx> SearchGraph<'tcx> {
7878
tcx: TyCtxt<'tcx>,
7979
goal: CanonicalGoal<'tcx>,
8080
) -> Result<(), QueryResult<'tcx>> {
81-
// FIXME: start by checking the global cache
82-
8381
// Look at the provisional cache to check for cycles.
8482
let cache = &mut self.provisional_cache;
8583
match cache.lookup_table.entry(goal) {

0 commit comments

Comments
 (0)