diff --git a/yjit/src/disasm.rs b/yjit/src/disasm.rs index a505973331c548..4f85937ee9f0b7 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 3fcc40711c3064..9f7c70536966a8 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), }