Skip to content

A way to test differences in diagnostics between stable and nightly #65903

Open

Description

Sometimes we do things like if self.sess.opts.unstable_features.is_nightly_build() { to switch between diagnostics for stable and nightly, e.g. as in #65893.

It would be good to have a way to tell a nightly compiler to behave as-if it was a stable one by making .is_nightly_build() return false. Ideally, this would be provided as a -Z flag which can be used in UI tests.

cc @estebank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions