-
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
Add a new concat metavar expr #118958
Add a new concat metavar expr #118958
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
5e8fac5
to
b08d90b
Compare
This comment has been minimized.
This comment has been minimized.
97b22d8
to
c04e3a6
Compare
@rustbot label +A-macros |
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.
Looks pretty good to me. I started some discussion in wg-macros https://rust-lang.zulipchat.com/#narrow/stream/404510-wg-macros/topic/concat_idents.20as.20metavar.20.24.7B.2E.2E.2E.7D.
I don't think you need to mention the RFC in the title/commit message since this specific function wasn't called out in the RFC.
c04e3a6
to
7695bdf
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
aed2b0e
to
5242d59
Compare
(please use |
@c410-f3r is this ready for review? I didn't intend for my comments to be blocking |
Yeap, it is ready for review @rustbot labels -S-waiting-on-author +S-waiting-on-review |
This comment was marked as resolved.
This comment was marked as resolved.
5242d59
to
ecbb5d6
Compare
r=me after addressing #118958 (comment). |
There still isn't a test ensuring that this syntax is rejected without the feature gate, Edit: thanks, this looks good now |
This comment has been minimized.
This comment has been minimized.
Spurious failure #126430 |
@rustbot review |
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors r+ |
☀️ Test successful - checks-actions |
Woohoo! Thanks for all the work here, I think everyone has been needing this for a long while :) |
Finished benchmarking commit (f8e5660): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 671.574s -> 671.997s (0.06%) |
Revival of #111930
Giving it another try now that #117050 was merged.
With the new rules, meta-variable expressions must be referenced with a dollar sign (
$
) and this can cause misunderstands with$concat
.In other words, forgetting the dollar symbol can produce undesired outputs.
cc #29599
cc #124225