From 0d45977aa552d0d1c8ec89ac470206f8a38a1e1b Mon Sep 17 00:00:00 2001 From: pierwill Date: Thu, 14 Jul 2022 15:30:36 -0500 Subject: [PATCH] Remove FIXME from MIR `always_storage_live_locals` --- compiler/rustc_mir_dataflow/src/storage.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler/rustc_mir_dataflow/src/storage.rs b/compiler/rustc_mir_dataflow/src/storage.rs index 566c9d2d5054e..c909648ea017e 100644 --- a/compiler/rustc_mir_dataflow/src/storage.rs +++ b/compiler/rustc_mir_dataflow/src/storage.rs @@ -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 { let mut always_live_locals = BitSet::new_filled(body.local_decls.len());