Remove FIXME from MIR always_storage_live_locals
This commit is contained in:
parent
74621c764e
commit
0d45977aa5
1 changed files with 0 additions and 3 deletions
|
@ -4,9 +4,6 @@ use rustc_middle::mir::{self, Local};
|
||||||
/// The set of locals in a MIR body that do not have `StorageLive`/`StorageDead` annotations.
|
/// The set of locals in a MIR body that do not have `StorageLive`/`StorageDead` annotations.
|
||||||
///
|
///
|
||||||
/// These locals have fixed storage for the duration of the body.
|
/// These locals have fixed storage for the duration of the body.
|
||||||
//
|
|
||||||
// FIXME: Currently, we need to traverse the entire MIR to compute this. We should instead store it
|
|
||||||
// as a field in the `LocalDecl` for each `Local`.
|
|
||||||
pub fn always_storage_live_locals(body: &mir::Body<'_>) -> BitSet<Local> {
|
pub fn always_storage_live_locals(body: &mir::Body<'_>) -> BitSet<Local> {
|
||||||
let mut always_live_locals = BitSet::new_filled(body.local_decls.len());
|
let mut always_live_locals = BitSet::new_filled(body.local_decls.len());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue