Skip to content
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

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

ChrisDenton
Copy link
Member

Closes #73212

@rust-highfive
Copy link
Collaborator

r? @yaahc

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 9, 2022
@yaahc
Copy link
Member

yaahc commented Mar 9, 2022

@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 unreachable expressions and the audience of such an error message would not be the person receiving it, so in practice the comment + the location from the panic is probably all we need.

@bors
Copy link
Contributor

bors commented Mar 9, 2022

📌 Commit 57442be has been approved by yaahc

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 9, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 9, 2022
Use `unreachable!` for an unreachable code path

Closes rust-lang#73212
@bors
Copy link
Contributor

bors commented Mar 9, 2022

⌛ Testing commit 57442be with merge f93e11eb342e6a90031af053090c41e53a2ce37f...

@Dylan-DPC
Copy link
Member

@bors retry (yield to rollup containing this pr)

@bors
Copy link
Contributor

bors commented Mar 9, 2022

⌛ Testing commit 57442be with merge 72f3846764bfe84608d0214597f0bb8dd36b67a5...

@rust-log-analyzer
Copy link
Collaborator

A job failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@Dylan-DPC
Copy link
Member

@bors retry

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 9, 2022
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
@bors bors merged commit 28d06bd into rust-lang:master Mar 9, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 9, 2022
@rust-log-analyzer
Copy link
Collaborator

A job failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@ChrisDenton ChrisDenton deleted the unreachable branch March 9, 2022 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

possible infinite loop in sys::windows::fill_utf16_buf
7 participants