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;
55use rustc_type_ir:: inherent:: * ;
66use rustc_type_ir:: lang_items:: TraitSolverLangItem ;
77use rustc_type_ir:: solve:: SizedTraitKind ;
8- use rustc_type_ir:: solve:: inspect:: ProbeKind ;
98use rustc_type_ir:: { self as ty, Interner , elaborate} ;
109use tracing:: instrument;
1110
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments