Skip to content

Commit a2ac0ff

Browse files
Allow "missing_docs" for some alloc items in test mode
1 parent aa7e470 commit a2ac0ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/alloc/src/slice.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@ pub use core::slice::{SplitInclusive, SplitInclusiveMut};
7777
// HACK(japaric) needed for the implementation of `vec!` macro during testing
7878
// N.B., see the `hack` module in this file for more details.
7979
#[cfg(test)]
80+
#[allow(missing_docs)]
8081
pub use hack::into_vec;
8182

8283
// HACK(japaric) needed for the implementation of `Vec::clone` during testing
8384
// N.B., see the `hack` module in this file for more details.
8485
#[cfg(test)]
86+
#[allow(missing_docs)]
8587
pub use hack::to_vec;
8688

8789
// HACK(japaric): With cfg(test) `impl [T]` is not available, these three

0 commit comments

Comments
 (0)