-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Explicitly annotate edition for unpretty=expanded
and unpretty=hir
tests
#139904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…` tests These emit prelude imports which means they are always edition dependent
r? @nnethercote rustbot has assigned @nnethercote. Use |
Is this to support rust-lang/compiler-team#861 ? That MCP hasn't been accepted yet and currently has some registered concerns, so is this PR premature? |
Yes and no, the status quo is that these tests (and around 500 more) fail if you run If fixing tests is blocked on the MCP then fair enough, it'll have to wait. |
Is that currently an interesting use case? Does anyone do that? Sorry for the questions, I'm just trying to get my head around the change. |
No problem. I imagine we are the first trying to run the entire test suite with a differing edition from the default (but until recently, it was also broken when passed the default, that is 2015 edition, explicitly #139578). So right, now, the |
I don't think we should add explicit |
The PR seems fine in terms of the changes achieving what they set out to do. But @jieyouxu is much more involved with test stuff than I am so I will defer to their opinion about waiting here. |
Actually, I looked at the test diffs more closely, and these do need edition 2015 which is not like other tests that don't really "care" about editions. |
So in that sense, this looks good to me as well and doesn't warrant blocking on the overall MCP. Thanks! @bors r=nnethercote,jieyouxu rollup |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#138632 (Stabilize `cfg_boolean_literals`) - rust-lang#139416 (unstable book; document `macro_metavar_expr_concat`) - rust-lang#139782 (Consistent with treating Ctor Call as Struct in liveness analysis) - rust-lang#139885 (document RUSTC_BOOTSTRAP, RUSTC_OVERRIDE_VERSION_STRING, and -Z allow-features in the unstable book) - rust-lang#139904 (Explicitly annotate edition for `unpretty=expanded` and `unpretty=hir` tests) - rust-lang#139932 (transmutability: Refactor tests for simplicity) - rust-lang#139944 (Move eager translation to a method on Diag) - rust-lang#139948 (git: ignore `60600a6fa403216bfd66e04f948b1822f6450af7` for blame purposes) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#139904 - ferrocene:lw-wkumpwrytvtp, r=nnethercote,jieyouxu Explicitly annotate edition for `unpretty=expanded` and `unpretty=hir` tests These emit prelude imports which means they are always edition dependent and so running them with a different `--edition` will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, this shouldn't have been committed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a commit to #139897 to remove it.
(I noticed this because I regularly redirect the output of git diff
and similar commands to a file called diff
.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh oops I didn't notice this stray file
It was accidentally committed in rust-lang#139904.
These emit prelude imports which means they are always edition dependent and so running them with a different
--edition
will fail.