Skip to content

[beta] backports - #165451

Open
JonathanBrouwer wants to merge 2 commits into
rust-lang:betafrom
JonathanBrouwer:beta-next
Open

JonathanBrouwer wants to merge 2 commits into
rust-lang:betafrom
JonathanBrouwer:beta-next

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

WaffleLapkin and others added 2 commits November 4, 2026 09:51
Previusly we had a disagreement between hir_typeck (assuming that
anything following the diverging constant is unreachable) and mir_build
(assuming we don't need to evaluate constants in `[...; 0]`).

This (temporarily) fixes this by making hir_typeck aware that such
constants should not affect divergence / reachibility analysis
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 4, 2026
@cuviper

cuviper commented Nov 4, 2026

Copy link
Copy Markdown
Member

Looks good, thanks!

@bors r+ rollup=never

@rust-bors

rust-bors Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 766a8ef has been approved by cuviper

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Nov 4, 2026

This branch has not been deployed

No deployments
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants