-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rename rust_2015
→ is_rust_2015
#107559
The head ref may contain hidden characters: "is_it_2015\u00BF"
Rename rust_2015
→ is_rust_2015
#107559
Conversation
@@ -702,7 +702,7 @@ impl<'a> Parser<'a> { | |||
/// Is a `dyn B0 + ... + Bn` type allowed here? | |||
fn is_explicit_dyn_type(&mut self) -> bool { | |||
self.check_keyword(kw::Dyn) | |||
&& (!self.token.uninterpolated_span().rust_2015() | |||
&& (self.token.uninterpolated_span().rust_2018() |
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.
Wouldn't it make sense for this similarly to be renamed is_rust_2018
, and so on for all such edition tests?
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.
No, see the linked comment. rust_2015
is == 2015
, but rust_2018
is >= 2018
(similarly for others).
@bors r+ rollup |
⌛ Testing commit 7f8bf60 with merge 719b6328260db2e1f22b3541221bd6dac45f47db... |
💔 Test failed - checks-actions |
Hmm... I think bors is busted. I'll post about it on T-infra (https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/Every.20rust-lang.2Frust.20PR.20is.20failing.20bors) @bors treeclosed=50 |
@bors retry CI was broken |
Rename `rust_2015` → `is_rust_2015` r? `@compiler-errors` rust-lang#107508 (comment)
☔ The latest upstream changes (presumably #105670) made this pull request unmergeable. Please resolve the merge conflicts. |
7f8bf60
to
a7f97a7
Compare
@bors r=davidtwco |
Rename `rust_2015` → `is_rust_2015` r? `@compiler-errors` rust-lang#107508 (comment)
Rename `rust_2015` → `is_rust_2015` r? ``@compiler-errors`` rust-lang#107508 (comment)
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#106919 (Recover `_` as `..` in field pattern) - rust-lang#107493 (Improve diagnostic for missing space in range pattern) - rust-lang#107515 (Improve pretty-printing of `HirIdValidator` errors) - rust-lang#107524 (Remove both StorageLive and StorageDead in CopyProp.) - rust-lang#107532 (Erase regions before doing uninhabited check in borrowck) - rust-lang#107559 (Rename `rust_2015` → `is_rust_2015`) - rust-lang#107577 (Reinstate the `hir-stats.rs` tests on stage 1.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
r? @compiler-errors
#107508 (comment)