From 05a4fcac273547f596d6cc2dcccd72312687546d 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..e20bc0020daf4 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 backwards 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 63fd934b0d0f4..40c4ec20151bd 100644 --- a/src/test/run-pass/abort-on-c-abi.rs +++ b/src/test/run-pass/abort-on-c-abi.rs @@ -12,6 +12,7 @@ // we never unwind through them. // ignore-emscripten no processes +// ignore-test FIXME rust-lang/rust#48251 -- temporarily disabled use std::{env, panic}; use std::io::prelude::*;