Skip to content

Commit 79aa952

Browse files
mkroeningmbrubeck
authored andcommitted
fix: don't special-case doc for feature = "const_generics"
Signed-off-by: Martin Kröning <[email protected]>
1 parent 6fcb81f commit 79aa952

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,7 +2386,7 @@ impl<T, const N: usize> SmallVec<[T; N]> {
23862386
}
23872387
}
23882388

2389-
#[cfg(all(feature = "const_generics", not(doc)))]
2389+
#[cfg(feature = "const_generics")]
23902390
#[cfg_attr(docsrs, doc(cfg(feature = "const_generics")))]
23912391
unsafe impl<T, const N: usize> Array for [T; N] {
23922392
type Item = T;
@@ -2396,7 +2396,7 @@ unsafe impl<T, const N: usize> Array for [T; N] {
23962396
}
23972397
}
23982398

2399-
#[cfg(any(not(feature = "const_generics"), doc))]
2399+
#[cfg(not(feature = "const_generics"))]
24002400
macro_rules! impl_array(
24012401
($($size:expr),+) => {
24022402
$(
@@ -2409,7 +2409,7 @@ macro_rules! impl_array(
24092409
}
24102410
);
24112411

2412-
#[cfg(any(not(feature = "const_generics"), doc))]
2412+
#[cfg(not(feature = "const_generics"))]
24132413
impl_array!(
24142414
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
24152415
26, 27, 28, 29, 30, 31, 32, 36, 0x40, 0x60, 0x80, 0x100, 0x200, 0x400, 0x600, 0x800, 0x1000,

0 commit comments

Comments
 (0)