about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-13 15:38:07 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-07 19:11:13 +0000
commit22d0440993d6eab6e9faf35f729e2d52ba6d72a6 (patch)
treeac7411ad2f84a4ca5d67dfe17883c3a849afe3b2 /library/alloc
parentae5687e4b0a375d3307856fb81810f6cc9019be5 (diff)
downloadrust-22d0440993d6eab6e9faf35f729e2d52ba6d72a6.tar.gz
rust-22d0440993d6eab6e9faf35f729e2d52ba6d72a6.zip
Add comments
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/collections/mod.rs3
-rw-r--r--library/alloc/src/raw_vec/mod.rs3
2 files changed, 6 insertions, 0 deletions
diff --git a/library/alloc/src/collections/mod.rs b/library/alloc/src/collections/mod.rs
index 1414f797e8a..fac4d1a65ab 100644
--- a/library/alloc/src/collections/mod.rs
+++ b/library/alloc/src/collections/mod.rs
@@ -1,5 +1,8 @@
 //! Collection types.
 
+// Note: This module is also included in the alloctests crate using #[path] to
+// run the tests. See the comment there for an explanation why this is the case.
+
 #![stable(feature = "rust1", since = "1.0.0")]
 
 #[cfg(not(no_global_oom_handling))]
diff --git a/library/alloc/src/raw_vec/mod.rs b/library/alloc/src/raw_vec/mod.rs
index f1f5ffefb9b..99ebc5c4bfc 100644
--- a/library/alloc/src/raw_vec/mod.rs
+++ b/library/alloc/src/raw_vec/mod.rs
@@ -1,6 +1,9 @@
 #![unstable(feature = "raw_vec_internals", reason = "unstable const warnings", issue = "none")]
 #![cfg_attr(test, allow(dead_code))]
 
+// Note: This module is also included in the alloctests crate using #[path] to
+// run the tests. See the comment there for an explanation why this is the case.
+
 use core::marker::PhantomData;
 use core::mem::{ManuallyDrop, MaybeUninit, SizedTypeProperties};
 use core::ptr::{self, NonNull, Unique};