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.
This commit is contained in:
parent
c145692254
commit
bbf4b6699e
5 changed files with 42 additions and 12 deletions
|
@ -245,7 +245,7 @@ fn compute_symbol_name<'tcx>(
|
|||
// 2. we favor `instantiating_crate` where possible (i.e. when `Some`)
|
||||
let mangling_version_crate = instantiating_crate.unwrap_or(def_id.krate);
|
||||
let mangling_version = if mangling_version_crate == LOCAL_CRATE {
|
||||
tcx.sess.opts.debugging_opts.get_symbol_mangling_version()
|
||||
tcx.sess.opts.get_symbol_mangling_version()
|
||||
} else {
|
||||
tcx.symbol_mangling_version(mangling_version_crate)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue