Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6957db9

Browse files
committedMar 6, 2025
Remove #[cfg(not(test))] from core::slice impl blocks
1 parent 30f168e commit 6957db9

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed
 

‎library/core/src/slice/ascii.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use crate::fmt::{self, Write};
77
use crate::intrinsics::const_eval_select;
88
use crate::{ascii, iter, ops};
99

10-
#[cfg(not(test))]
1110
impl [u8] {
1211
/// Checks if all bytes in this slice are within the ASCII range.
1312
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]

‎library/core/src/slice/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ enum Direction {
9797
Back,
9898
}
9999

100-
#[cfg(not(test))]
101100
impl<T> [T] {
102101
/// Returns the number of elements in the slice.
103102
///
@@ -4845,7 +4844,6 @@ impl<T, const N: usize> [[T; N]] {
48454844
}
48464845
}
48474846

4848-
#[cfg(not(test))]
48494847
impl [f32] {
48504848
/// Sorts the slice of floats.
48514849
///
@@ -4874,7 +4872,6 @@ impl [f32] {
48744872
}
48754873
}
48764874

4877-
#[cfg(not(test))]
48784875
impl [f64] {
48794876
/// Sorts the slice of floats.
48804877
///

0 commit comments

Comments
 (0)
Failed to load comments.