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::*;