Skip to content

Commit

Permalink
Rollup merge of rust-lang#99253 - pierwill:pierwill/rm-storage-fixme,…
Browse files Browse the repository at this point in the history
… r=oli-obk

Remove FIXME from MIR `always_storage_live_locals`

See discussion in rust-lang#99025 (comment).
  • Loading branch information
JohnTitor authored Jul 16, 2022
2 parents 4d0df40 + 0d45977 commit 982d8f9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compiler/rustc_mir_dataflow/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
/// 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> {
let mut always_live_locals = BitSet::new_filled(body.local_decls.len());

Expand Down

0 comments on commit 982d8f9

Please sign in to comment.