diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2024-03-06 12:44:54 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2024-03-11 09:36:35 -0700 |
| commit | cf6d6050f7d1ea62c9aae54ddd345106b6e31382 (patch) | |
| tree | 707bf98a0678f0085da773ba64234052c827d3b2 /tests/ui/extern | |
| parent | 4a5aa1a104a9a85cc765af863f64297f9e7e73f6 (diff) | |
| download | rust-cf6d6050f7d1ea62c9aae54ddd345106b6e31382.tar.gz rust-cf6d6050f7d1ea62c9aae54ddd345106b6e31382.zip | |
Update test directives for `wasm32-wasip1`
* The WASI targets deal with the `main` symbol a bit differently than native so some `codegen` and `assembly` tests have been ignored. * All `ignore-emscripten` directives have been updated to `ignore-wasm32` to be more clear that all wasm targets are ignored and it's not just Emscripten. * Most `ignore-wasm32-bare` directives are now gone. * Some ignore directives for wasm were switched to `needs-unwind` instead. * Many `ignore-wasm32*` directives are removed as the tests work with WASI as opposed to `wasm32-unknown-unknown`.
Diffstat (limited to 'tests/ui/extern')
| -rw-r--r-- | tests/ui/extern/extern-const.fixed | 1 | ||||
| -rw-r--r-- | tests/ui/extern/extern-const.rs | 1 | ||||
| -rw-r--r-- | tests/ui/extern/extern-const.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/extern/issue-1251.rs | 1 |
4 files changed, 1 insertions, 4 deletions
diff --git a/tests/ui/extern/extern-const.fixed b/tests/ui/extern/extern-const.fixed index b338a56dd78..9f695eaafd0 100644 --- a/tests/ui/extern/extern-const.fixed +++ b/tests/ui/extern/extern-const.fixed @@ -5,7 +5,6 @@ // compile. To sidestep this by using one that *is* defined. //@ run-rustfix -//@ ignore-wasm32-bare no external library to link to. //@ compile-flags: -g #![feature(rustc_private)] extern crate libc; diff --git a/tests/ui/extern/extern-const.rs b/tests/ui/extern/extern-const.rs index 1c552950afb..e412dff8895 100644 --- a/tests/ui/extern/extern-const.rs +++ b/tests/ui/extern/extern-const.rs @@ -5,7 +5,6 @@ // compile. To sidestep this by using one that *is* defined. //@ run-rustfix -//@ ignore-wasm32-bare no external library to link to. //@ compile-flags: -g #![feature(rustc_private)] extern crate libc; diff --git a/tests/ui/extern/extern-const.stderr b/tests/ui/extern/extern-const.stderr index 4c2c3d6e0a8..07485cf9994 100644 --- a/tests/ui/extern/extern-const.stderr +++ b/tests/ui/extern/extern-const.stderr @@ -1,5 +1,5 @@ error: extern items cannot be `const` - --> $DIR/extern-const.rs:15:11 + --> $DIR/extern-const.rs:14:11 | LL | const rust_dbg_static_mut: libc::c_int; | ------^^^^^^^^^^^^^^^^^^^ diff --git a/tests/ui/extern/issue-1251.rs b/tests/ui/extern/issue-1251.rs index bf701a41f94..da2b8be7bc1 100644 --- a/tests/ui/extern/issue-1251.rs +++ b/tests/ui/extern/issue-1251.rs @@ -2,7 +2,6 @@ #![allow(unused_attributes)] #![allow(dead_code)] //@ pretty-expanded FIXME #23616 -//@ ignore-wasm32-bare no libc to test ffi with #![feature(rustc_private)] mod rustrt { |
