rust/src/librustc_allocator
Alex Crichton 7c58ab671f 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
2018-08-07 08:42:38 -07:00
..
Cargo.toml Prohibit global_allocator in submodules for now 2018-06-24 16:15:13 -05:00
expand.rs rustc: Tweak visibility of some lang items 2018-08-07 08:42:38 -07:00
lib.rs Deny bare_trait_objects globally 2018-07-25 10:25:29 +09:00