diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-08-20 13:35:43 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-08-27 13:57:55 -0400 |
| commit | af3ff10c7d1d325bef400a2a385fc34ef05c375c (patch) | |
| tree | f825843d7efaa3c6833e2fe45b59371b48c75c26 | |
| parent | 94697ba4b65fea81f7a664671437d706794a3f16 (diff) | |
| download | rust-af3ff10c7d1d325bef400a2a385fc34ef05c375c.tar.gz rust-af3ff10c7d1d325bef400a2a385fc34ef05c375c.zip | |
improve comment on `LiveVar`
| -rw-r--r-- | src/librustc_mir/borrow_check/nll/type_check/liveness/liveness_map.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/librustc_mir/borrow_check/nll/type_check/liveness/liveness_map.rs b/src/librustc_mir/borrow_check/nll/type_check/liveness/liveness_map.rs index d3064d7165f..15affbbc27a 100644 --- a/src/librustc_mir/borrow_check/nll/type_check/liveness/liveness_map.rs +++ b/src/librustc_mir/borrow_check/nll/type_check/liveness/liveness_map.rs @@ -93,5 +93,10 @@ impl NllLivenessMap { } } -/// Index given to each local variable whose type contains a region. -newtype_index!(LiveVar); +/// Index given to each local variable for which we need to +/// compute liveness information. For many locals, we are able to +/// skip liveness information: for example, those variables whose +/// types contain no regions. +newtype_index!( + LiveVar +); |
