diff options
| author | Ralf Jung <post@ralfj.de> | 2020-08-12 10:18:21 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-08-12 11:14:49 +0200 |
| commit | fd32fe9bb9cc97a5a3d97ab0f6ab673d8c81fa88 (patch) | |
| tree | 58f97b7184903551d43407b9f56658d6fb44027c /src/librustc_mir/transform | |
| parent | a505e773a54bd40840e80e2038b0f634aed02c77 (diff) | |
| download | rust-fd32fe9bb9cc97a5a3d97ab0f6ab673d8c81fa88.tar.gz rust-fd32fe9bb9cc97a5a3d97ab0f6ab673d8c81fa88.zip | |
fix span of stack size error
Diffstat (limited to 'src/librustc_mir/transform')
| -rw-r--r-- | src/librustc_mir/transform/const_prop.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustc_mir/transform/const_prop.rs b/src/librustc_mir/transform/const_prop.rs index 6cf296f2a3f..3b39d5f66b7 100644 --- a/src/librustc_mir/transform/const_prop.rs +++ b/src/librustc_mir/transform/const_prop.rs @@ -282,6 +282,14 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx> } #[inline(always)] + fn init_frame_extra( + _ecx: &mut InterpCx<'mir, 'tcx, Self>, + frame: Frame<'mir, 'tcx>, + ) -> InterpResult<'tcx, Frame<'mir, 'tcx>> { + Ok(frame) + } + + #[inline(always)] fn stack( ecx: &'a InterpCx<'mir, 'tcx, Self>, ) -> &'a [Frame<'mir, 'tcx, Self::PointerTag, Self::FrameExtra>] { |
