From 61c2258aa0047124ad22b06d00a489644e78cbb1 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 20 Feb 2018 13:24:50 -0500 Subject: [PATCH] temporarily disable rust-lang/rust#46833 due to rust-lang/rust#48251 --- src/librustc_mir/build/mod.rs | 4 +++- src/test/run-pass/abort-on-c-abi.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/librustc_mir/build/mod.rs b/src/librustc_mir/build/mod.rs index 57059cd31a1bc..9778fdc8d51dd 100644 --- a/src/librustc_mir/build/mod.rs +++ b/src/librustc_mir/build/mod.rs @@ -372,7 +372,9 @@ fn should_abort_on_panic<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>, // unwind anyway. Don't stop them. if tcx.has_attr(tcx.hir.local_def_id(fn_id), "unwind") { return false; } - return true; + // FIXME(rust-lang/rust#48251) -- Had to disable abort-on-panic + // for backwardsa compatibility reasons. + false } /////////////////////////////////////////////////////////////////////////// diff --git a/src/test/run-pass/abort-on-c-abi.rs b/src/test/run-pass/abort-on-c-abi.rs index 17661c0b12097..bf2abf6fcc4cd 100644 --- a/src/test/run-pass/abort-on-c-abi.rs +++ b/src/test/run-pass/abort-on-c-abi.rs @@ -13,6 +13,7 @@ // ignore-cloudabi no env and process // ignore-emscripten no processes +// ignore-test FIXME rust-lang/rust#48251 -- temporarily disabled use std::{env, panic}; use std::io::prelude::*;