compiletest: limitation of compile-fail error message collection #37871
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
Apparently the
compiletest
harness couldn't cope with multiple#[cfg]
'd items expected to error. During fixing of the testsuite on MIPS I got very frustrated over some of the cases, such as this one:If I copy and
cfg
the whole function, the error is even more confusing:Apart from duplicating the whole test case file, is there any way to fix it in
compiletest
instead? However upon looking at the "parsing" code used I realize it's a huge undertake as the proper solution at least needs a proper AST to begin with...The text was updated successfully, but these errors were encountered: