-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a MIR-borrowck-only output mode #46106
Conversation
r? @nikomatsakis or someone else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @est31!
@bors r+ |
📌 Commit 59780fe has been approved by |
☔ The latest upstream changes (presumably #46040) made this pull request unmergeable. Please resolve the merge conflicts. |
Needs rebase, I'm afraid. |
The PR touches every single MIR borrowck test... it is expectable that there is a little breakage :). This probably won't be the last time I'll have to do a rebase but I don't mind that. The PR should be rebased again re-r? @nikomatsakis |
@bors r+ |
📌 Commit 291ac56 has been approved by |
@bors p=1 |
Heh, I almost did the same thing (p=1) but then reconsidered for the same reason. |
☔ The latest upstream changes (presumably #46087) made this pull request unmergeable. Please resolve the merge conflicts. |
re-r? @nikomatsakis |
where mode is one of {ast,mir,compare}. This commit only implements the functionality. The tests will be updated in a follow up commit.
@bors r=nikomatsakis |
📌 Commit d791798 has been approved by |
Add a MIR-borrowck-only output mode Removes the `-Z borrowck-mir` flag in favour of a `-Z borrowck=mode` flag where mode can be `mir`, `ast`, or `compare`. * The `ast` mode represents the current default, passing `-Z borrowck=ast` is equivalent to not passing it at all. * The `compare` mode outputs both the output of the MIR borrow checker and the AST borrow checker, each error with `(Ast)` and `(Mir)` appended. This mode has the same behaviour as `-Z borrowck-mir` had before this commit. * The `mir` mode only outputs the results of the MIR borrow checker, while suppressing the errors of the ast borrow checker The PR also updates the tests to use the new flags. closes #46097
☀️ Test successful - status-appveyor, status-travis |
Removes the
-Z borrowck-mir
flag in favour of a-Z borrowck=mode
flag where mode can bemir
,ast
, orcompare
.ast
mode represents the current default, passing-Z borrowck=ast
is equivalent to not passing it at all.compare
mode outputs both the output of the MIR borrow checker and the AST borrow checker, each error with(Ast)
and(Mir)
appended. This mode has the same behaviour as-Z borrowck-mir
had before this commit.mir
mode only outputs the results of the MIR borrow checker, while suppressing the errors of the ast borrow checkerThe PR also updates the tests to use the new flags.
closes #46097