Skip to content

Commit

Permalink
YJIT: Fix unread field lint in release builds
Browse files Browse the repository at this point in the history
```
warning: fields `blue_begin` and `blue_end` are never read
```
  • Loading branch information
XrXr committed Dec 11, 2024
1 parent 38c33b1 commit 71f1a0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions yjit/src/disasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion yjit/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down

0 comments on commit 71f1a0f

Please sign in to comment.