Skip to content

Commit ce14a1e

Browse files
BoxyUwUlcnr
andcommitted
add comments
Co-authored-by: lcnr <[email protected]>
1 parent ea08d3a commit ce14a1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_trait_selection/src/solve/eval_ctxt.rs

+5
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
189189
})
190190
}
191191

192+
/// Equates two values returning the nested goals without adding them
193+
/// to the nested goals of the `EvalCtxt`.
194+
///
195+
/// If possible, try using `eq` instead which automatically handles nested
196+
/// goals correctly.
192197
#[instrument(level = "debug", skip(self, param_env), ret)]
193198
pub(super) fn eq_and_get_goals<T: ToTrace<'tcx>>(
194199
&self,

0 commit comments

Comments
 (0)