File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 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.)
217217# # MIR data types
218218
219219The 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 
221221maps in a fairly straightforward way to a Rust type. 
222222
223223The 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)).
235235  The data for a local variable is found in the 
236236  [`Body::local_decls`][localdecls] vector). There is also a special constant 
237237  [`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 :
240240  - Local variables like `_1` 
241-   - Static variables `FOO` 
242241  - **Projections**, which are fields or other things that "project 
243242    out" from a base place. These are represented by the type 
244243    [`ProjectionElem`].  So e.g. the place `_1.f` is a projection, 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments