rust-lang / rust-lang/rust

Egui WASM program failing or not failing depending on whitespace/comments and other irrelevant details

Open
#119,774 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug E-needs-mcve O-wasm S-needs-repro
Dominant language
Rust
Stars
119k
Forks
16.2k
PR merge metrics
PR metrics pending

Description

Egui WASM program failing or not failing depending very sensitively on whitespace/comments and other irrelevant details, similar to https://github.com/rust-lang/rust/issues/110230 but without the ICE.

See https://github.com/emilk/egui/issues/3796#issuecomment-1883097612 for description and test case.

rustc --version --verbose:

rustc 1.74.1 (a28077b28 2023-12-04) (gentoo)
binary: rustc
commit-hash: a28077b28a02b92985b3a3faecf92813155f1ea1
commit-date: 2023-12-04
host: x86_64-unknown-linux-gnu
release: 1.74.1
LLVM version: 17.0.6
<version>

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 with the reproduction and test case described in the linked egui issue comment, using the reported rustc 1.74.1 environment. Compare versions and whitespace/comment variants to isolate the compiler behavior; done means the failure is reproducible and its cause or a verified regression test is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
compilers
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.