rust-lang / rust-lang/rust

compiletest: Automatically specify `-Zunstable-options` when the `edition` header is set to an unstable edition

Open
#133,582 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

During each new edition, it is a bit of a hassle to add/remove -Zunstable-options headers for the next edition. I think it would be helpful to automatically specify -Zunstable-options when an edition header specifies an unstable edition. This means there would roughly be one place to make the switch (compiletest 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 in compiletest's handling of edition headers and inspect how it currently processes -Zunstable-options. The work is done when unstable editions automatically receive that option, eliminating the need to add or remove separate headers for each new edition; verify the compiletest behavior around edition-based tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.