File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/rustc_next_trait_solver/src/solve Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ use rustc_type_ir::fast_reject::DeepRejectCtxt;
5
5
use rustc_type_ir:: inherent:: * ;
6
6
use rustc_type_ir:: lang_items:: TraitSolverLangItem ;
7
7
use rustc_type_ir:: solve:: SizedTraitKind ;
8
- use rustc_type_ir:: solve:: inspect:: ProbeKind ;
9
8
use rustc_type_ir:: { self as ty, Interner , elaborate} ;
10
9
use tracing:: instrument;
11
10
Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ where
472
472
& mut self ,
473
473
goal : Goal < I , I :: Predicate > ,
474
474
) -> Result < Option < TraitGoalProvenVia > , NoSolution > {
475
- let ( orig_values , canonical_goal) = self . canonicalize_goal ( goal) ;
475
+ let ( _ , canonical_goal) = self . canonicalize_goal ( goal) ;
476
476
let canonical_response = EvalCtxt :: evaluate_canonical_goal (
477
477
self . cx ( ) ,
478
478
self . search_graph ,
Original file line number Diff line number Diff line change @@ -363,9 +363,10 @@ fn response_no_constraints_raw<I: Interner>(
363
363
variables,
364
364
value : Response {
365
365
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 ,
366
368
// FIXME: maybe we should store the "no response" version in cx, like
367
369
// we do for cx.types and stuff.
368
- trait_goal_proven_via : None ,
369
370
external_constraints : cx. mk_external_constraints ( ExternalConstraintsData :: default ( ) ) ,
370
371
certainty,
371
372
} ,
You can’t perform that action at this time.
0 commit comments