Skip to content

Commit e816e1b

Browse files
committed
Appease clippy
warning: field `0` is never read --> src/llvm/types/ir.rs:115:11 | 115 | Other(LLVMValueRef), | ----- ^^^^^^^^^^^^ | | | field in this variant | = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 115 | Other(()), | ~~ error: usage of a legacy numeric constant --> src/linker.rs:525:55 | 525 | format!("--unroll-max-upperbound={}", std::u32::MAX).into(), | ^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants note: the lint level is defined here --> src/lib.rs:1:9 | 1 | #![deny(clippy::all)] | ^^^^^^^^^^^ = note: `#[deny(clippy::legacy_numeric_constants)]` implied by `#[deny(clippy::all)]` help: use the associated constant instead | 525 | format!("--unroll-max-upperbound={}", u32::MAX).into(), | ~~~~~~~~ error: usage of a legacy numeric constant --> src/linker.rs:526:50 | 526 | format!("--unroll-threshold={}", std::u32::MAX).into(), | ^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 526 | format!("--unroll-threshold={}", u32::MAX).into(), | ~~~~~~~~
1 parent 511bcb1 commit e816e1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/linker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ impl Linker {
522522
args.extend([
523523
"--unroll-runtime".into(),
524524
"--unroll-runtime-multi-exit".into(),
525-
format!("--unroll-max-upperbound={}", std::u32::MAX).into(),
526-
format!("--unroll-threshold={}", std::u32::MAX).into(),
525+
format!("--unroll-max-upperbound={}", u32::MAX).into(),
526+
format!("--unroll-threshold={}", u32::MAX).into(),
527527
]);
528528
}
529529
if !self.options.disable_expand_memcpy_in_order {

src/llvm/types/ir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub enum Metadata<'ctx> {
112112
DICompositeType(DICompositeType<'ctx>),
113113
DIDerivedType(DIDerivedType<'ctx>),
114114
DISubprogram(DISubprogram<'ctx>),
115-
Other(LLVMValueRef),
115+
Other(#[allow(dead_code)] LLVMValueRef),
116116
}
117117

118118
impl<'ctx> Metadata<'ctx> {

0 commit comments

Comments
 (0)