diff options
author | Alan Wu <[email protected]> | 2022-10-19 14:03:07 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-19 14:03:07 -0400 |
commit | 5ca23caa2057fc4760fbefab6087371b11c4bc6c (patch) | |
tree | b0456a0c659205843eb6d49693e7e823fc75f307 /yjit/src/cruby.rs | |
parent | bc939d293768acf9a21568ebe738b8fe5981038f (diff) |
YJIT: fold the "asm_comments" feature into "disasm" (#6591)
Previously, enabling only "disasm" didn't actually build. Since these
two features are closely related and we don't really use one without the
other, let's simplify and merge the two features together.
Notes
Notes:
Merged-By: maximecb <[email protected]>
Diffstat (limited to 'yjit/src/cruby.rs')
-rw-r--r-- | yjit/src/cruby.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/cruby.rs b/yjit/src/cruby.rs index f31390fc57..d3e4ba4757 100644 --- a/yjit/src/cruby.rs +++ b/yjit/src/cruby.rs @@ -510,7 +510,7 @@ impl From<VALUE> for u16 { } /// Produce a Ruby string from a Rust string slice -#[cfg(feature = "asm_comments")] +#[cfg(feature = "disasm")] pub fn rust_str_to_ruby(str: &str) -> VALUE { unsafe { rb_utf8_str_new(str.as_ptr() as *const _, str.len() as i64) } } |