diff options
author | Ian Ker-Seymer <hello@ianks.com> | 2023-01-12 10:14:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 10:14:17 -0500 |
commit | 8d3ff663899211c9c0ca2a8cf7d994e7acd3f83e (patch) | |
tree | e5adcd4caac67e4e570183b13a17d49b4821d884 /yjit/src/asm | |
parent | bfc887f391fde6de9d088039509f6e3eaa40b3ca (diff) | |
download | ruby-8d3ff663899211c9c0ca2a8cf7d994e7acd3f83e.tar.gz |
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
Diffstat (limited to 'yjit/src/asm')
-rw-r--r-- | yjit/src/asm/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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() { |