summary refs log tree commit diff
path: root/compiler/rustc_metadata/src
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2021-10-21 14:02:59 +0200
committerJosh Triplett <josh@joshtriplett.org>2022-01-01 15:51:02 -0800
commitbbf4b6699e41dd5a7c6d9afe4bc8d6af50afc768 (patch)
tree6c8e8ad8c35ab58865f4b3d9e3ed58ec4279cbc2 /compiler/rustc_metadata/src
parentc145692254e86974941f2c92c643a23df0f13e82 (diff)
downloadrust-bbf4b6699e41dd5a7c6d9afe4bc8d6af50afc768.tar.gz
rust-bbf4b6699e41dd5a7c6d9afe4bc8d6af50afc768.zip
Stabilize -Z symbol-mangling-version as -C symbol-mangling-version
This allows selecting `v0` symbol-mangling without an unstable option.
Selecting `legacy` still requires -Z unstable-options.

Continue supporting -Z symbol-mangling-version for compatibility for
now, but show a deprecation warning for it.
Diffstat (limited to 'compiler/rustc_metadata/src')
-rw-r--r--compiler/rustc_metadata/src/rmeta/encoder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs
index e2aaa88f548..3942846e79d 100644
--- a/compiler/rustc_metadata/src/rmeta/encoder.rs
+++ b/compiler/rustc_metadata/src/rmeta/encoder.rs
@@ -721,7 +721,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
             no_builtins: tcx.sess.contains_name(&attrs, sym::no_builtins),
             panic_runtime: tcx.sess.contains_name(&attrs, sym::panic_runtime),
             profiler_runtime: tcx.sess.contains_name(&attrs, sym::profiler_runtime),
-            symbol_mangling_version: tcx.sess.opts.debugging_opts.get_symbol_mangling_version(),
+            symbol_mangling_version: tcx.sess.opts.get_symbol_mangling_version(),
 
             crate_deps,
             dylib_dependency_formats,