Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
Co-authored-by: lcnr <rust@lcnr.de>
  • Loading branch information
BoxyUwU and lcnr committed Mar 17, 2023
1 parent ea08d3a commit ce14a1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/rustc_trait_selection/src/solve/eval_ctxt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: ToTrace<'tcx>>(
&self,
Expand Down

0 comments on commit ce14a1e

Please sign in to comment.