]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #92316 - petrochenkov:extmangle, r=wesleywiser
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 19 Jan 2022 18:19:45 +0000 (19:19 +0100)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 18:19:45 +0000 (19:19 +0100)
commit715cda2e81c769277e63c08a3a9966f8cdb6b3c5
treef100eafb4fc28a36e6bb316a767bb5f96037b3af
parent5e57faa78aa7661c6000204591558f6665f11abc
parent333a5cc3691a96aab461ebcbc6064ee79356f1ae
Rollup merge of #92316 - petrochenkov:extmangle, r=wesleywiser

mangling_v0: Skip extern blocks during mangling

There's no need to include the dummy `Nt` into the symbol name, items in extern blocks belong to their parent modules for all purposes except for inheriting the ABI and attributes.

Follow up to https://github.com/rust-lang/rust/pull/92032

(There's also a drive-by fix to the `rust-demangler` tool's tests, which don't run on CI, I initially attempted using them for testing this PR.)
compiler/rustc_symbol_mangling/src/v0.rs