Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upmacro fragment names are no longer idents #42019
Comments
This comment has been minimized.
This comment has been minimized.
|
cc @jseyfried |
bstrie
added
regression-from-stable-to-beta
T-compiler
labels
May 15, 2017
jseyfried
self-assigned this
May 15, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Now that #42005 has landed, this should be re-reproduced. |
nagisa
added
A-macros
P-high
labels
May 18, 2017
This comment has been minimized.
This comment has been minimized.
|
It landed, but why is there no nightly? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Still broken on beta too I guess? |
This comment has been minimized.
This comment has been minimized.
|
Yes, the code in the playpen still fails to compile on beta and nightly. |
This comment has been minimized.
This comment has been minimized.
|
cc @Mark-Simulacrum -- it'd be great to know just what caused this problem. @jseyfried, are you going to have time to investigate? |
This comment has been minimized.
This comment has been minimized.
|
If I have a chance I'll run bisect-rust, also cc @est31 -- they have it working locally as well. |
This comment has been minimized.
This comment has been minimized.
brson
added
the
I-wrong
label
Jun 1, 2017
This comment has been minimized.
This comment has been minimized.
|
@jseyfried any progress? |
brson
added
regression-from-stable-to-stable
and removed
regression-from-stable-to-beta
labels
Jun 15, 2017
This comment has been minimized.
This comment has been minimized.
|
This is a P-high bug and it is inactive cc @rust-lang/compiler |
brson
added
the
I-nominated
label
Jul 13, 2017
jseyfried
referenced this issue
Jul 13, 2017
Merged
macros: fix regression involving identifiers in `macro_rules!` patterns. #43224
This comment has been minimized.
This comment has been minimized.
|
Fixed in #43224. |
bors
added a commit
that referenced
this issue
Jul 15, 2017
bors
added a commit
that referenced
this issue
Jul 15, 2017
bors
closed this
in
#43224
Jul 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
durka commentedMay 15, 2017
•
edited
This is a stable-to-beta regression, but it's such a weird thing to do that I don't know if it counts.
Consider the following code (playpen):
The
genmacro parses a macro argument spec by matching a dollar sign with$doland the fragment name with$var. Then (in this toy example) it just regurgitates that adding:identas the type of each fragment.This works in 1.17, but fails when invoked in 1.18 and nightly with the message "expected identifier, found [the ident passed in for
$var]", pointing at$varon line 4. All three channels work if$var:identis changed to$var:tton line 2.