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 }}
Repository navigation
Tracking issue for RFC 2302, Tuple struct construction with Self(v1, v2, ..) #51994
Feature name: #![feature(self_struct_ctor)]
Version target: 1.32 (2019-01-18)
Originally accepted in rust-lang/rfcs#2302, I propose that we stabilize self_struct_ctor.
This has been in nightly since 2018-09-15 which is ~8 weeks ago.
The proposed change is not a blocker for anyone but it is a nice quality of life feature in some cases and more importantly, it makes the language less surprising and easier to learn. Furthermore, we do already permit Self { foo: ... }.
Once a majority of reviewers approve (and none object), 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.
Activity
Auto merge of #53751 - F001:tuple-struct-self-ctor, r=petrochenkov,va…
Auto merge of #53751 - F001:tuple-struct-self-ctor, r=petrochenkov,va…
shepmaster commentedon Sep 15, 2018
Code that implements this has been merged.
playground
Centril commentedon Nov 11, 2018
@rfcbot merge
Stabilization report & proposal
Feature name:
#![feature(self_struct_ctor)]Version target: 1.32 (2019-01-18)
Originally accepted in rust-lang/rfcs#2302, I propose that we stabilize
self_struct_ctor.This has been in nightly since 2018-09-15 which is ~8 weeks ago.
The proposed change is not a blocker for anyone but it is a nice quality of life feature in some cases and more importantly, it makes the language less surprising and easier to learn. Furthermore, we do already permit
Self { foo: ... }.What is being stabilized
Relevant artefacts:
The changes are:
Selfbecomes a legal pattern and expression for unit structs inimpls (both inherent and trait impls...).Self(x1, x2, ...)becomes a legal pattern and expression for tuple structs inimpls(both inherent and trait impls...).Selfbecomes a legal function pointer inimpls(...).Self { field: <thing> }does.What is not being stabilized
Mentions of enum variants through
Selfis not being stabilized. For example:Divergences from RFC
None
rfcbot commentedon Nov 11, 2018
Team member @Centril has proposed to merge this. The next step is review by the rest of the tagged teams:
No concerns currently listed.
Once a majority of reviewers approve (and none object), 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.
rfcbot commentedon Nov 23, 2018
🔔 This is now entering its final comment period, as per the review above. 🔔
caiopsouza commentedon Nov 24, 2018
A variant of what is not being stabilized gave me an internal compiler error.
Code:
Compiler output:
Centril commentedon Nov 24, 2018
@caiopsouza Thanks for reporting this! Could you file this as a separate issue so that we can track and fix it?
alexreg commentedon Nov 30, 2018
Stabilization PR
rfcbot commentedon Dec 3, 2018
The final comment period, with a disposition to merge, as per the review above, is now complete.
stefson commentedon Apr 22, 2019
may I ask, in which release of rust was this merged?
I hit it with rustc-1.31.1?fixed in rustc-1.32.0, sry for the noise :-)
Bump MSRV for deps