about summary refs log tree commit diff
path: root/src/librustc_mir/transform
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-08-12 10:18:21 +0200
committerRalf Jung <post@ralfj.de>2020-08-12 11:14:49 +0200
commitfd32fe9bb9cc97a5a3d97ab0f6ab673d8c81fa88 (patch)
tree58f97b7184903551d43407b9f56658d6fb44027c /src/librustc_mir/transform
parenta505e773a54bd40840e80e2038b0f634aed02c77 (diff)
downloadrust-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.rs8
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>] {