about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-10-24 22:39:44 +0200
committerGitHub <noreply@github.com>2020-10-24 22:39:44 +0200
commite34263d86a41dc896d025dc767c8d7c77afe219b (patch)
tree598a3f38d08aa23d8d3d101d8ca1695318f1f516 /library/alloc/src
parenta547055184c55961b3e7d89b031d0e7b07de0a36 (diff)
parentbf268fe928eae8d85a868ccdbcc086ea033ae51c (diff)
downloadrust-e34263d86a41dc896d025dc767c8d7c77afe219b.tar.gz
rust-e34263d86a41dc896d025dc767c8d7c77afe219b.zip
Rollup merge of #77610 - hermitcore:dtors, r=m-ou-se
revise Hermit's mutex interface to support the behaviour of StaticMutex

rust-lang/rust#77147 simplifies things by splitting this Mutex type into two types matching the two use cases: StaticMutex and MovableMutex. To support the new behavior of StaticMutex, we move part of the mutex implementation into libstd.

The interface to the OS changed. Consequently, I removed a few functions, which aren't longer needed.
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/alloc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs
index 109c3a0e683..dd7dcfbc4aa 100644
--- a/library/alloc/src/alloc.rs
+++ b/library/alloc/src/alloc.rs
@@ -372,7 +372,7 @@ pub fn handle_alloc_error(layout: Layout) -> ! {
     unsafe { oom_impl(layout) }
 }
 
-#[cfg(not(any(test, bootstrap)))]
+#[cfg(not(any(target_os = "hermit", test, bootstrap)))]
 #[doc(hidden)]
 #[allow(unused_attributes)]
 #[unstable(feature = "alloc_internals", issue = "none")]