File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustc_mir/transform/check_consts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -636,8 +636,6 @@ pub mod ops {
636
636
#[derive(Debug)]
637
637
pub struct FnCallIndirect;
638
638
impl NonConstOp for FnCallIndirect {
639
- const IS_SUPPORTED_IN_MIRI: bool = false;
640
-
641
639
fn emit_error(&self, item: &Item<'_, '_>, span: Span) {
642
640
let mut err = item.tcx.sess.struct_span_err(
643
641
span,
@@ -698,6 +696,8 @@ pub mod ops {
698
696
#[derive(Debug)]
699
697
pub struct HeapAllocation;
700
698
impl NonConstOp for HeapAllocation {
699
+ const IS_SUPPORTED_IN_MIRI: bool = false;
700
+
701
701
fn emit_error(&self, item: &Item<'_, '_>, span: Span) {
702
702
let mut err = struct_span_err!(item.tcx.sess, span, E0010,
703
703
"allocations are not allowed in {}s", item.mode);
You can’t perform that action at this time.
0 commit comments