Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Passing $crate from macro_rules fails #34

Closed
Ralith opened this issue Jul 2, 2019 · 4 comments
Closed

Passing $crate from macro_rules fails #34

Ralith opened this issue Jul 2, 2019 · 4 comments
Labels

Comments

@Ralith
Copy link

Ralith commented Jul 2, 2019

Reproduce by running cargo test in this testcase.

@dtolnay
Copy link
Owner

dtolnay commented Jul 2, 2019

Thanks! I would accept a PR to fix this.

@dtolnay
Copy link
Owner

dtolnay commented Jul 2, 2019

We need to find the step where the $crate token decomposes from Ident { ident: "$crate" } (which is how rustc is supposed to treat it) to Punct { ch: '$', spacing: Alone }, Ident { ident: "crate" }.

@dtolnay
Copy link
Owner

dtolnay commented Jul 3, 2019

Look like a compiler bug -- closing in favor of rust-lang/rust#62325.

@dtolnay dtolnay closed this as completed Jul 3, 2019
@Ralith
Copy link
Author

Ralith commented Jul 3, 2019

Thanks for investigating!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants