Skip to content

Commit 33794fd

Browse files
committed
mention --edition restrictions in rustc-dev-guide
1 parent 9cf6e8c commit 33794fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: src/doc/rustc-dev-guide/src/tests/directives.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,14 @@ ignoring debuggers.
229229

230230
### Affecting how tests are built
231231

232-
| Directive | Explanation | Supported test suites | Possible values |
233-
|---------------------|----------------------------------------------------------------------------------------------|---------------------------|------------------------------------------------------------------------------|
234-
| `compile-flags` | Flags passed to `rustc` when building the test or aux file | All except for `run-make` | Any valid `rustc` flags, e.g. `-Awarnings -Dfoo`. Cannot be `-Cincremental`. |
235-
| `edition` | Alias for `compile-flags: --edition=xxx` | All except for `run-make` | Any valid `--edition` value |
236-
| `rustc-env` | Env var to set when running `rustc` | All except for `run-make` | `<KEY>=<VALUE>` |
237-
| `unset-rustc-env` | Env var to unset when running `rustc` | All except for `run-make` | Any env var name |
238-
| `incremental` | Proper incremental support for tests outside of incremental test suite | `ui`, `crashes` | N/A |
239-
| `no-prefer-dynamic` | Don't use `-C prefer-dynamic`, don't build as a dylib via a `--crate-type=dylib` preset flag | `ui`, `crashes` | N/A |
232+
| Directive | Explanation | Supported test suites | Possible values |
233+
|---------------------|----------------------------------------------------------------------------------------------|---------------------------|--------------------------------------------------------------------------------------------|
234+
| `compile-flags` | Flags passed to `rustc` when building the test or aux file | All except for `run-make` | Any valid `rustc` flags, e.g. `-Awarnings -Dfoo`. Cannot be `-Cincremental` or `--edition` |
235+
| `edition` | The edition used to build the test | All except for `run-make` | Any valid `--edition` value |
236+
| `rustc-env` | Env var to set when running `rustc` | All except for `run-make` | `<KEY>=<VALUE>` |
237+
| `unset-rustc-env` | Env var to unset when running `rustc` | All except for `run-make` | Any env var name |
238+
| `incremental` | Proper incremental support for tests outside of incremental test suite | `ui`, `crashes` | N/A |
239+
| `no-prefer-dynamic` | Don't use `-C prefer-dynamic`, don't build as a dylib via a `--crate-type=dylib` preset flag | `ui`, `crashes` | N/A |
240240

241241
<div class="warning">
242242
Tests (outside of `run-make`) that want to use incremental tests not in the

0 commit comments

Comments
 (0)