- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Open
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-optimize_attribute`#![feature(optimize_attribute)]``#![feature(optimize_attribute)]`S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.T-langRelevant to the language teamRelevant to the language team
Description
This is a tracking issue for the RFC "The optimize attribute" (rust-lang/rfcs#2412).
Steps:
- Implement the RFC. Partially done, see Tracking issue for RFC 2412, "The optimize attribute" #54882 (comment).
- Adjust documentation (see instructions on forge)
- Stabilization PR (see instructions on forge)
Unresolved questions:
-  Should we also implement optimize(always)?optimize(level=x)?- Left for future discussion, but should make sure such extension is possible.
 
-  Should there be any way to specify what global optimization for speed level is used in
 conjunction with the optimization for speed option (e.g.-Copt-level=s3could be equivalent to
 -Copt-level=3and#[optimize(size)]on the crate item);-  This may matter for users of #[optimize(speed)].
 
-  This may matter for users of 
-  Are the propagation and unused_attrapproaches right?
- The RFC specifies we should emit an unused_attributes warning when misapplied, but similar attributes emit an error instead. Should this emit an error too?
stepancheg, finnbear, dullbananas, blyxyas, Phosphorus-M and 17 morethomcc, memoryruins, syvb, Sympatron, Dirbaio and 7 moreEvrey, Sympatron, Dirbaio, Quick-Flash, Phosphorus-M and 5 morestanislav-tkach, Sympatron, Quick-Flash, pellico, Type1J and 3 more
Metadata
Metadata
Assignees
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-optimize_attribute`#![feature(optimize_attribute)]``#![feature(optimize_attribute)]`S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.T-langRelevant to the language teamRelevant to the language team