Uh oh!
There was an error while loading. Please reload this page.
Add a MIR-borrowck-only output mode - #46106
Conversation
est31
commented
Nov 19, 2017
r? @nikomatsakis or someone else |
nikomatsakis
commented
Nov 20, 2017
@bors r+ |
bors
commented
Nov 20, 2017
📌 Commit 59780fe has been approved by |
bors
commented
Nov 22, 2017
☔ The latest upstream changes (presumably #46040) made this pull request unmergeable. Please resolve the merge conflicts. |
nikomatsakis
commented
Nov 22, 2017
Needs rebase, I'm afraid. |
est31
commented
Nov 22, 2017
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 |
nikomatsakis
commented
Nov 22, 2017
@bors r+ |
bors
commented
Nov 22, 2017
📌 Commit 291ac56 has been approved by |
arielb1
commented
Nov 22, 2017
@bors p=1 |
arielb1
commented
Nov 22, 2017
nikomatsakis
commented
Nov 22, 2017
Heh, I almost did the same thing (p=1) but then reconsidered for the same reason. |
bors
commented
Nov 23, 2017
☔ The latest upstream changes (presumably #46087) made this pull request unmergeable. Please resolve the merge conflicts. |
est31
commented
Nov 23, 2017
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.arielb1
commented
Nov 26, 2017
@bors r=nikomatsakis |
bors
commented
Nov 26, 2017
📌 Commit d791798 has been approved by |
bors
commented
Nov 26, 2017
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
bors
commented
Nov 26, 2017
☀️ Test successful - status-appveyor, status-travis |
Removes the
-Z borrowck-mirflag in favour of a-Z borrowck=modeflag where mode can bemir,ast, orcompare.astmode represents the current default, passing-Z borrowck=astis equivalent to not passing it at all.comparemode 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-mirhad before this commit.mirmode 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