This PR was split out from #29965:
Adds support for running individual tests in the rust lint suite by passing --lint=LINT_TO_RUN
to the lint runner. This PR also adds a corresponding help message.
When running with cargo run
, arguments after a double dash (--
) are passed to the binary instead of the cargo command. For example, in order to run the linter check that tabs are not used as whitespace:
0cd test/lint/test_runner && cargo run -- --lint=tabs_whitespace