rust/tests/ui/intrinsics
Hood Chatham 1d6643c4f6 Fix most ui tests on emscripten target
To fix the linker errors, we need to set the output extension to `.js` instead
of `.wasm`. Setting the output to a `.wasm` file puts Emscripten into standalone
mode which is effectively a distinct target. We need to set the runner to be
`node` as well.

This fixes most of the ui tests. I fixed a few more tests with simple problems:
- `intrinsics/intrinsic-alignment.rs` and `structs-enums/rec-align-u64.rs` --
Two `#[cfg]` macros match for Emscripten so we got a duplicate definition of
`mod m`.
- `issues/issue-12699.rs` -- Seems to hang so I disabled it
- `process/process-sigpipe.rs` -- Not expected to work on Emscripten so I
disabled it
2024-10-15 14:25:55 +02:00
..
auxiliary
always-extern.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
always-extern.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
always-gets-overridden.rs Add a scheme for moving away from extern "rust-intrinsic" entirely 2024-03-04 16:13:50 +00:00
bad-intrinsic-monomorphization.rs Fixup 2 ui tests using changed intrinsics 2024-04-16 12:39:53 +00:00
bad-intrinsic-monomorphization.stderr
const-eval-select-backtrace-std.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-eval-select-backtrace-std.run.stderr
const-eval-select-backtrace.rs const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
const-eval-select-backtrace.run.stderr const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
const-eval-select-bad.rs
const-eval-select-bad.stderr Use parenthetical notation for Fn traits 2024-05-29 22:26:54 +00:00
const-eval-select-stability.rs const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
const-eval-select-stability.stderr
const-eval-select-x86_64.rs const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
const-eval-select.rs const_eval_select: make it safe but be careful with what we expose on stable for now 2024-03-02 16:09:31 +01:00
feature-gate-safe-intrinsic.rs
feature-gate-safe-intrinsic.stderr Bless tests 2024-01-13 12:46:58 -05:00
incorrect-read_via_copy-defn.rs Don't even parse an intrinsic unless the feature gate is enabled 2024-04-07 13:30:12 -04:00
incorrect-read_via_copy-defn.stderr Don't even parse an intrinsic unless the feature gate is enabled 2024-04-07 13:30:12 -04:00
incorrect-transmute.rs Don't even parse an intrinsic unless the feature gate is enabled 2024-04-07 13:30:12 -04:00
incorrect-transmute.stderr Don't even parse an intrinsic unless the feature gate is enabled 2024-04-07 13:30:12 -04:00
intrinsic-alignment.rs Fix most ui tests on emscripten target 2024-10-15 14:25:55 +02:00
intrinsic-assume.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
intrinsic-atomics-cc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
intrinsic-atomics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
intrinsic-fmuladd.rs intrinsics.fmuladdf{16,32,64,128}: expose llvm.fmuladd.* semantics 2024-10-11 15:32:56 -06:00
intrinsic-nearby.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
intrinsic-raw_eq-const-bad.rs interpret: add missing alignment check in raw_eq 2024-08-27 19:29:52 +02:00
intrinsic-raw_eq-const-bad.stderr interpret: add missing alignment check in raw_eq 2024-08-27 19:29:52 +02:00
intrinsic-raw_eq-const.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
intrinsic-unreachable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
intrinsic-volatile.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
intrinsics-integer.rs Fixup 2 ui tests using changed intrinsics 2024-04-16 12:39:53 +00:00
intrinsics-math.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-28575.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
issue-28575.stderr Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
issue-84297-reifying-copy.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
non-integer-atomic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
non-integer-atomic.stderr
not-overridden.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
not-overridden.stderr Add a scheme for moving away from extern "rust-intrinsic" entirely 2024-03-04 16:13:50 +00:00
panic-uninitialized-zeroed.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
reify-intrinsic.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
reify-intrinsic.stderr document & impl the transmutation modeled by BikeshedIntrinsicFrom 2024-08-23 14:37:36 +00:00
safe-intrinsic-mismatch.effects.stderr Use FnSig instead of raw FnDecl for ForeignItemKind::Fn 2024-08-16 14:10:06 -04:00
safe-intrinsic-mismatch.rs Fix intrinsic const parameter counting with effects 2024-07-07 11:30:03 +00:00
safe-intrinsic-mismatch.stock.stderr Use FnSig instead of raw FnDecl for ForeignItemKind::Fn 2024-08-16 14:10:06 -04:00
unchecked_math_unsafe.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
unchecked_math_unsafe.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
unchecked_math_unstable.rs
unchecked_math_unstable.stderr Bless tests 2024-01-13 12:46:58 -05:00