Skip to content

Fix a couple Emscripten tests - #136199

Merged
bors merged 3 commits into
rust-lang:masterfrom
purplesyringa:emscripten-tests
Jan 30, 2025
Merged

Fix a couple Emscripten tests#136199
bors merged 3 commits into
rust-lang:masterfrom
purplesyringa:emscripten-tests

Conversation

@purplesyringa

Copy link
Copy Markdown
Contributor

This fixes a couple Emscripten tests where the correct fix is more or less obvious. A couple UI tests are still broken with this PR:

  • tests/ui/abi/numbers-arithmetic/return-float.rs (NaNs are quieted on Emscripten #136197)
  • tests/ui/no_std/no-std-unwind-binary.rs (haven't debugged yet)
  • tests/ui/test-attrs/test-passed.rs (haven't debugged this either)

@rustbot label +T-compiler +O-emscripten

@rustbot

Copy link
Copy Markdown
Collaborator

r? @chenyukang

rustbot has assigned @chenyukang.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbotrustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 28, 2025
@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rust-log-analyzer

This comment has been minimized.

@jieyouxujieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, one question

@@ -1,5 +1,5 @@
//@ only-wasm32
//@ compile-flags: -C panic=unwind
//@ compile-flags: -C panic=unwind -Z emscripten-wasm-eh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: how does -Z emscripten-wasm-eh affect non-emscripten wasm32 targets?

@purplesyringapurplesyringaJan 29, 2025

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's silently ignored on anywhere but emscripten.

@jieyouxujieyouxuJan 29, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright (I find that behavior... interesting, as in not even a warning if the flag has no effect, but given it's an unstable flag, whatever).

@jieyouxujieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jieyouxu

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Jan 29, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit 644e527 has been approved by jieyouxu

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 29, 2025
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jan 29, 2025
…jieyouxu
Fix a couple Emscripten tests
This fixes a couple Emscripten tests where the correct fix is more or less obvious. A couple UI tests are still broken with this PR:
- `tests/ui/abi/numbers-arithmetic/return-float.rs` (rust-lang#136197)
- `tests/ui/no_std/no-std-unwind-binary.rs` (haven't debugged yet)
- `tests/ui/test-attrs/test-passed.rs` (haven't debugged this either)
`@rustbot` label +T-compiler +O-emscripten
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 30, 2025
…jieyouxu
Fix a couple Emscripten tests
This fixes a couple Emscripten tests where the correct fix is more or less obvious. A couple UI tests are still broken with this PR:
- `tests/ui/abi/numbers-arithmetic/return-float.rs` (rust-lang#136197)
- `tests/ui/no_std/no-std-unwind-binary.rs` (haven't debugged yet)
- `tests/ui/test-attrs/test-passed.rs` (haven't debugged this either)
``@rustbot`` label +T-compiler +O-emscripten
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 30, 2025
…jieyouxu
Fix a couple Emscripten tests
This fixes a couple Emscripten tests where the correct fix is more or less obvious. A couple UI tests are still broken with this PR:
- `tests/ui/abi/numbers-arithmetic/return-float.rs` (rust-lang#136197)
- `tests/ui/no_std/no-std-unwind-binary.rs` (haven't debugged yet)
- `tests/ui/test-attrs/test-passed.rs` (haven't debugged this either)
```@rustbot``` label +T-compiler +O-emscripten
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 30, 2025
…jieyouxu
Fix a couple Emscripten tests
This fixes a couple Emscripten tests where the correct fix is more or less obvious. A couple UI tests are still broken with this PR:
- `tests/ui/abi/numbers-arithmetic/return-float.rs` (rust-lang#136197)
- `tests/ui/no_std/no-std-unwind-binary.rs` (haven't debugged yet)
- `tests/ui/test-attrs/test-passed.rs` (haven't debugged this either)
````@rustbot```` label +T-compiler +O-emscripten
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 30, 2025
…iaskrgr
Rollup of 8 pull requests
Successful merges:
- rust-lang#133636 ([rustdoc] Add sans-serif font setting)
- rust-lang#135434 (Match Ergonomics 2024: update edition 2024 behavior of feature gates)
- rust-lang#135739 (Clean up uses of the unstable `dwarf_version` option)
- rust-lang#135882 (simplify `similar_tokens` from `Option<Vec<_>>` to `&[_]`)
- rust-lang#136179 (Allow transmuting generic pattern types to and from their base)
- rust-lang#136199 (Fix a couple Emscripten tests)
- rust-lang#136238 (ci: refactor how directories are removed in free-disk-space disk)
- rust-lang#136251 (use impl Into<String> instead of explicit type args with bounds)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 30, 2025
…iaskrgr
Rollup of 7 pull requests
Successful merges:
- rust-lang#133636 ([rustdoc] Add sans-serif font setting)
- rust-lang#135434 (Match Ergonomics 2024: update edition 2024 behavior of feature gates)
- rust-lang#135739 (Clean up uses of the unstable `dwarf_version` option)
- rust-lang#135882 (simplify `similar_tokens` from `Option<Vec<_>>` to `&[_]`)
- rust-lang#136179 (Allow transmuting generic pattern types to and from their base)
- rust-lang#136199 (Fix a couple Emscripten tests)
- rust-lang#136251 (use impl Into<String> instead of explicit type args with bounds)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit d7668d8 into rust-lang:masterJan 30, 2025
@rustbotrustbot added this to the 1.86.0 milestone Jan 30, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jan 30, 2025
Rollup merge of rust-lang#136199 - purplesyringa:emscripten-tests, r=jieyouxu
Fix a couple Emscripten tests
This fixes a couple Emscripten tests where the correct fix is more or less obvious. A couple UI tests are still broken with this PR:
- `tests/ui/abi/numbers-arithmetic/return-float.rs` (rust-lang#136197)
- `tests/ui/no_std/no-std-unwind-binary.rs` (haven't debugged yet)
- `tests/ui/test-attrs/test-passed.rs` (haven't debugged this either)
`````@rustbot````` label +T-compiler +O-emscripten
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletestArea: The compiletest test runnerA-testsuiteArea: The testsuite used to check the correctness of rustcS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@purplesyringa@rustbot@rust-log-analyzer@jieyouxu@bors@chenyukang