We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extern
pub fn rust_oom
1 parent 8101344 commit c37a4a0Copy full SHA for c37a4a0
src/libstd/alloc.rs
@@ -128,7 +128,7 @@ fn default_alloc_error_hook(layout: Layout) {
128
#[cfg_attr(stage0, lang = "oom")]
129
#[cfg_attr(not(stage0), alloc_error_handler)]
130
#[unstable(feature = "alloc_internals", issue = "0")]
131
-pub extern fn rust_oom(layout: Layout) -> ! {
+pub fn rust_oom(layout: Layout) -> ! {
132
let hook = HOOK.load(Ordering::SeqCst);
133
let hook: fn(Layout) = if hook.is_null() {
134
default_alloc_error_hook
0 commit comments