Skip to content

Commit 724317f

Browse files
committed
w
1 parent 7789a4a commit 724317f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_next_trait_solver/src/solve/effect_goals.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use rustc_type_ir::fast_reject::DeepRejectCtxt;
55
use rustc_type_ir::inherent::*;
66
use rustc_type_ir::lang_items::TraitSolverLangItem;
77
use rustc_type_ir::solve::SizedTraitKind;
8-
use rustc_type_ir::solve::inspect::ProbeKind;
98
use rustc_type_ir::{self as ty, Interner, elaborate};
109
use tracing::instrument;
1110

compiler/rustc_next_trait_solver/src/solve/eval_ctxt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ where
472472
&mut self,
473473
goal: Goal<I, I::Predicate>,
474474
) -> Result<Option<TraitGoalProvenVia>, NoSolution> {
475-
let (orig_values, canonical_goal) = self.canonicalize_goal(goal);
475+
let (_, canonical_goal) = self.canonicalize_goal(goal);
476476
let canonical_response = EvalCtxt::evaluate_canonical_goal(
477477
self.cx(),
478478
self.search_graph,

compiler/rustc_next_trait_solver/src/solve/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,10 @@ fn response_no_constraints_raw<I: Interner>(
363363
variables,
364364
value: Response {
365365
var_values: ty::CanonicalVarValues::make_identity(cx, variables),
366+
// Cycles start out without knowing how the trait goal was proven.
367+
trait_goal_proven_via: None,
366368
// FIXME: maybe we should store the "no response" version in cx, like
367369
// we do for cx.types and stuff.
368-
trait_goal_proven_via: None,
369370
external_constraints: cx.mk_external_constraints(ExternalConstraintsData::default()),
370371
certainty,
371372
},

0 commit comments

Comments
 (0)