diff options
author | Alan Wu <[email protected]> | 2024-12-11 16:45:23 -0500 |
---|---|---|
committer | Alan Wu <[email protected]> | 2024-12-11 17:44:43 -0500 |
commit | d53e4545f4754c789828cdf491df1eacf982d121 (patch) | |
tree | 6292712f64e80144af377ed9d27bd383fbf15c76 /yjit/src | |
parent | 9fe06cc03524dc528dc4563f1468912151224e85 (diff) |
YJIT: Fix unread field lint in release builds
```
warning: fields `blue_begin` and `blue_end` are never read
```
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12310
Diffstat (limited to 'yjit/src')
-rw-r--r-- | yjit/src/disasm.rs | 1 | ||||
-rw-r--r-- | yjit/src/options.rs | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/disasm.rs b/yjit/src/disasm.rs index a505973331..4f85937ee9 100644 --- a/yjit/src/disasm.rs +++ b/yjit/src/disasm.rs @@ -7,6 +7,7 @@ use crate::options::DumpDisasm; use std::fmt::Write; +#[cfg_attr(not(feature = "disasm"), allow(dead_code))] #[derive(Copy, Clone, Debug)] pub struct TerminalColor { pub blue_begin: &'static str, diff --git a/yjit/src/options.rs b/yjit/src/options.rs index 3fcc40711c..9f7c705369 100644 --- a/yjit/src/options.rs +++ b/yjit/src/options.rs @@ -152,7 +152,6 @@ pub enum DumpDisasm { // Dump to stdout Stdout, // Dump to "yjit_{pid}.log" file under the specified directory - #[cfg_attr(not(feature = "disasm"), allow(dead_code))] File(std::os::unix::io::RawFd), } |