Skip to content

Commit

Permalink
update universe used by the leak check
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed May 30, 2023
1 parent dccc8db commit 0b81f99
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {

#[instrument(level = "debug", skip(self), ret)]
fn compute_external_query_constraints(&self) -> Result<ExternalConstraints<'tcx>, NoSolution> {
self.infcx.leak_check(ty::UniverseIndex::ROOT, None).map_err(|e| {
// We only check for leaks from universes which were entered inside
// of the query.
self.infcx.leak_check(self.max_input_universe, None).map_err(|e| {
debug!(?e, "failed the leak check");
NoSolution
})?;
Expand Down

0 comments on commit 0b81f99

Please sign in to comment.