Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Spark
Build and deploy intelligent apps
GitHub Models
Manage and compare prompts
MCP Registry
New
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
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
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
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
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
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
/
rust
Public
Notifications
You must be signed in to change notification settings
Fork
14.1k
Star
108k
Code
Issues
5k+
Pull requests
908
Actions
Projects
9
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Replace the default branch with an unreachable branch If it is the last variant
#120268
Merged
bors
merged 5 commits into
rust-lang:master
rust-lang/rust:master
from
dianqk:otherwise_is_last_variant_switchs
dianqk/rust:otherwise_is_last_variant_switchs
Copy head branch name to clipboard
Mar 8, 2024
Conversation
Commits
5
(5)
Checks
Files changed
Merged
Replace the default branch with an unreachable branch If it is the last variant
#120268
bors
merged 5 commits into
rust-lang:master
rust-lang/rust:master
from
dianqk:otherwise_is_last_variant_switchs
dianqk/rust:otherwise_is_last_variant_switchs
Copy head branch name to clipboard
Commits
Commits on Mar 7, 2024
Regenerate `uninhabited_enum_branching.rs`
dianqk
committed
d8b7b5b
Copy full SHA for d8b7b5b
Replace the default branch with an unreachable branch If it is the last variant
dianqk
committed
08ae838
Copy full SHA for 08ae838
Get all variants to eliminate the default branching if we cannot get the layout of type
dianqk
committed
3d7f8b4
Copy full SHA for 3d7f8b4
Commits on Mar 8, 2024
Update MIR with `MirPatch` in `UninhabitedEnumBranching`
dianqk
committed
b5bd98d
Copy full SHA for b5bd98d
Add a workaround for the `TailDuplicator` compile time overhead
dianqk
committed
2884230
Copy full SHA for 2884230
You can’t perform that action at this time.