Skip to content

Commit 450c929

Browse files
committed
fixup! mir-opt: Eliminate trivial unnecessary storage annotations
Add comments
1 parent ebc83dd commit 450c929

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_mir_transform/src/dead_store_elimination.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use crate::util::is_within_packed;
2929
///
3030
/// The `borrowed` set must be a `DenseBitSet` of all the locals that are ever borrowed in this
3131
/// body. It can be generated via the [`borrowed_locals`] function.
32+
/// Returns true if any instruction is eliminated.
3233
fn eliminate<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) -> bool {
3334
let borrowed_locals = borrowed_locals(body);
3435

0 commit comments

Comments
 (0)