rust-lang / rust-lang/rust

Channel used for emitting diagnostic from codegen threads is not guaranteed to be fully drained when compilation session is aborted

Open
#133,507 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-testsuite C-bug E-needs-investigation T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

AFAIK, the channel used for emitting diagnostic from codegen threads is not guaranteed to be fully drained when compilation session is aborted.

Originally posted by @tmiasko in #82886

This may have lead to e.g. #82886.

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 tracing the diagnostic channel used by codegen threads and the compilation-session abort path. Determine how diagnostics are drained when an abort occurs, then verify that no diagnostics are lost and add coverage for the aborted-session case if the relevant test location is found.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.