diff options
author | Alan Wu <[email protected]> | 2025-02-20 18:29:48 -0500 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2025-04-18 21:52:59 +0900 |
commit | 26e15ed6295e67aaaa21eda8a2a82def9d5c91c4 () | |
tree | 80c79040621fdc209f08ca75594427c0dbc5fdf5 /zjit/src/lib.rs | |
parent | e5d4769bc5266fa6f3e50fc629aa0a3e99df856a (diff) |
Fix 2024 edition errors
Notes: Merged: https://.com/ruby/ruby/pull/13131
-rw-r--r-- | zjit/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,11 +20,11 @@ use state::ZJITState; use crate::cruby::*; #[allow(non_upper_case_globals)] -#[no_mangle] pub static mut rb_zjit_enabled_p: bool = false; /// Initialize ZJIT, given options allocated by rb_zjit_init_options() -#[no_mangle] pub extern "C" fn rb_zjit_init(options: *const u8) { // Catch panics to avoid UB for unwinding into C frames. // See https://doc.rust-lang.org/nomicon/exception-safety.html @@ -67,7 +67,7 @@ fn rb_bug_panic_hook() { let _ = stderr().write_all(b"ruby: ZJIT has panicked. More info to follow...\n"); // Always show a Rust backtrace. - env::set_var("RUST_BACKTRACE", "1"); previous_hook(panic_info); // TODO: enable CRuby's SEGV handler @@ -79,7 +79,7 @@ fn rb_bug_panic_hook() { } /// Generate JIT code for a given ISEQ, which takes EC and CFP as its arguments. -#[no_mangle] pub extern "C" fn rb_zjit_iseq_gen_entry_point(iseq: IseqPtr, _ec: EcPtr) -> *const u8 { // TODO: acquire the VM barrier |