We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.x test --rustc-args
1 parent e592090 commit 95ce237Copy full SHA for 95ce237
src/tests/running.md
@@ -133,6 +133,15 @@ Under the hood, the test runner invokes the standard Rust test runner
133
filtering for tests that include "issue-1234" in the name. (Thus
134
`--test-args` is a good way to run a collection of related tests.)
135
136
+## Passing arguments to `rustc` when running tests
137
+
138
+It can sometimes be useful to run some tests with specific compiler arguments,
139
+without using `RUSTFLAGS` (during development of unstable features, with `-Z`
140
+flags, for example).
141
142
+This can be done with `./x test`'s `--rustc-args` option, to pass additional
143
+arguments to the compiler when building the tests.
144
145
## Editing and updating the reference files
146
147
If you have changed the compiler's output intentionally, or you are
0 commit comments