NLL: change compare-mode=nll to use borrowck=migrate #55118
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-complete
Working towards the "valid code works" goal
NLL-diagnostics
Working towards the "diagnostic parity" goal
NLL-sound
Working towards the "invalid code does not compile" goal
Milestone
We have a couple different modes that NLL can run in.
borrowck=mir is sort of the "adopt NLL whole hog"; it just runs the MIR-based borrow checker, and reports its errors as, well, errors.
borrowck=migrate is the migration plan for the 2018 edition. It runs the MIR-based borrow checker, and if it signals an error, then it runs the old AST-based borrow checker as a backup. If the code is accepted by AST-based borrow checker, then all the MIR-based errors are downgraded to warnings. This is the mode that we'll be deploying for Rust 2018.
Anyway: We are currently testing borrowck=mir for our test suite via
compare-mode=nll
.The plan is to deploy borrowck=migrate.
We have barely any automated testing of borrowck=migrate.
See the problem here?
My proposal: We should change
compare-mode=nll
to useborrowck=migrate
instead ofborrowck=mir
. We should make this change ASAP.The text was updated successfully, but these errors were encountered: