Skip to content

Commit 731a3e6

Browse files
committed
tidy
1 parent 31d78f2 commit 731a3e6

File tree

1 file changed

+4
-1
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+4
-1
lines changed

compiler/rustc_mir_transform/src/gvn.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,10 @@ impl<'tcx> VnState<'_, 'tcx> {
17121712
Some(ConstOperand { span: DUMMY_SP, user_ty: None, const_ })
17131713
}
17141714

1715-
#[instrument(level="trace", skip(self), ret)]
1715+
/// Construct a place which holds the same value as `index` and for which all locals strictly
1716+
/// dominate `loc`. If you used this place, add its base local to `reused_locals` to remove
1717+
/// storage statements.
1718+
#[instrument(level = "trace", skip(self), ret)]
17161719
fn try_as_place(&mut self, mut index: VnIndex, loc: Location) -> Option<Place<'tcx>> {
17171720
let mut projection = SmallVec::<[PlaceElem<'tcx>; 1]>::new();
17181721
loop {

0 commit comments

Comments
 (0)