Skip to content

Commit

Permalink
Failure resistent trait implementing
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jan 30, 2019
1 parent 765fa81 commit 8c26c59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_mir/interpret/snapshot.rs
Expand Up @@ -362,7 +362,8 @@ impl<'a, 'tcx, Ctx> Snapshot<'a, Ctx> for &'a LocalState<'tcx>
type Item = LocalValue<(), AllocIdSnapshot<'a>>;

fn snapshot(&self, ctx: &'a Ctx) -> Self::Item {
self.state.snapshot(ctx)
let LocalState { state, layout: _ } = self;
state.snapshot(ctx)
}
}

Expand Down

0 comments on commit 8c26c59

Please sign in to comment.