Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to 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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
rust-lang
/
rust
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
15.4k
Star
115k
Code
Issues
5k+
Pull requests
1.3k
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Permit attributes on 'if' expressions
- #69201
#69201
Merged
bors
merged 11 commits into
rust-lang:master
rust-lang/rust:master
from
Aaron1011:feature/permit-if-attr
Aaron1011/rust:feature/permit-if-attr
Copy head branch name to clipboard
Mar 9, 2020
Conversation
Commits
11
(11)
Checks
Files changed
Merged
Permit attributes on 'if' expressions
#69201
bors
merged 11 commits into
rust-lang:master
rust-lang/rust:master
from
Aaron1011:feature/permit-if-attr
Aaron1011/rust:feature/permit-if-attr
Copy head branch name to clipboard
Commits
Commits on Mar 4, 2020
Permit attributes on 'if' expressions
Show description for f63b88c
Aaron1011
committed
f63b88c
View commit details
Copy full SHA for f63b88c
Browse repository at this point
Test #[allow(unused)] on `if` expression
Aaron1011
committed
e912d9d
View commit details
Copy full SHA for e912d9d
Browse repository at this point
Test that stmt_expr_attrs properly gates if-attrs
Aaron1011
committed
e9ec47b
View commit details
Copy full SHA for e9ec47b
Browse repository at this point
Test trying to cfg-remove an `if` expression
Aaron1011
committed
9a299e4
View commit details
Copy full SHA for 9a299e4
Browse repository at this point
Remove recovery test
Aaron1011
committed
b00f674
View commit details
Copy full SHA for b00f674
Browse repository at this point
Add run-pass test suggested by @joshtriplett
Aaron1011
committed
e11cdfd
View commit details
Copy full SHA for e11cdfd
Browse repository at this point
Move if-attr tests to their own directory
Aaron1011
committed
7f19358
View commit details
Copy full SHA for 7f19358
Browse repository at this point
Test that cfg-gated if-exprs are not type-checked
Aaron1011
committed
1b681d6
View commit details
Copy full SHA for 1b681d6
Browse repository at this point
Extent pretty-print test
Aaron1011
committed
37c2c38
View commit details
Copy full SHA for 37c2c38
Browse repository at this point
Fix tabs
Aaron1011
committed
66b152c
View commit details
Copy full SHA for 66b152c
Browse repository at this point
Update stderr
Aaron1011
committed
e50fd5a
View commit details
Copy full SHA for e50fd5a
Browse repository at this point
You can’t perform that action at this time.