compiletest shows very confusing error when a "build-fail" test fails the check
part
#130894
Labels
A-compiletest
Area: The compiletest test runner
C-bug
Category: This is a bug.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
I'm working in a test with
//@ build-fail
, and I am getting the following error from compiletest:This error clearly makes no sense -- test compilation should indeed fail, it's a build-fail test after all!
But I assume what happens is what because it says "build-fail", it expects that a "check" build (
--emit=metadata
) should succeed, and that's the cause of the error. But then it should say so very clearly.The text was updated successfully, but these errors were encountered: