Skip to content

Commit 6e4e6b9

Browse files
committed
canonical comment
1 parent a6f30d7 commit 6e4e6b9

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_trait_selection/src/solve/eval_ctxt

1 file changed

+4
-0
lines changed

compiler/rustc_trait_selection/src/solve/eval_ctxt/canonical.rs

+4
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
377377
}
378378
}
379379

380+
/// Used by proof trees to be able to recompute intermediate actions while
381+
/// evaluating a goal. The `var_values` not only include the bound variables
382+
/// of the query input, but also contain all unconstrained inference vars
383+
/// created while evaluating this goal.
380384
pub(in crate::solve) fn make_canonical_state<'tcx, T: TypeFoldable<TyCtxt<'tcx>>>(
381385
infcx: &InferCtxt<'tcx>,
382386
var_values: &[ty::GenericArg<'tcx>],

0 commit comments

Comments
 (0)