Lint on FileCheck directives with missing colon #130981
Labels
A-compiletest
Area: The compiletest test runner
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
In current compiletest -> FileCheck setup (e.g. codegen/assembly tests), if you forgor a colon
:
in one of the FileCheck directives, it gets silently ignored by both compilest and FileCheck, meaning that you aren't testing anything.This test currently will just silently pass, even though we wanted to check
ret
doesn't exist (made-up example for illustration purposes). Realized while reviewing #128018.Example missing colon (real example): #125626.
We should probably aim to lint on cases like this.
The text was updated successfully, but these errors were encountered: