rust-lang / rust-lang/rust

Tracking issue for wasm32-emscripten ui test failures

Open
#131,738 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-testsuite C-bug C-tracking-issue O-emscripten
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

These are the tests that are failing after #131705:

  • abi/numbers-arithmetic/return-float.rs -- adding -Cpanic=abort fixes the failure. The upstream bug report has a C++ reproducer. More reason it would be nice to resolve #112195.
  • async-await/issue-60709.rs -- Emscripten bug that occurs when -lc and -Oz are passed to the linker, can be reproduced with
    echo "fn main(){}" > a.rs
    rustc -Copt-level=z a.rs -o a.js --target=wasm32-unknown-emscripten
    
  • backtrace/dylib-dep.rs -- "Not supported", xfailed in https://github.com/rust-lang/rust/pull/131776
  • backtrace/line-tables-only.rs -- "Not supported", xfailed in https://github.com/rust-lang/rust/pull/131776
  • no_std/no-std-unwind-binary.rs -- compiler says error: lang item required, but not found: eh_catch_typeinfo
  • structs-enums/enum-rec/issue-17431-6.rs -- One of the two compiler errors is missing
  • test-attrs/test-passed.rs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the listed wasm32-unknown-emscripten UI tests, especially abi/numbers-arithmetic/return-float.rs and no_std/no-std-unwind-binary.rs, then reproduce the provided rustc command for the Emscripten linker failure. Done means the unchecked failures are fixed or appropriately accounted for, while the listed unsupported cases remain covered by their existing xfails.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
compilers, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.