]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_dataflow/src/storage.rs
Rollup merge of #101635 - jyn514:queries-new-derived, r=cjgillot
[rust.git] / compiler / rustc_mir_dataflow / src / storage.rs
index c909648ea017ebbb49b4f06ccf5cb0c9fe286bfe..e5a0e1d312eaede55fa60815ef6efc16df7cfeec 100644 (file)
@@ -7,7 +7,7 @@
 pub fn always_storage_live_locals(body: &mir::Body<'_>) -> BitSet<Local> {
     let mut always_live_locals = BitSet::new_filled(body.local_decls.len());
 
-    for block in body.basic_blocks() {
+    for block in &*body.basic_blocks {
         for statement in &block.statements {
             use mir::StatementKind::{StorageDead, StorageLive};
             if let StorageLive(l) | StorageDead(l) = statement.kind {