You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Tracking issue for adding a lifetime specifier to macro_rules! #34303
B-RFC-approvedBlocker: Approved by a merged RFC.B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.T-langRelevant to the language teamdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.
@mikeyhew
This is a good issue to start working on the compiler frontend.
You may want to start with taking @sgrif's patch and rebasing it on the current master, and then making sure the tests pass.
Then you'll have to add a feature gate for lifetime matcher and some docs (unstable book section) (see e0cd766, and 1d46805, and #41012 as a whole for examples of the same things being done with vis matcher.)
@durka right, that's precisely what I was thinking when I wrote the "on the other hand" part. I think I'm going to resolve my concern -- otherwise I guess we need a bunch more matchers.
B-RFC-approvedBlocker: Approved by a merged RFC.B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.T-langRelevant to the language teamdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.
Activity
sgrif commentedon Jun 16, 2016
I'll open a new PR soon, I want to do one more thing on top of #33135
Phlosioneer commentedon Jun 21, 2016
Godspeed, @sgrif! This being in nightly would make my week.
comex commentedon Jan 3, 2017
@sgrif Any update?
brson commentedon Mar 1, 2017
This doesn't seem particularly hard. Help wanted.
durka commentedon Mar 1, 2017
I wish we knew what the "one more thing" was besides just reopening the closed PR.
mikeyhew commentedon May 4, 2017
I'd like to help implement this. Where do I start?
petrochenkov commentedon May 4, 2017
@mikeyhew
This is a good issue to start working on the compiler frontend.
You may want to start with taking @sgrif's patch and rebasing it on the current master, and then making sure the tests pass.
Then you'll have to add a feature gate for
lifetimematcher and some docs (unstable book section) (see e0cd766, and 1d46805, and #41012 as a whole for examples of the same things being done withvismatcher.)@durka
This should be something truly marvelous, that this GitHub comment was too narrow to contain.
Auto merge of #46895 - ricochet1k:macro-lifetimes, r=jseyfried
sgrif commentedon Jan 1, 2018
This issue should remain open until the feature is stable, right?
11 remaining items
nikomatsakis commentedon Mar 16, 2018
@durka right, that's precisely what I was thinking when I wrote the "on the other hand" part. I think I'm going to resolve my concern -- otherwise I guess we need a bunch more matchers.
@rfcbot resolve underscore-lifetime
durka commentedon Mar 19, 2018
@nikomatsakis please say "resolved" for the bot
nikomatsakis commentedon Mar 20, 2018
@rfcbot resolved underscore-lifetime
Sigh.
rfcbot commentedon Mar 20, 2018
🔔 This is now entering its final comment period, as per the review above. 🔔
rfcbot commentedon Mar 30, 2018
The final comment period is now complete.
durka commentedon Mar 30, 2018
🚀 🚀 🚀 🚀 🚀
Auto merge of #50385 - durka:stabilize-macro-lifetime, r=petrochenkov
dtolnay commentedon Jun 10, 2018
We don't have tests for a macro_rules falling through to the next rule after a $:lifetime matcher.
And it doesn't work. 😢 I filed #51477 to follow up.
Centril commentedon Sep 15, 2018
I think we can close this as it was stabilized; bugs and other things can be tracked as we usually do.