about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-08 01:24:15 +0000
committerbors <bors@rust-lang.org>2018-08-08 01:24:15 +0000
commit26d7b64237c6daa66064c8583b7aecf534c2a9ae (patch)
tree1abd68a78dbab63a894988da5253c07e65ed10f2 /src/libsyntax
parent3f4f18f098183bf60820e4304433c4c4d9cceaaa (diff)
parent7c58ab671fb49200c0cbd1ad9218713a5c3afe0d (diff)
downloadrust-26d7b64237c6daa66064c8583b7aecf534c2a9ae.tar.gz
rust-26d7b64237c6daa66064c8583b7aecf534c2a9ae.zip
Auto merge of #52993 - alexcrichton:fix-some-vis, r=michaelwoerister
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
Diffstat (limited to 'src/libsyntax')
0 files changed, 0 insertions, 0 deletions