Skip to content

Commit c37a4a0

Browse files
committed
Remove extern on the pub fn rust_oom lang item in libstd, to match ABI of the declaration in liballoc
1 parent 8101344 commit c37a4a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/alloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fn default_alloc_error_hook(layout: Layout) {
128128
#[cfg_attr(stage0, lang = "oom")]
129129
#[cfg_attr(not(stage0), alloc_error_handler)]
130130
#[unstable(feature = "alloc_internals", issue = "0")]
131-
pub extern fn rust_oom(layout: Layout) -> ! {
131+
pub fn rust_oom(layout: Layout) -> ! {
132132
let hook = HOOK.load(Ordering::SeqCst);
133133
let hook: fn(Layout) = if hook.is_null() {
134134
default_alloc_error_hook

0 commit comments

Comments
 (0)