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

Reference not updated to describe disjoint capture in closures #97451

Closed
pali6 opened this issue May 27, 2022 · 2 comments
Closed

Reference not updated to describe disjoint capture in closures #97451

pali6 opened this issue May 27, 2022 · 2 comments
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@pali6
Copy link

pali6 commented May 27, 2022

The Capture Modes section of the Rust reference seems to predate the implementation of the capture disjoint fields RFS and says that composite types are always captured entirely which is no longer the case.


@rustbot modify labels: A-docs

@rustbot rustbot added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label May 27, 2022
@pali6
Copy link
Author

pali6 commented May 27, 2022

Whoops, I guess I should have made this in https://github.com/rust-lang/reference instead. Apologies, I was not aware it's a separate repo.

@ehuss
Copy link
Contributor

ehuss commented May 27, 2022

Thanks for the report! There is open work at rust-lang/reference#1059 to add the new information. Closing as a duplicate of rust-lang/reference#1066.

@ehuss ehuss closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

No branches or pull requests

3 participants