Skip to content

Commit 8c26c59

Browse files
committed
Failure resistent trait implementing
1 parent 765fa81 commit 8c26c59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_mir/interpret/snapshot.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ impl<'a, 'tcx, Ctx> Snapshot<'a, Ctx> for &'a LocalState<'tcx>
362362
type Item = LocalValue<(), AllocIdSnapshot<'a>>;
363363

364364
fn snapshot(&self, ctx: &'a Ctx) -> Self::Item {
365-
self.state.snapshot(ctx)
365+
let LocalState { state, layout: _ } = self;
366+
state.snapshot(ctx)
366367
}
367368
}
368369

0 commit comments

Comments
 (0)