]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #52993 - alexcrichton:fix-some-vis, r=michaelwoerister
authorbors <bors@rust-lang.org>
Wed, 8 Aug 2018 01:24:15 +0000 (01:24 +0000)
committerbors <bors@rust-lang.org>
Wed, 8 Aug 2018 01:24:15 +0000 (01:24 +0000)
rustc: Tweak visibility of some lang items

This commit tweaks the linker-level visibility of some lang items that rustc
uses and defines. Notably this means that `#[panic_implementation]` and
`#[alloc_error_handler]` functions are never marked as `internal`. It's up to
the linker to eliminate these, not rustc.

Additionally `#[global_allocator]` generated symbols are no longer forced to
`Default` visibility (fully exported), but rather they're relaxed to `Hidden`
visibility). This symbols are *not* needed across DLL boundaries, only as a
local implementation detail of the compiler-injected allocator symbols, so
`Hidden` should suffice.

Closes #51342
Closes #52795


Trivial merge