We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
(&mut iter)
iter.by_ref()
1 parent fb0e585 commit 0d8a458Copy full SHA for 0d8a458
compiler/rustc_middle/src/mir/traversal.rs
@@ -237,7 +237,7 @@ pub fn reachable<'a, 'tcx>(
237
/// Returns a `BitSet` containing all basic blocks reachable from the `START_BLOCK`.
238
pub fn reachable_as_bitset(body: &Body<'_>) -> BitSet<BasicBlock> {
239
let mut iter = preorder(body);
240
- (&mut iter).for_each(drop);
+ iter.by_ref().for_each(drop);
241
iter.visited
242
}
243
0 commit comments