Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for RFC 2539, "#[cfg_attr] expanding to multiple attributes" #54881
Comments
Centril
added
B-RFC-approved
T-lang
C-tracking-issue
labels
Oct 7, 2018
Centril
assigned
Havvy
Oct 7, 2018
This comment has been minimized.
This comment has been minimized.
|
Implementation in #54862 |
Centril
added
B-unstable
B-RFC-implemented
labels
Oct 17, 2018
This comment has been minimized.
This comment has been minimized.
|
Setting earliest date for stabilization proposal: 2018-11-22 (11 days from now). |
This comment has been minimized.
This comment has been minimized.
Stabilization proposal@rfcbot merge Originally proposed in RFC rust-lang/rfcs#2539, implemented in #54862, and in nightly since ~ the 12th October, Version targetThe next version is 1.32 which goes into beta the 7th of December; It is quite possible that this will slip into 1.33 however depending on how long the review process takes. What is stabilized
Users are now permitted to write for example: #[cfg_attr(all(),)] struct A; // trailing comma permitted as well as zero items.
#[cfg_attr(all(), must_use)] struct A;
#[cfg_attr(all(), must_use,)] struct A; // trailing permitted.
#[cfg_attr(foo, must_use, deprecated)] struct A;
#[cfg_attr(all(), must_use, deprecated,)] struct A; // trailing permitted.The semantics of these are to expand to for example If zero attributes are given, e.g. What is notUsers are not permitted to write:
Divergences from RFCNone cc @Havvy can you make the stabilization PR + resolve the minor FIXME in it? |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 25, 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
added
proposed-final-comment-period
disposition-merge
labels
Nov 25, 2018
This comment has been minimized.
This comment has been minimized.
|
I wouldn't call the implementation of the lint a minor fix. The first time I tried, I bailed when I hit a set of cases I couldn't get something the lint infrastructure wanted. The lint is also the least value add of the RFC and I propose stabilizing it separately if doing so doesn't break backwards compatibility. |
This comment has been minimized.
This comment has been minimized.
|
@Havvy Warn by default lints can always be added later so if you think it is non-trivial to implement in the stabilization PR, I wouldn't mind deferring that to the future; as you say, it is indeed the least value-add. However, if you do manage to fix it in the stabilization PR, that would be nice (but not required, imo). |
rfcbot
added
the
final-comment-period
label
Dec 10, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Dec 10, 2018
|
|
rfcbot
removed
the
proposed-final-comment-period
label
Dec 10, 2018
rfcbot
added
the
finished-final-comment-period
label
Dec 20, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Dec 20, 2018
|
The final comment period, with a disposition to merge, as per the review above, is now complete. |
rfcbot
removed
the
final-comment-period
label
Dec 20, 2018
This comment has been minimized.
This comment has been minimized.
|
@Havvy Up for writing the stabilization PR? |
This comment has been minimized.
This comment has been minimized.
|
I don't and haven't had motivation pertaining to Rustlang at the moment, sorry. Eventually it'll return. |
This comment has been minimized.
This comment has been minimized.
|
r? @Dylan-DPC |
Centril
assigned
Dylan-DPC
and unassigned
Havvy
Dec 23, 2018
bors
added a commit
that referenced
this issue
Jan 8, 2019
Centril
referenced this issue
Jan 8, 2019
Closed
Document RFC 2539 (`#[cfg_attr(p, attr1, attr2)]`) #500
This comment has been minimized.
This comment has been minimized.
|
Stabilization has gone through and documentation issue has been filed against the reference; what remains is to fix the lint which @Dylan-DPC will do in a separate PR. After that this issue can be closed. |
Centril commentedOct 7, 2018
•
edited
This is a tracking issue for the RFC "
#[cfg_attr]expanding to multiple attributes" (rust-lang/rfcs#2539).Steps:
Unresolved questions:
None