Skip to content

Commit 610794e

Browse files
committed
Also gate emscripten_wasm_em cfg on is_nightly_build
1 parent 921993e commit 610794e

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_session/src/config

1 file changed

+2
-1
lines changed

compiler/rustc_session/src/config/cfg.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ pub(crate) fn default_configuration(sess: &Session) -> Cfg {
296296
ins_none!(sym::ub_checks);
297297
}
298298

299-
if sess.opts.unstable_opts.emscripten_wasm_eh {
299+
// Nightly-only implementation detail for the `panic_unwind` and `unwind` crates.
300+
if sess.is_nightly_build() && sess.opts.unstable_opts.emscripten_wasm_eh {
300301
ins_none!(sym::emscripten_wasm_eh);
301302
}
302303
ret

0 commit comments

Comments
 (0)