-
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
tracking issue for infer_static_outlives_requirements
(RFC 2093 spinoff)
#54185
Comments
Are there particular strong reasons to treat |
I'm not sure what you mean by "strong" — the inference itself has no problem with |
@nikomatsakis by strong I mean "very compelling" rather than "a bit compelling" :) |
I don't know what we should do necessarily, but two reasons not to infer
|
Hmm, there's some precedent that But I agree that waiting for additional feedback here is the right plan. |
I did some looking around and thus far it doesn't seem like anyone has used That said, I'm coming around to the idea that With respect to @withoutboats's first point, while I initially found it compelling, I've thought some more about it... Given that for a type |
I feel that not having the feature might be good for onboarding, as otherwise people who try to put references into types will get implicitly guided towards This issue hasn't been around for all that long; I think we should wait more time to see if anyone whos up saying it would be particularly helpful to them. |
We discussed this in the lang team meeting and the general consensus was that, while we generally prefer to avoid special-cases in the language, Rather than FCP close'ing, we decided to leave this open and wait to see if users are confused by this special case. One thing that was pointed out was that users might not find this issue because the current error doesn't suggest using a feature gate nor point users towards this tracking issue-- this should be fixed. |
It's been 3.5 years, and it doesn't seem like we've had any further reports about this being confusing. We can always make this change later, if we change our minds or new information comes to light. Any concerns from @rust-lang/lang about closing this? @rfcbot close |
Team member @joshtriplett has proposed to close this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to close, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
@joshtriplett What should we do about the |
@JohnTitor that's right: at this point, we would welcome a Pull Request that removes the As a related task, we would also want to update rust-lang/rfcs#2093 ("Infer T: 'x outlives requirements on structs") to explicitly state that we decided not to move ahead with the I would be happy to help mentor someone with that task. @rustbot label: +E-help-wanted +E-mentor |
…requirements, r=pnkfelix Remove the `infer_static_outlives_requirements` feature Closes rust-lang#54185 r? `@pnkfelix`
As part of the work on RFC 2093 (#44493), we encountered a specific sub-question that we decided to spin out into its own feature gate called
infer_static_outlives_requirements
(#52761). The question is whether to inferT: 'static
requirements from structs.For example, does this struct require
T: 'static
?There is no real implementation work to be done here, this is simply a policy question.
The text was updated successfully, but these errors were encountered: