Skip to content

Commit

Permalink
Remove extern on the pub fn rust_oom lang item in libstd, to matc…
Browse files Browse the repository at this point in the history
…h ABI of the declaration in liballoc
  • Loading branch information
SimonSapin committed Jul 8, 2018
1 parent 8101344 commit c37a4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn default_alloc_error_hook(layout: Layout) {
#[cfg_attr(stage0, lang = "oom")]
#[cfg_attr(not(stage0), alloc_error_handler)]
#[unstable(feature = "alloc_internals", issue = "0")]
pub extern fn rust_oom(layout: Layout) -> ! {
pub fn rust_oom(layout: Layout) -> ! {
let hook = HOOK.load(Ordering::SeqCst);
let hook: fn(Layout) = if hook.is_null() {
default_alloc_error_hook
Expand Down

0 comments on commit c37a4a0

Please sign in to comment.