rust/library/coretests
Jonathan Brouwer 474c9fe9a4
Rollup merge of #151489 - bend-n:constify-all-boolean-methods-under-feature-gate-const-bool, r=jhpratt
constify boolean methods

```rs
// core::bool

impl bool {
    pub const fn then_some<T: [const] Destruct>(self, t: T) -> Option<T>;
    pub const fn then<T, F: [const] FnOnce() -> T + [const] Destruct>(self, f: F) -> Option<T>;
    pub const fn ok_or<E: [const] Destruct>(self, err: E) -> Result<(), E>;
    pub const fn ok_or_else<E, F: [const] FnOnce() -> E + [const] Destruct>;
}
```

will make tracking issue if pr liked
2026-01-24 08:18:07 +01:00
..
benches Use rand crate more idiomatically 2026-01-07 22:31:33 +02:00
tests Rollup merge of #151489 - bend-n:constify-all-boolean-methods-under-feature-gate-const-bool, r=jhpratt 2026-01-24 08:18:07 +01:00
Cargo.toml Move float tests from std to core 2025-05-13 22:22:15 +00:00
lib.rs Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00