rust-lang / rust-lang/rust

Inconsistent test output in `aarch64` when using `-Zwrite-long-types-to-disk=yes`

Open
#144,375 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-diagnostics D-diagnostic-infra T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Identified at https://github.com/rust-lang/rust/pull/144039/files#diff-50874c76f2d7b03cf2f8006f8e0d42851df89aec14ad3ee6000712c5f1650e97

When modifying tests/ui/confuse-field-and-method/issue-2392.rs to use -Zwrite-long-types-to-disk=yes, the output in aarch64 doesn't match the output in other platforms.

We should investigate why this is the case, as it indicates some issue with either the test runner or the type path shortening feature itself.

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 tests/ui/confuse-field-and-method/issue-2392.rs and the referenced PR diff. Reproduce the test with -Zwrite-long-types-to-disk=yes on aarch64 and another platform, then compare the generated output. Done means identifying whether the discrepancy is in the test runner or type path shortening and documenting or fixing the resulting inconsistency.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.