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

ControlFlow docs should explicitly mention that it works with ? #88715

Closed
matklad opened this issue Sep 7, 2021 · 1 comment · Fixed by #89446
Closed

ControlFlow docs should explicitly mention that it works with ? #88715

matklad opened this issue Sep 7, 2021 · 1 comment · Fixed by #89446
Assignees
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools

Comments

@matklad
Copy link
Member

matklad commented Sep 7, 2021

We stabilized ControlFlow: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html

That’s somewhat of a big deal, as it is now the third type (in addition to Option and Result), which works with ? operator on stable. This isn’t immediately obvious from the docs though!

@matklad matklad added the A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools label Sep 7, 2021
@chrismit3s
Copy link
Contributor

Will do!

@rustbot claim

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Oct 31, 2021
…riplett

Add paragraph to ControlFlow docs to menion it works with the ? operator (rust-lang#88715)

fixes rust-lang#88715

r? `@steveklabnik`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Oct 31, 2021
…riplett

Add paragraph to ControlFlow docs to menion it works with the ? operator (rust-lang#88715)

fixes rust-lang#88715

r? ``@steveklabnik``
bors added a commit to rust-lang-ci/rust that referenced this issue Oct 31, 2021
…askrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#89446 (Add paragraph to ControlFlow docs to menion it works with the ? operator (rust-lang#88715))
 - rust-lang#89677 (Stabilize `is_symlink()` for `Metadata` and `Path`)
 - rust-lang#89833 (Add #[must_use] to Rc::downgrade)
 - rust-lang#89835 (Add #[must_use] to expensive computations)
 - rust-lang#89839 (Add #[must_use] to mem/ptr functions)
 - rust-lang#89897 (Add #[must_use] to remaining core functions)
 - rust-lang#89951 (Stabilize `option_result_unwrap_unchecked`)
 - rust-lang#90427 (Add #[must_use] to alloc functions that would leak memory)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors closed this as completed in e7be8a2 Oct 31, 2021
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

Successfully merging a pull request may close this issue.

2 participants