From ce14a1eba0a9dd4c4bc5394ee53a8d1756796a9e Mon Sep 17 00:00:00 2001 From: Boxy Date: Fri, 17 Mar 2023 13:34:20 +0000 Subject: [PATCH] add comments Co-authored-by: lcnr --- compiler/rustc_trait_selection/src/solve/eval_ctxt.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/rustc_trait_selection/src/solve/eval_ctxt.rs b/compiler/rustc_trait_selection/src/solve/eval_ctxt.rs index 20ed572df80d6..be138e0ab54b7 100644 --- a/compiler/rustc_trait_selection/src/solve/eval_ctxt.rs +++ b/compiler/rustc_trait_selection/src/solve/eval_ctxt.rs @@ -189,6 +189,11 @@ impl<'tcx> EvalCtxt<'_, 'tcx> { }) } + /// Equates two values returning the nested goals without adding them + /// to the nested goals of the `EvalCtxt`. + /// + /// If possible, try using `eq` instead which automatically handles nested + /// goals correctly. #[instrument(level = "debug", skip(self, param_env), ret)] pub(super) fn eq_and_get_goals>( &self,