Skip to content

Commit

Permalink
Rollup merge of rust-lang#101435 - JakobDegen:bitwidth-tests, r=wesle…
Browse files Browse the repository at this point in the history
…ywiser

Remove unnecessary `EMIT_MIR_FOR_EACH_BITWIDTH`

This commit removes the annotation only for those tests where the 32 bit and 64 bit files were exactly identical. I didn't touch anything in the `mir-opt/const` directory, since having this annotation there seems more principled, even if it doesn't make a difference.

This also removes four additional files related to the `separate_const_switch.rs` test. The associated annotations were removed in rust-lang#100827 , but I forgot to remove the files as well. (rust-lang#97564 is the issue tracking an automated check here)

r? ```@wesleywiser```
  • Loading branch information
matthiaskrgr authored Sep 7, 2022
2 parents d1ebba4 + 46130a1 commit 1d65e96
Show file tree
Hide file tree
Showing 57 changed files with 12 additions and 1,152 deletions.
2 changes: 1 addition & 1 deletion src/test/mir-opt/array-index-is-temporary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ unsafe fn foo(z: *mut usize) -> u32 {
99
}

// EMIT_MIR_FOR_EACH_BIT_WIDTH

// EMIT_MIR array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir
fn main() {
let mut x = [42, 43, 44];
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/test/mir-opt/inline/inline-into-box-place.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ignore-endian-big
// ignore-wasm32-bare compiled with panic=abort by default
// compile-flags: -Z mir-opt-level=4
// EMIT_MIR_FOR_EACH_BIT_WIDTH

#![feature(box_syntax)]
// EMIT_MIR inline_into_box_place.main.Inline.diff
fn main() {
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/test/mir-opt/issue-41697.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait Foo {
fn get(&self) -> [u8; 2];
}

// EMIT_MIR_FOR_EACH_BIT_WIDTH

// EMIT_MIR issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir
impl Foo for [u8; 1+1] {
fn get(&self) -> [u8; 2] {
Expand Down
4 changes: 2 additions & 2 deletions src/test/mir-opt/issue-72181.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ union Foo {
b: Never
}

// EMIT_MIR_FOR_EACH_BIT_WIDTH

// EMIT_MIR issue_72181.foo.mir_map.0.mir
fn foo(xs: [(Never, u32); 1]) -> u32 { xs[0].1 }

// EMIT_MIR issue_72181.bar.mir_map.0.mir
fn bar([(_, x)]: [(Never, u32); 1]) -> u32 { x }

// EMIT_MIR_FOR_EACH_BIT_WIDTH

// EMIT_MIR issue_72181.main.mir_map.0.mir
fn main() {
let _ = mem::size_of::<Foo>();
Expand Down
2 changes: 1 addition & 1 deletion src/test/mir-opt/issue-73223.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ fn main() {
assert_eq!(split, 1);
}

// EMIT_MIR_FOR_EACH_BIT_WIDTH

// EMIT_MIR issue_73223.main.SimplifyArmIdentity.diff

This file was deleted.

17 changes: 0 additions & 17 deletions src/test/mir-opt/issue_72181.bar.mir_map.0.64bit.mir

This file was deleted.

27 changes: 0 additions & 27 deletions src/test/mir-opt/issue_72181.foo.mir_map.0.64bit.mir

This file was deleted.

62 changes: 0 additions & 62 deletions src/test/mir-opt/issue_72181.main.mir_map.0.64bit.mir

This file was deleted.

Loading

0 comments on commit 1d65e96

Please sign in to comment.