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 {
636636 #[ derive( Debug ) ]
637637 pub struct FnCallIndirect ;
638638 impl NonConstOp for FnCallIndirect {
639- const IS_SUPPORTED_IN_MIRI : bool = false ;
640-
641639 fn emit_error ( & self , item : & Item < ' _ , ' _ > , span : Span ) {
642640 let mut err = item. tcx . sess . struct_span_err (
643641 span,
@@ -698,6 +696,8 @@ pub mod ops {
698696 #[ derive( Debug ) ]
699697 pub struct HeapAllocation ;
700698 impl NonConstOp for HeapAllocation {
699+ const IS_SUPPORTED_IN_MIRI : bool = false ;
700+
701701 fn emit_error ( & self , item : & Item < ' _ , ' _ > , span : Span ) {
702702 let mut err = struct_span_err ! ( item. tcx. sess, span, E0010 ,
703703 "allocations are not allowed in {}s" , item. mode) ;
You can’t perform that action at this time.
0 commit comments