Skip to content

Commit

Permalink
Change NLL compare mode to borrowck=migrate.
Browse files Browse the repository at this point in the history
This commit changes the NLL compare mode to pass `-Z borrowck=migrate`
rather than `-Z borrowck=nll` to better test what will be deployed. It
does not include the test output updates, as separation of these commits
makes reviewing simpler.
  • Loading branch information
davidtwco committed Oct 16, 2018
1 parent d8db529 commit 8b34881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ impl<'test> TestCx<'test> {

match self.config.compare_mode {
Some(CompareMode::Nll) => {
rustc.args(&["-Zborrowck=mir", "-Ztwo-phase-borrows"]);
rustc.args(&["-Zborrowck=migrate", "-Ztwo-phase-borrows"]);
}
Some(CompareMode::Polonius) => {
rustc.args(&["-Zpolonius", "-Zborrowck=mir", "-Ztwo-phase-borrows"]);
Expand Down

0 comments on commit 8b34881

Please sign in to comment.