move __rg_oom to the libos to avoid duplicated symbols

This commit is contained in:
Stefan Lankes 2020-10-13 12:06:48 +02:00
parent 1741e5b8f5
commit bc6b2ac449
No known key found for this signature in database
GPG Key ID: 28578EBB789EF62B

View File

@ -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")]