You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/appendix/glossary.md
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,6 @@ Term | Meaning
31
31
<spanid="generics">generics</span> | The list of generic parameters defined on an item. There are three kinds of generic parameters: Type, lifetime and const parameters.
32
32
<spanid="hir">HIR</span> | The _high-level [IR](#ir)_, created by lowering and desugaring the AST. ([see more](../hir.md))
33
33
<spanid="hir-id">`HirId`</span> | Identifies a particular node in the HIR by combining a def-id with an "intra-definition offset". See [the HIR chapter for more](../hir.md#identifiers-in-the-hir).
34
-
<spanid="hir-map">HIR map</span> | The HIR map, accessible via `tcx.hir()`, allows you to quickly navigate the HIR and convert between various forms of identifiers.
35
34
<spanid="ice">ICE</span> | Short for _internal compiler error_, this is when the compiler crashes.
36
35
<spanid="ich">ICH</span> | Short for _incremental compilation hash_, these are used as fingerprints for things such as HIR and crate metadata, to check if changes have been made. This is useful in incremental compilation to see if part of a crate has changed and should be recompiled.
37
36
<spanid="infcx">`infcx`</span> | The type inference context (`InferCtxt`). (see `rustc_middle::infer`)
Copy file name to clipboardExpand all lines: src/tests/directives.md
+18-9Lines changed: 18 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ for more details.
101
101
|`normalize-stdout`| Normalize actual stdout with a rule `"<raw>" -> "<normalized>"` before comparing against snapshot |`ui`, `incremental`|`"<RAW>" -> "<NORMALIZED>"`, `<RAW>`/`<NORMALIZED>` is regex capture and replace syntax |
102
102
|`dont-check-compiler-stderr`| Don't check actual compiler stderr vs stderr snapshot |`ui`| N/A |
103
103
|`dont-check-compiler-stdout`| Don't check actual compiler stdout vs stdout snapshot |`ui`| N/A |
104
+
|`dont-require-annotations`| Don't require line annotations for the given diagnostic kind (`//~ KIND`) to be exhaustive |`ui`, `incremental`|`ERROR`, `WARN`, `NOTE`, `HELP`, `SUGGESTION`|
104
105
|`run-rustfix`| Apply all suggestions via `rustfix`, snapshot fixed output, and check fixed output builds |`ui`| N/A |
105
106
|`rustfix-only-machine-applicable`|`run-rustfix` but only machine-applicable suggestions |`ui`| N/A |
106
107
|`exec-env`| Env var to set when executing a test |`ui`, `crashes`|`<KEY>=<VALUE>`|
@@ -123,6 +124,9 @@ means the test won't be compiled or run.
123
124
*`ignore-X` where `X` is a target detail or other criteria on which to ignore the test (see below)
124
125
*`only-X` is like `ignore-X`, but will *only* run the test on that target or
125
126
stage
127
+
*`ignore-auxiliary` is intended for files that *participate* in one or more other
128
+
main test files but that `compiletest` should not try to build the file itself.
129
+
Please backlink to which main test is actually using the auxiliary file.
126
130
*`ignore-test` always ignores the test. This can be used to temporarily disable
127
131
a test if it is currently not working, but you want to keep it in tree to
128
132
re-enable it later.
@@ -191,8 +195,13 @@ settings:
191
195
specified atomic widths, e.g. the test with `//@ needs-target-has-atomic: 8,
192
196
16, ptr` will only run if it supports the comma-separated list of atomic
193
197
widths.
194
-
-`needs-dynamic-linking`- ignores if target does not support dynamic linking
198
+
-`needs-dynamic-linking`— ignores if target does not support dynamic linking
195
199
(which is orthogonal to it being unable to create `dylib` and `cdylib` crate types)
200
+
-`needs-crate-type` — ignores if target platform does not support one or more
201
+
of the comma-delimited list of specified crate types. For example,
202
+
`//@ needs-crate-type: cdylib, proc-macro` will cause the test to be ignored
203
+
on `wasm32-unknown-unknown` target because the target does not support the
204
+
`proc-macro` crate type.
196
205
197
206
The following directives will check LLVM support:
198
207
@@ -229,14 +238,14 @@ ignoring debuggers.
229
238
230
239
### Affecting how tests are built
231
240
232
-
| Directive | Explanation | Supported test suites | Possible values |
|`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 |
241
+
| Directive | Explanation | Supported test suites | Possible values |
|`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`|
244
+
|`edition`|The edition used to build the test| All except for `run-make`| Any valid `--edition` value|
245
+
|`rustc-env`| Env var to set when running `rustc`| All except for `run-make`|`<KEY>=<VALUE>`|
246
+
|`unset-rustc-env`| Env var to unset when running `rustc`| All except for `run-make`| Any env var name |
247
+
|`incremental`| Proper incremental support for tests outside of incremental test suite |`ui`, `crashes`| N/A |
248
+
|`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 |
240
249
241
250
<divclass="warning">
242
251
Tests (outside of `run-make`) that want to use incremental tests not in the
0 commit comments