about summary refs log tree commit diff
path: root/library/alloc/src/raw_vec/mod.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-06 12:46:33 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-07 19:11:13 +0000
commitae5687e4b0a375d3307856fb81810f6cc9019be5 (patch)
tree1f1d031dc0e28d7af3cea4663731f436a57825e3 /library/alloc/src/raw_vec/mod.rs
parent701bedc323b0314ef6f084ba98ed18327faa36bc (diff)
downloadrust-ae5687e4b0a375d3307856fb81810f6cc9019be5.tar.gz
rust-ae5687e4b0a375d3307856fb81810f6cc9019be5.zip
Fully test the alloc crate through alloctests
For the tests that make use of internal implementation details, we
include the module to test using #[path] in alloctests now.
Diffstat (limited to 'library/alloc/src/raw_vec/mod.rs')
-rw-r--r--library/alloc/src/raw_vec/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/raw_vec/mod.rs b/library/alloc/src/raw_vec/mod.rs
index 70f32fbaab4..f1f5ffefb9b 100644
--- a/library/alloc/src/raw_vec/mod.rs
+++ b/library/alloc/src/raw_vec/mod.rs
@@ -1,4 +1,5 @@
 #![unstable(feature = "raw_vec_internals", reason = "unstable const warnings", issue = "none")]
+#![cfg_attr(test, allow(dead_code))]
 
 use core::marker::PhantomData;
 use core::mem::{ManuallyDrop, MaybeUninit, SizedTypeProperties};