From 8d3ff663899211c9c0ca2a8cf7d994e7acd3f83e Mon Sep 17 00:00:00 2001 From: Ian Ker-Seymer Date: Thu, 12 Jan 2023 10:14:17 -0500 Subject: Enable `clippy` checks for yjit in CI (#7093) * Add job to check clippy lints in CI * Address all remaining clippy lints * Check lints on arm64 as well * Apply latest clippy lints * Do not exit 0 on clippy warnings --- yjit/src/asm/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yjit/src/asm') diff --git a/yjit/src/asm/mod.rs b/yjit/src/asm/mod.rs index a5ef8dcf4f..648041bbab 100644 --- a/yjit/src/asm/mod.rs +++ b/yjit/src/asm/mod.rs @@ -283,6 +283,7 @@ impl CodeBlock { /// Return the address ranges of a given address range that this CodeBlock can write. #[cfg(any(feature = "disasm", target_arch = "aarch64"))] + #[allow(dead_code)] pub fn writable_addrs(&self, start_ptr: CodePtr, end_ptr: CodePtr) -> Vec<(usize, usize)> { // CodegenGlobals is not initialized when we write initial ocb code let freed_pages = if CodegenGlobals::has_instance() { @@ -356,6 +357,7 @@ impl CodeBlock { self.asm_comments.get(&pos) } + #[allow(unused_variables)] #[cfg(feature = "disasm")] pub fn remove_comments(&mut self, start_addr: CodePtr, end_addr: CodePtr) { for addr in start_addr.into_usize()..end_addr.into_usize() { -- cgit v1.2.3