Reflect the changes in rust-lang/rust#67000 (#1632)
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
cee03b4dc3
commit
70e8b3e396
|
|
@ -233,14 +233,13 @@ but [you can read about those below](#promoted)).
|
|||
- **Terminators** are represented by the [`Terminator`].
|
||||
- **Locals** are represented by a [newtype'd] index type [`Local`].
|
||||
The data for a local variable is found in the
|
||||
[`Body::local_decls`][localdecls] vector). There is also a special constant
|
||||
[`Body::local_decls`][localdecls] vector. There is also a special constant
|
||||
[`RETURN_PLACE`] identifying the special "local" representing the return value.
|
||||
- **Places** are identified by the enum [`Place`]. There are a few
|
||||
variants:
|
||||
- **Places** are identified by the struct [`Place`]. There are a few
|
||||
fields:
|
||||
- Local variables like `_1`
|
||||
- Static variables `FOO`
|
||||
- **Projections**, which are fields or other things that "project
|
||||
out" from a base place. These are represented by the type
|
||||
out" from a base place. These are represented by the [newtype'd] type
|
||||
[`ProjectionElem`]. So e.g. the place `_1.f` is a projection,
|
||||
with `f` being the "projection element" and `_1` being the base
|
||||
path. `*_1` is also a projection, with the `*` being represented
|
||||
|
|
|
|||
Loading…
Reference in New Issue