rust-lang / rust-lang/rust-analyzer

Mir interpretation is order relient

Open
#18,037 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-mir Broken Window C-bug
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

The failure of the original test clearly is a bug. It should work with any order of execution, and sorting or using an stable iteration order does not fix the underlying problem. I would suggest changing the test to use an actual recursive constant like the code above, and opening an issue for that bug for further investigation.

Originally posted by @HKalbasi in https://github.com/rust-lang/rust-analyzer/issues/17954#issuecomment-2308797054

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 reproducing the original test failure and inspect the MIR interpretation path involved in the order-dependent behavior. Done means the test passes regardless of execution order without merely sorting or imposing a stable iteration order.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.