rust-lang / rust-lang/fls

Our closure capture chapter is wrong

Open
#427 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-closures C-enhancement S-waiting-on-author
Dominant language
reStructuredText
Stars
497
Forks
41
Avg merge
3h 52m
Merged PRs (30d)
4

Description

It was written with the old (pre-2021 edition) capturing rules in mind, rewriting it should also allow us to get rid of unique borrows which are not necessarily user facing

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.

Research direction

Search the specification for the closure capture chapter and compare its rules with the post-2021 Rust capturing behavior. Rewrite the chapter to reflect the current rules and remove discussion of unique borrows where they are not user-facing; the chapter should no longer describe the old pre-2021 model.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.