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
+1Lines changed: 1 addition & 0 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>`|
| Describe the *syntax* of a type: what the user wrote (with some desugaring). | Describe the *semantics* of a type: the meaning of what the user wrote. |
63
63
| Each `rustc_hir::Ty` has its own spans corresponding to the appropriate place in the program. | Doesn’t correspond to a single place in the user’s program. |
64
-
|`rustc_hir::Ty` has generics and lifetimes; however, some of those lifetimes are special markers like [`LifetimeName::Implicit`][implicit]. |`ty::Ty` has the full type, including generics and lifetimes, even if the user left them out |
64
+
|`rustc_hir::Ty` has generics and lifetimes; however, some of those lifetimes are special markers like [`LifetimeKind::Implicit`][implicit]. |`ty::Ty` has the full type, including generics and lifetimes, even if the user left them out |
65
65
|`fn foo(x: u32) → u32 { }` - Two `rustc_hir::Ty` representing each usage of `u32`, each has its own `Span`s, and `rustc_hir::Ty` doesn’t tell us that both are the same type |`fn foo(x: u32) → u32 { }` - One `ty::Ty` for all instances of `u32` throughout the program, and `ty::Ty` tells us that both usages of `u32` mean the same type. |
66
-
|`fn foo(x: &u32) -> &u32)` - Two `rustc_hir::Ty` again. Lifetimes for the references show up in the `rustc_hir::Ty`s using a special marker, [`LifetimeName::Implicit`][implicit]. |`fn foo(x: &u32) -> &u32)`- A single `ty::Ty`. The `ty::Ty` has the hidden lifetime param. |
66
+
|`fn foo(x: &u32) -> &u32)` - Two `rustc_hir::Ty` again. Lifetimes for the references show up in the `rustc_hir::Ty`s using a special marker, [`LifetimeKind::Implicit`][implicit]. |`fn foo(x: &u32) -> &u32)`- A single `ty::Ty`. The `ty::Ty` has the hidden lifetime param. |
@@ -323,4 +323,4 @@ When looking at the debug output of `Ty` or simply talking about different types
323
323
- Generic parameters: `{name}/#{index}` e.g. `T/#0`, where `index` corresponds to its position in the list of generic parameters
324
324
- Inference variables: `?{id}` e.g. `?x`/`?0`, where `id` identifies the inference variable
325
325
- Variables from binders: `^{binder}_{index}` e.g. `^0_x`/`^0_2`, where `binder` and `index` identify which variable from which binder is being referred to
326
-
- Placeholders: `!{id}` or `!{id}_{universe}` e.g. `!x`/`!0`/`!x_2`/`!0_2`, representing some unique type in the specified universe. The universe is often elided when it is `0`
326
+
- Placeholders: `!{id}` or `!{id}_{universe}` e.g. `!x`/`!0`/`!x_2`/`!0_2`, representing some unique type in the specified universe. The universe is often elided when it is `0`
0 commit comments