Skip to content

Commit c256bd2

Browse files
committed
Remove redundant all in cfg
1 parent f8a2e49 commit c256bd2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/std/src/sys/common/alloc.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::ptr;
44

55
// The minimum alignment guaranteed by the architecture. This value is used to
66
// add fast paths for low alignment values.
7-
#[cfg(all(any(
7+
#[cfg(any(
88
target_arch = "x86",
99
target_arch = "arm",
1010
target_arch = "mips",
@@ -16,23 +16,23 @@ use crate::ptr;
1616
target_arch = "hexagon",
1717
all(target_arch = "riscv32", not(target_os = "espidf")),
1818
all(target_arch = "xtensa", not(target_os = "espidf")),
19-
)))]
19+
))]
2020
pub const MIN_ALIGN: usize = 8;
21-
#[cfg(all(any(
21+
#[cfg(any(
2222
target_arch = "x86_64",
2323
target_arch = "aarch64",
2424
target_arch = "mips64",
2525
target_arch = "s390x",
2626
target_arch = "sparc64",
2727
target_arch = "riscv64",
2828
target_arch = "wasm64",
29-
)))]
29+
))]
3030
pub const MIN_ALIGN: usize = 16;
3131
// The allocator on the esp-idf platform guarantees 4 byte alignment.
32-
#[cfg(all(any(
32+
#[cfg(any(
3333
all(target_arch = "riscv32", target_os = "espidf"),
3434
all(target_arch = "xtensa", target_os = "espidf"),
35-
)))]
35+
))]
3636
pub const MIN_ALIGN: usize = 4;
3737

3838
pub unsafe fn realloc_fallback(

0 commit comments

Comments
 (0)