about summary refs log tree commit diff
path: root/library/core/src/bool.rs
AgeCommit message (Collapse)AuthorLines
2025-06-19Add methods for converting bool to `Result<(), E>`LimpSquid-0/+67
2025-04-13Move `select_unpredictable` to the `hint` moduleAmanieu d'Antras-48/+0
2025-03-06Remove #[cfg(not(test))] gates in coreThalia Archibald-1/+1
These gates are unnecessary now that unit tests for `core` are in a separate package, `coretests`, instead of in the same files as the source code. They previously prevented the two `core` versions from conflicting with each other.
2025-01-04Rollup merge of #133964 - joboet:select_unpredictable, r=tgross35Matthias Krüger-0/+48
core: implement `bool::select_unpredictable` Tracking issue: #133962 ACP: https://github.com/rust-lang/libs-team/issues/468
2024-12-09core: improve commentsJonas Böttiger-3/+5
Co-authored-by: Yotam Ofek <yotam.ofek@gmail.com> Co-authored-by: Hanna Kruppe <hanna.kruppe@gmail.com>
2024-12-06core: implement `bool::select_unpredictable`joboet-0/+46
2024-12-03Add doc alias 'then_with' for `then` method on `bool`Ross MacArthur-0/+1
2024-09-19[Clippy] Swap `filter_map_bool_then` to use diagnostic item instead of pathGnomedDev-0/+1
2023-04-16core is now compilableDeadbeef-4/+2
2023-04-16rm const traits in libcoreDeadbeef-11/+2
2022-09-22Add missing assertionVenus Xeon-Blonde-0/+1
2022-09-21Remove trailing whitespaceVenus Xeon-Blonde-9/+9
Trailing whitespace seemed to be causing the CI checks to error out.
2022-09-21Add examples to `bool::then` and `bool::then_some`Venus Xeon-Blonde-0/+22
Added examples to `bool::then` and `bool::then_some` to show the distinction between the eager evaluation of `bool::then_some` and the lazy evaluation of `bool::then`.
2022-09-01Remove trailing whitespaceAdam-Gleave-4/+4
2022-09-01Document eager evaluation of `bool::then_some` argumentAdam-Gleave-0/+6
2022-05-04Stabilize `bool::then_some`Josh Triplett-3/+1
2022-04-05trivial cfg(bootstrap) changesPietro Albini-5/+2
2022-03-30remove now unnecessary lang itemslcnr-1/+1
2022-03-21Rename `~const Drop` to `~const Destruct`Deadbeef-2/+6
2021-12-15Constify `bool::then{,_some}`Deadbeef-2/+11
2021-09-12Add primitive documentation to libcoreJoshua Nelson-2/+4
This works by doing two things: - Adding links that are specific to the crate. Since not all primitive items are defined in `core` (due to lang_items), these need to use relative links and not intra-doc links. - Duplicating `primitive_docs` in both core and std. This allows not needing CARGO_PKG_NAME to build the standard library. It also adds a tidy check to make sure they stay the same.
2021-09-03Fix accidentally deleted partpatrick-gu-1/+1
2021-09-03Remove excessive linkingpatrick-gu-2/+2
2021-08-29Add links in docs for some primitive typespatrick-gu-2/+2
2021-07-10Fix tracking issue for `bool_to_option`Jacob Pratt-1/+1
2020-11-22Stabilise `then`varkor-3/+1
2020-07-27mv std libs to library/mark-0/+36