]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #85645 - scottmcm:demote-from-into-try, r=yaahc
authorYuki Okushi <jtitor@2k36.org>
Wed, 26 May 2021 04:31:02 +0000 (13:31 +0900)
committerGitHub <noreply@github.com>
Wed, 26 May 2021 04:31:02 +0000 (13:31 +0900)
Demote `ControlFlow::{from|into}_try` to `pub(crate)`

They have mediocre names and non-obvious semantics, so personally I don't think they're worth trying to stabilize, and thus might as well just be internal (they're used for convenience in iterator adapters), not something shown in the rustdocs.

I don't think anyone actually wanted to use them outside `core` -- they just got made public-but-unstable along with the whole type in https://github.com/rust-lang/rust/pull/76204 that promoted `LoopState` from an internal type to the exposed `ControlFlow` type.

cc https://github.com/rust-lang/rust/issues/75744, the tracking issue they mention.
cc https://github.com/rust-lang/rust/pull/85608, the PR where I'm proposing stabilizing the type.

1  2 
library/core/src/ops/control_flow.rs

Simple merge