-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Steps to reproduce:
# time commit bc2cdc375206a3ba118ffe16eb7262db300a1201
$ git clone https://github.com/time-rs/time
$ cd time
# rustc commit 94fccccd2cdba42aed93ad7715e969ab6aad6301
$ cargo +stage1 check
...
Compiling time-macros-impl v0.1.1 (/home/tm/test/time/time-macros-impl)
error: expected identifier
--> time-macros-impl/src/lib.rs:98:20
|
98 | pub fn $name(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ^^^^^
...
105 | / impl_macros! {
106 | | time: Time,
107 | | offset: Offset,
108 | | date: Date,
109 | | }
| |_- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
Meta
Very recent regression; versions <= nightly-2020-05-24
are not affected.
timvisee
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.