Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
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 }}
rust-lang
reference
Repository navigation
Code
Issues
315
(315)
Pull requests
150
(150)
Actions
Projects
Security and quality
Insights
More
items
Stabilize
#[optimize]
attribute
- #2278
#2278
Merged
traviscross
merged 12 commits into
rust-lang:master
rust-lang/reference:master
from
veluca93:optimize-attribute
veluca93/rust-reference:optimize-attribute
Copy head branch name to clipboard
Nov 4, 2026
Conversation
Commits
12
(12)
Checks
Files changed
Merged
Stabilize
#[optimize]
attribute
#2278
traviscross
merged 12 commits into
rust-lang:master
rust-lang/reference:master
from
veluca93:optimize-attribute
veluca93/rust-reference:optimize-attribute
Copy head branch name to clipboard
Commits
Commits on Oct 10, 2026
Stabilize #[optimize] attribute.
veluca93
committed
0686253
View commit details
Copy full SHA for 0686253
Browse repository at this point
Commits on Oct 27, 2026
Restore review fixes lost from the `optimize` section
Show description for f1a6cbd
traviscross
committed
f1a6cbd
View commit details
Copy full SHA for f1a6cbd
Browse repository at this point
Commits on Nov 4, 2026
Reword the `optimize` modes
Show description for e643bb7
traviscross
committed
e643bb7
View commit details
Copy full SHA for e643bb7
Browse repository at this point
Say which bodies inherit the `optimize` attribute
Show description for 2d2463c
traviscross
committed
2d2463c
View commit details
Copy full SHA for 2d2463c
Browse repository at this point
Add a trait rule for the `optimize` attribute
Show description for 3efb14b
traviscross
committed
3efb14b
View commit details
Copy full SHA for 3efb14b
Browse repository at this point
Document that `optimize(none)` conflicts with `inline`
Show description for 68a8d11
traviscross
committed
68a8d11
View commit details
Copy full SHA for 68a8d11
Browse repository at this point
Reword `optimize` index entry
Show description for 30c3d47
traviscross
committed
30c3d47
View commit details
Copy full SHA for 30c3d47
Browse repository at this point
Document that `optimize` conflicts with `naked`
Show description for b05eaf4
traviscross
committed
b05eaf4
View commit details
Copy full SHA for b05eaf4
Browse repository at this point
Make the `-Copt-level=0` no-op remark a note
Show description for 380d0eb
traviscross
committed
380d0eb
View commit details
Copy full SHA for 380d0eb
Browse repository at this point
Revise the `optimize` grammar
Show description for 99a128f
traviscross
committed
99a128f
View commit details
Copy full SHA for 99a128f
Browse repository at this point
Add examples for `optimize` positions and duplicates
Show description for dda3f33
traviscross
committed
dda3f33
View commit details
Copy full SHA for dda3f33
Browse repository at this point
Fix the `optimize` note WRT `-C opt-level=0`
Show description for d71e938
traviscross
committed
d71e938
View commit details
Copy full SHA for d71e938
Browse repository at this point
You can’t perform that action at this time.