Skip to content

error: expected identifier when building time-macros-impl v0.1.1 #72545

Closed
@tmiasko

Description

@tmiasko

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.

Metadata

Metadata

Labels

A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-parserArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions