rust/tests
Jubilee 5a8fcab713
Rollup merge of #130518 - scottmcm:stabilize-controlflow-extra, r=dtolnay
Stabilize the `map`/`value` methods on `ControlFlow`

And fix the stability attribute on the `pub use` in `core::ops`.

libs-api in https://github.com/rust-lang/rust/issues/75744#issuecomment-2231214910 seemed reasonably happy with naming for these, so let's try for an FCP.

Summary:
```rust
impl<B, C> ControlFlow<B, C> {
    pub fn break_value(self) -> Option<B>;
    pub fn map_break<T>(self, f: impl FnOnce(B) -> T) -> ControlFlow<T, C>;
    pub fn continue_value(self) -> Option<C>;
    pub fn map_continue<T>(self, f: impl FnOnce(C) -> T) -> ControlFlow<B, T>;
}
```

Resolves #75744

``@rustbot`` label +needs-fcp +t-libs-api -t-libs

---

Aside, in case it keeps someone else from going down the same dead end: I looked at the `{break,continue}_value` methods and tried to make them `const` as part of this, but that's disallowed because of not having `const Drop`, so put it back to not even unstably-const.
2024-10-04 14:11:34 -07:00
..
assembly Rollup merge of #130453 - randomPoison:trusty-x86, r=pnkfelix 2024-10-04 14:11:34 -07:00
auxiliary
codegen Avoid emptiness check in PeekMut::pop 2024-10-03 22:15:52 +08:00
codegen-units
coverage
coverage-run-rustdoc
crashes Rollup merge of #131187 - Zalathar:bad-attr-ice, r=jieyouxu 2024-10-03 21:52:46 +02:00
debuginfo
incremental
mir-opt Rollup merge of #130518 - scottmcm:stabilize-controlflow-extra, r=dtolnay 2024-10-04 14:11:34 -07:00
pretty
run-make Rollup merge of #126930 - Xaeroxe:file-checksum-hint, r=chenyukang 2024-10-02 21:26:58 -07:00
run-pass-valgrind
rustdoc
rustdoc-gui Enable --no-sandbox option by default for rustdoc GUI tests 2024-10-04 12:11:23 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui Auto merge of #131237 - GuillaumeGomez:rollup-il2i7z7, r=GuillaumeGomez 2024-10-04 15:28:24 +00:00
ui Rollup merge of #130518 - scottmcm:stabilize-controlflow-extra, r=dtolnay 2024-10-04 14:11:34 -07:00
ui-fulldeps
COMPILER_TESTS.md