-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
restore emplacement syntax (obsolete) #51052
Conversation
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@@ -2839,6 +2839,17 @@ impl<'a> Parser<'a> { | |||
let (span, e) = self.interpolated_or_expr_span(e)?; | |||
(lo.to(span), ExprKind::AddrOf(m, e)) | |||
} | |||
token::Ident(..) if self.token.is_keyword(keywords::In) => { |
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.
Wat.
I thought we removed the in
version, like, years ago.
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.
Nope, it was removed in @aidanhs's PR
ExprKind::ObsoleteInPlace(..) => { | ||
self.err_handler() | ||
.struct_span_err(expr.span, "emplacement syntax is obsolete (for now, anyway)") | ||
.note("for more information, see <https://github.com/rust-lang/rust/issues/27779#issuecomment-378416911>") |
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.
Tidy!
r=me after fixing tidy |
@bors r=petrochenkov |
📌 Commit 626818f has been approved by |
@bors p=1 (needs to be backported to beta) |
restore emplacement syntax (obsolete) Fix #50832 r? @petrochenkov
☀️ Test successful - status-appveyor, status-travis |
[beta] Process backports Merged and approved: * #50812: Fix issue #50811 (`NaN > NaN` was true). * #50827: Update LLVM to `56c931901cfb85cd6f7ed44c7d7520a8de1edf97` * #50879: Fix naming conventions for new lints * #51011: rustdoc: hide macro export statements from docs * #51051: prohibit turbofish in `impl Trait` methods * #51052: restore emplacement syntax (obsolete) * #51146: typeck: Do not pass the field check on field error * #51235: remove notion of Implicit derefs from mem-cat r? @ghost
[beta] Process backports Merged and approved: * #50812: Fix issue #50811 (`NaN > NaN` was true). * #50879: Fix naming conventions for new lints * #51011: rustdoc: hide macro export statements from docs * #51051: prohibit turbofish in impl Trait methods * #51052: restore emplacement syntax (obsolete) * #51146: typeck: Do not pass the field check on field error * #51235: remove notion of Implicit derefs from mem-cat r? @ghost
Fix #50832
r? @petrochenkov