Skip to content

Commit 2ab3f76

Browse files
committed
Remove more redundant alls
1 parent c256bd2 commit 2ab3f76

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/rustc_codegen_gcc/example/alloc_system.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313

1414
// The minimum alignment guaranteed by the architecture. This value is used to
1515
// add fast paths for low alignment values.
16-
#[cfg(all(any(target_arch = "x86",
16+
#[cfg(any(target_arch = "x86",
1717
target_arch = "arm",
1818
target_arch = "mips",
1919
target_arch = "powerpc",
20-
target_arch = "powerpc64")))]
20+
target_arch = "powerpc64"))]
2121
const MIN_ALIGN: usize = 8;
22-
#[cfg(all(any(target_arch = "x86_64",
22+
#[cfg(any(target_arch = "x86_64",
2323
target_arch = "aarch64",
2424
target_arch = "mips64",
2525
target_arch = "s390x",
26-
target_arch = "sparc64")))]
26+
target_arch = "sparc64"))]
2727
const MIN_ALIGN: usize = 16;
2828

2929
pub struct System;

compiler/rustc_span/src/analyze_source_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn analyze_source_file(
4141
}
4242

4343
cfg_if::cfg_if! {
44-
if #[cfg(all(any(target_arch = "x86", target_arch = "x86_64")))] {
44+
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
4545
fn analyze_source_file_dispatch(src: &str,
4646
source_file_start_pos: BytePos,
4747
lines: &mut Vec<BytePos>,

0 commit comments

Comments
 (0)