rust-lang / rust-lang/reference

Detail divergence for the rest of the expressions

Open
#2,152 0 comments 0 reactions 1 assignee View on GitHub

@ehuss is already working on this.

Since Feb 1, 2026.

A-divergence
Dominant language
Rust
Stars
1.6k
Forks
607
PR merge metrics
PR metrics pending

Description

https://github.com/rust-lang/reference/pull/2067 added a chapter on divergence with some rules for the divergence of some of the more tricky expressions like if or match. However, we were thinking of defining the behavior of some or all of the expressions explicitly. See https://github.com/rust-lang/reference/pull/2067#issuecomment-3782115579 for the discussion.

I have a draft where I am exploring how this is presented.

cc @jackh726

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.