Skip to content

Conversation

compiler-errors
Copy link
Member

I don't think we need this anymore...?

I don't have much context, but I was poking around old rust sources for history, and afaict InferCtxt::commit_unconditionally came from InferCtxt::in_snapshot, which was useful because the snapshot variable was used for things like InferCtxt::plug_leaks which we don't have anymore.

We have only one usage of InferCtxt::commit_unconditionally which does use the snapshot for leak check, but I think that's better served by InferCtxt::commit_if_ok. I think @jackh726 touched that last in #97206.

This PR is best reviewed by disabling whitespace in the diff settings.

@rust-highfive
Copy link
Contributor

r? @cjgillot

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 3, 2022
@jackh726
Copy link
Member

jackh726 commented Aug 3, 2022

#99509

@jackh726 jackh726 closed this Aug 3, 2022
@compiler-errors
Copy link
Member Author

🤣

@compiler-errors compiler-errors deleted the no-commit-unconditionally branch August 11, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants