File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -825,6 +825,8 @@ pub struct LocalDecl<'tcx> {
825
825
/// ```
826
826
pub source_info : SourceInfo ,
827
827
828
+ /// `true` if the local has a fixed storage for the duration of the body
829
+ /// (that is, it does not have `StorageLive`/`StorageDead` annotations).
828
830
pub always_storage_live : bool ,
829
831
}
830
832
Original file line number Diff line number Diff line change 1
1
use rustc_index:: bit_set:: BitSet ;
2
2
use rustc_middle:: mir:: { self , HasLocalDecls , Local } ;
3
3
4
- /// The set of locals in a MIR body that do not have `StorageLive`/`StorageDead` annotations.
4
+ /// Returns the set of locals in a MIR body that do not have `StorageLive`/`StorageDead`
5
+ /// annotations.
5
6
///
6
7
/// These locals have fixed storage for the duration of the body.
7
8
pub fn always_live_locals ( body : & mir:: Body < ' _ > ) -> BitSet < Local > {
You can’t perform that action at this time.
0 commit comments