third_party/move/move-compiler-v2/tests/testsuite.rs checks for fatal errors periodically using check_diags(), dumping accumulated errors.
third_party/move/move-compiler-v2/src/lib.rs checks for errors periodically using check-errors(), dumping accumulated errors.
These checks happen at different intervals in the 2 frameworks, leading to different warning/error output ordering for tests versus real compiler/transactional-tests.
Users benefit from warnings/errors that are more in program order, so delaying output until an error is actually found may allow us to generate more warnings/errors in an ordering that is better for the user.
🐛 Bug
third_party/move/move-compiler-v2/tests/testsuite.rs checks for fatal errors periodically using
check_diags()
, dumping accumulated errors.third_party/move/move-compiler-v2/src/lib.rs checks for errors periodically using
check-errors()
, dumping accumulated errors.These checks happen at different intervals in the 2 frameworks, leading to different warning/error output ordering for tests versus real compiler/transactional-tests.
Users benefit from warnings/errors that are more in program order, so delaying output until an error is actually found may allow us to generate more warnings/errors in an ordering that is better for the user.