File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ over the overflow checks.)
217
217
# # MIR data types
218
218
219
219
The MIR data types are defined in the [`compiler/rustc_middle/src/mir/`][mir]
220
- module. Each of the key concepts mentioned in the previous section
220
+ module. Each of the key concepts mentioned in the previous section
221
221
maps in a fairly straightforward way to a Rust type.
222
222
223
223
The main MIR data type is [`Body`]. It contains the data for a single
@@ -235,10 +235,9 @@ but [you can read about those below](#promoted)).
235
235
The data for a local variable is found in the
236
236
[`Body::local_decls`][localdecls] vector). There is also a special constant
237
237
[`RETURN_PLACE`] identifying the special "local" representing the return value.
238
- - **Places** are identified by the enum [`Place`]. There are a few
239
- variants :
238
+ - **Places** are identified by the struct [`Place`]. There are a few
239
+ fields :
240
240
- Local variables like `_1`
241
- - Static variables `FOO`
242
241
- **Projections**, which are fields or other things that "project
243
242
out" from a base place. These are represented by the type
244
243
[`ProjectionElem`]. So e.g. the place `_1.f` is a projection,
You can’t perform that action at this time.
0 commit comments