-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Tracking issue for static lifetime in statics (RFC #1623) #35897
Comments
I would be up for mentoring someone in implementing this ( |
Cool! I'm not sure if I can find the time, but if I do, I'd be glad to code this up. |
Here are some pointers into the code:
|
Great! I think with those pointers I should be able to make some progress even with a modest amount of time. |
implementing RFC 1623. This fixes #35897. This is a work in progress. In particular, I want to add more tests, especially the compile-fail test is very bare-bones.
This should not have been closed. |
(Until it becomes stable.) |
@chriskrycho just a friendly heads-up: Did you get around to documenting this? |
I did not, but it’s on my list for after-work tasks this week! |
@llogiq this is fully implemented at this point, right? I guess we are blocked on some documentation efforts? I'd like to stabilize this change. |
This was, perhaps ironically given my RFC, blocked on me actually getting around to documenting it. I will aim to document it Monday.
|
OK :) |
I too would love to see this stabilized. Thank you Niko for pushing this forward! Also thank you Chris for caring about the docs. |
Sorry, didn’t get to this today as I was sick. Tomorrow, tomorrow, tomorrow! |
Get well soon! |
Documentation PR inbound shortly! |
I'm going to go ahead and nominate for FCP, to kick the process off. Note that actual stabilization is blocked by docs landing, but we can at least start discussing whether to move to FCP (which itself lasts several weeks). @rfcbot fcp merge |
As I commented on #37928, removing the feature gate would very probably make the doc tests pass, thus removing the last hurdle before merging. It's a bit unfortunate to have this deadlock problem, but perhaps we can learn something from it? |
Yeah, this is a process thing I didn't see coming in the discussion in rust-lang/rfcs#1636. |
@rfcbot reviewed |
🔔 This is now entering its final comment period, as per the review above. 🔔 psst @aturon, I wasn't able to add the |
The final comment period is now complete. |
…eveklabnik Document RFC 1623: static lifetime elision. This should be the last item required for stabilizing RFC 1623 (rust-lang#35897).
…eveklabnik Document RFC 1623: static lifetime elision. This should be the last item required for stabilizing RFC 1623 (rust-lang#35897).
Stabilize static lifetime in statics Stabilize the "static_in_const" feature. Blockers before this PR can be merged: * [x] The [FCP with inclination to stabilize](#35897 (comment)) needs to be over. FCP lasts roughly three weeks, so will be over at Jan 25, aka this thursday. * [x] Documentation needs to be added (#37928) Closes #35897.
Reopening until this is backported to 1.16. |
@brson wait, why are we backporting? We don't normally backport new features and stabilizations, do we? This seems relatively minor. |
@nikomatsakis would the lang team prefer to not backport? I don't think there's been a definitive answer in either #39265 (stabilization PR) or in #37928 (doc PR). I believe @est31 proposed a backport and I tagged it as such b/c of the request, but no answer has been had. If the answer is "no", however, then we can denominate and remove from milestones. |
Just note that back when I was proposing the backport, I thought that stabilisations usually do get backported. Didn't know that its usually only done exceptionally. |
Given that it's not much code, a backport wouldn't be that costly (and probably much appreciated 😄). But I'm also fine with waiting for 1.17 if there are more pressing matters. |
@alexcrichton I think we should not backport. This is just a normal stabilization and should follow the normal process. |
Sounds like the backport isn't gonna happen, so I'm going to remove beta-nominated from the PRs and un-milestone this issue. |
Er, also re-close this issue |
@brson, this feature is still mentioned in release notes, even though it didn't land. |
Tracking issue for "static lifetime in statics", rust-lang/rfcs#1623, which defaults omitted lifetimes in statics to
'static
.cc @llogiq
The text was updated successfully, but these errors were encountered: