rust/library/core
Jacob Pratt deb987b69d
Rollup merge of #138945 - DaniPopes:override-partialord-bool, r=scottmcm
Override PartialOrd methods for bool

I noticed that `PartialOrd` implementation for `bool` does not override the individual operator methods, unlike the other primitive types like `char` and integers.

This commit extracts these `PartialOrd` overrides shared by the other primitive types into a macro and calls it on `bool` too.

CC `@scottmcm` for our recent adventures in `PartialOrd` land
2025-03-25 20:34:50 -04:00
..
src Rollup merge of #138945 - DaniPopes:override-partialord-bool, r=scottmcm 2025-03-25 20:34:50 -04:00
Cargo.toml Migrate core to Rust 2024 2025-03-11 09:46:34 -07:00