A way to test differences in diagnostics between stable and nightly #65903
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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()
returnfalse
. Ideally, this would be provided as a-Z
flag which can be used in UI tests.cc @estebank
The text was updated successfully, but these errors were encountered: