diff options
| author | pierwill <pierwill@users.noreply.github.com> | 2022-07-14 15:30:36 -0500 |
|---|---|---|
| committer | pierwill <pierwill@users.noreply.github.com> | 2022-07-14 15:30:36 -0500 |
| commit | 0d45977aa552d0d1c8ec89ac470206f8a38a1e1b (patch) | |
| tree | 8f364ceea360b04ffe5da44bd79ab9c539fd100d | |
| parent | 74621c764e737a1a430bac088b5507a8854ec460 (diff) | |
| download | rust-0d45977aa552d0d1c8ec89ac470206f8a38a1e1b.tar.gz rust-0d45977aa552d0d1c8ec89ac470206f8a38a1e1b.zip | |
Remove FIXME from MIR `always_storage_live_locals`
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/storage.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_mir_dataflow/src/storage.rs b/compiler/rustc_mir_dataflow/src/storage.rs index 566c9d2d505..c909648ea01 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<Local> { let mut always_live_locals = BitSet::new_filled(body.local_decls.len()); |
