Skip to content

Commit b538d5a

Browse files
authored
Rollup merge of rust-lang#99253 - pierwill:pierwill/rm-storage-fixme, r=oli-obk
Remove FIXME from MIR `always_storage_live_locals` See discussion in rust-lang#99025 (comment).
2 parents 06eb90e + 0d45977 commit b538d5a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/rustc_mir_dataflow/src/storage.rs

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ use rustc_middle::mir::{self, Local};
44
/// The set of locals in a MIR body that do not have `StorageLive`/`StorageDead` annotations.
55
///
66
/// These locals have fixed storage for the duration of the body.
7-
//
8-
// FIXME: Currently, we need to traverse the entire MIR to compute this. We should instead store it
9-
// as a field in the `LocalDecl` for each `Local`.
107
pub fn always_storage_live_locals(body: &mir::Body<'_>) -> BitSet<Local> {
118
let mut always_live_locals = BitSet::new_filled(body.local_decls.len());
129

0 commit comments

Comments
 (0)