From af3ff10c7d1d325bef400a2a385fc34ef05c375c Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 20 Aug 2018 13:35:43 -0700 Subject: [PATCH] improve comment on `LiveVar` --- .../borrow_check/nll/type_check/liveness/liveness_map.rs | 9 +++++++-- 1 file 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 +);