mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
move __rg_oom to the libos to avoid duplicated symbols
This commit is contained in:
parent
1741e5b8f5
commit
bc6b2ac449
@ -372,7 +372,7 @@ pub fn handle_alloc_error(layout: Layout) -> ! {
|
|||||||
unsafe { oom_impl(layout) }
|
unsafe { oom_impl(layout) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(any(test, bootstrap)))]
|
#[cfg(not(any(target_os="hermit", test, bootstrap)))]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[allow(unused_attributes)]
|
#[allow(unused_attributes)]
|
||||||
#[unstable(feature = "alloc_internals", issue = "none")]
|
#[unstable(feature = "alloc_internals", issue = "none")]
|
||||||
|
Loading…
Reference in New Issue
Block a user