4 ms·
A typical Rust bool would use `b1`, which doesn't have an observable representation.
by sunfish 8y ago
A typical Rust bool would use `b1`, which doesn't have an observable representation.
- sunfish 8y agoAlso, the [bint instruction](https://cranelift.readthedocs.io/en/latest/ir.html#inst-bint https://cranelift.readthedocs.io/en/latest/ir.html#inst-bint) converts a bool value to an integer 0 or 1.
- steveklabnik 8y agoWe did, eventually, after years, define it as a full byte though. https://github.com/rust-lang/rust/pull/46156 https://github.com/rust-lang/rust/pull/46156