-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use unreachable!
for an unreachable code path
#94756
Conversation
r? @yaahc (rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ I kinda wanted to put a more helpful error message here even though it's not supposed to be reachable, but it doesn't look like we do that with any of our other |
📌 Commit 57442be has been approved by |
Use `unreachable!` for an unreachable code path Closes rust-lang#73212
⌛ Testing commit 57442be with merge f93e11eb342e6a90031af053090c41e53a2ce37f... |
@bors retry (yield to rollup containing this pr) |
⌛ Testing commit 57442be with merge 72f3846764bfe84608d0214597f0bb8dd36b67a5... |
@bors retry |
Rollup of 6 pull requests Successful merges: - rust-lang#94312 (Edit `rustc_trait_selection::infer::lattice` docs) - rust-lang#94583 (Add a team for '`@rustbot` ping fuchsia') - rust-lang#94686 (Do not allow `#[rustc_legacy_const_generics]` on methods) - rust-lang#94699 (BTree: remove dead data needlessly complicating insert) - rust-lang#94756 (Use `unreachable!` for an unreachable code path) - rust-lang#94759 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Closes #73212