Skip to content

Remove some wasm/emscripten ignores #115231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tests/codegen/tuple-layout-opt.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// ignore-emscripten
// compile-flags: -C no-prepopulate-passes -Copt-level=0

// Test that tuples get optimized layout, in particular with a ZST in the last field (#63244)
Expand Down
2 changes: 0 additions & 2 deletions tests/mir-opt/const_prop/boxes.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// unit-test: ConstProp
// compile-flags: -O
// ignore-emscripten compiled with panic=abort by default
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// ignore-wasm64

#![feature(rustc_attrs, stmt_expr_attributes)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// MIR for `outer` after PreCodegen

fn outer(_1: u8) -> u8 {
debug v => _1; // in scope 0 at $DIR/spans.rs:10:14: 10:15
let mut _0: u8; // return place in scope 0 at $DIR/spans.rs:10:24: 10:26
let mut _2: &u8; // in scope 0 at $DIR/spans.rs:11:11: 11:13
debug v => _1; // in scope 0 at $DIR/spans.rs:9:14: 9:15
let mut _0: u8; // return place in scope 0 at $DIR/spans.rs:9:24: 9:26
let mut _2: &u8; // in scope 0 at $DIR/spans.rs:10:11: 10:13

bb0: {
StorageLive(_2); // scope 0 at $DIR/spans.rs:11:11: 11:13
_2 = &_1; // scope 0 at $DIR/spans.rs:11:11: 11:13
_0 = inner(move _2) -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/spans.rs:11:5: 11:14
StorageLive(_2); // scope 0 at $DIR/spans.rs:10:11: 10:13
_2 = &_1; // scope 0 at $DIR/spans.rs:10:11: 10:13
_0 = inner(move _2) -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/spans.rs:10:5: 10:14
// mir::Constant
// + span: $DIR/spans.rs:11:5: 11:10
// + span: $DIR/spans.rs:10:5: 10:10
// + literal: Const { ty: for<'a> fn(&'a u8) -> u8 {inner}, val: Value(<ZST>) }
}

bb1: {
StorageDead(_2); // scope 0 at $DIR/spans.rs:11:13: 11:14
return; // scope 0 at $DIR/spans.rs:12:2: 12:2
StorageDead(_2); // scope 0 at $DIR/spans.rs:10:13: 10:14
return; // scope 0 at $DIR/spans.rs:11:2: 11:2
}
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// MIR for `outer` after PreCodegen

fn outer(_1: u8) -> u8 {
debug v => _1; // in scope 0 at $DIR/spans.rs:10:14: 10:15
let mut _0: u8; // return place in scope 0 at $DIR/spans.rs:10:24: 10:26
let mut _2: &u8; // in scope 0 at $DIR/spans.rs:11:11: 11:13
debug v => _1; // in scope 0 at $DIR/spans.rs:9:14: 9:15
let mut _0: u8; // return place in scope 0 at $DIR/spans.rs:9:24: 9:26
let mut _2: &u8; // in scope 0 at $DIR/spans.rs:10:11: 10:13

bb0: {
StorageLive(_2); // scope 0 at $DIR/spans.rs:11:11: 11:13
_2 = &_1; // scope 0 at $DIR/spans.rs:11:11: 11:13
_0 = inner(move _2) -> [return: bb1, unwind continue]; // scope 0 at $DIR/spans.rs:11:5: 11:14
StorageLive(_2); // scope 0 at $DIR/spans.rs:10:11: 10:13
_2 = &_1; // scope 0 at $DIR/spans.rs:10:11: 10:13
_0 = inner(move _2) -> [return: bb1, unwind continue]; // scope 0 at $DIR/spans.rs:10:5: 10:14
// mir::Constant
// + span: $DIR/spans.rs:11:5: 11:10
// + span: $DIR/spans.rs:10:5: 10:10
// + literal: Const { ty: for<'a> fn(&'a u8) -> u8 {inner}, val: Value(<ZST>) }
}

bb1: {
StorageDead(_2); // scope 0 at $DIR/spans.rs:11:13: 11:14
return; // scope 0 at $DIR/spans.rs:12:2: 12:2
StorageDead(_2); // scope 0 at $DIR/spans.rs:10:13: 10:14
return; // scope 0 at $DIR/spans.rs:11:2: 11:2
}
}
1 change: 0 additions & 1 deletion tests/mir-opt/pre-codegen/spans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// compile-flags: -Zmir-include-spans
// ignore-wasm32

#![crate_type = "lib"]

Expand Down