Skip to content

Commit 1d67ab5

Browse files
committed
update rspirv: fix clippy lints
1 parent 06c1aec commit 1d67ab5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

crates/rustc_codegen_spirv/src/builder/spirv_asm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ impl<'cx, 'tcx> Builder<'cx, 'tcx> {
14121412
Ok(x) => inst.operands.push(dr::Operand::StoreCacheControl(x)),
14131413
Err(()) => self.err(format!("unknown StoreCacheControl {word}")),
14141414
},
1415-
(OperandKind::LiteralFloat, Some(word)) => todo!(),
1415+
(OperandKind::LiteralFloat, Some(_word)) => todo!(),
14161416
(kind, None) => match token {
14171417
Token::Word(_) => bug!(),
14181418
Token::String(_) => {

crates/rustc_codegen_spirv/src/builder_spirv.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,8 @@ impl<'tcx> BuilderSpirv<'tcx> {
583583
}
584584
let val = val_with_type.val;
585585
let id = match val {
586-
SpirvConst::U32(v) => builder.constant_bit32(ty, v),
587-
SpirvConst::U64(v) => builder.constant_bit64(ty, v),
588-
SpirvConst::F32(v) => builder.constant_bit32(ty, v),
589-
SpirvConst::F64(v) => builder.constant_bit64(ty, v),
586+
SpirvConst::U32(v) | SpirvConst::F32(v) => builder.constant_bit32(ty, v),
587+
SpirvConst::U64(v) | SpirvConst::F64(v) => builder.constant_bit64(ty, v),
590588
SpirvConst::Bool(v) => {
591589
if v {
592590
builder.constant_true(ty)

0 commit comments

Comments
 (0)