We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bool
Option<bool>
1 parent fa4e260 commit a13ce58Copy full SHA for a13ce58
crates/rustc_codegen_spirv/src/abi.rs
@@ -249,7 +249,14 @@ pub(crate) fn provide(providers: &mut Providers) {
249
250
#[allow(clippy::match_like_matches_macro)]
251
let hide_niche = match ty.kind() {
252
- ty::Bool => true,
+ ty::Bool => {
253
+ // HACK(eddyb) we can't bypass e.g. `Option<bool>` being a byte,
254
+ // due to `core` PR https://github.com/rust-lang/rust/pull/138881
255
+ // (which adds a new `transmute`, from `ControlFlow<bool>` to `u8`).
256
+ let libcore_needs_bool_niche = true;
257
+
258
+ !libcore_needs_bool_niche
259
+ }
260
_ => false,
261
};
262
0 commit comments