Document how closure capturing interacts with discriminant reads
This is the behavior after the bugfixes in rust-lang/rust#138961. I have successfully ran mdbook test with RUSTUP_TOOLCHAIN pointed at a stage1 built on top of the aforementioned PR – until it's merged, the CI here will fail.
I've reworded the slice and range sections to not use the "discriminant read" term, do you think this is clearer?
This looks good for me, could someone with authority approve this plz?
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
Thanks. Reviewing.
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
This PR was in good shape. Thanks to @meithecatte for that and to @Nadrieril for the review of it. I've pushed some mostly editorial adjustments. Please have a look, of course, for any errors. I'll ask @ehuss to have a look at well on our lang-docs call. Overall, though, this is OK to go forward, so we can mark this as approved and unblock the underlying stabilization.
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
EDIT: nevermind, moved this to another issue