rust-lang / rust-lang/reference
is a scrutinee always a place expression?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 607
- PR merge metrics
- PR metrics pending
Description
https://doc.rust-lang.org/stable/reference/expressions/match-expr.html says:
A match behaves differently depending on whether or not the scrutinee expression is a place expression or value expression.
And a little lower,
When the scrutinee expression is a place expression,
Let's click that link. It says:
The following contexts are place expression contexts:
...
The former implies it can be either, the latter implies it is always a place expression. I suspect that the wording of the latter is the one that's wrong.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the match-expression wording with the place-expression-context list in the Rust Reference, following the linked scrutinee and place/value-expression sections. Resolve whether the two statements are inconsistent and update the relevant wording so the conditions are unambiguous; the issue is done when the references agree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100