diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2023-04-04 16:12:01 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-04-05 09:49:31 -0400 |
commit | 929d55c3c7d312a21e5691f9c6793450e2c617d1 (patch) | |
tree | 72c5bf21c9c83f77335c990157c063bd32e1d6dc /yjit/src/cruby.rs | |
parent | e003784fc8bfa527cf21c317741101a713c041c0 (diff) | |
download | ruby-929d55c3c7d312a21e5691f9c6793450e2c617d1.tar.gz |
Revert "YJIT: Suppress unnecessary `unsafe` block (GH-7634)"
This reverts commit 9e678cdbd054f78576a8f21b3f97cccc395ade22.
Without the `unsafe` annotations, the SAFETY comments make less sense.
I want to keep the SAFETY comments.
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 3f5a76f157..5dd6cf5d69 100644 --- a/yjit/src/cruby.rs +++ b/yjit/src/cruby.rs @@ -614,7 +614,7 @@ macro_rules! obj_written { ($old: expr, $young: expr) => { let (old, young): (VALUE, VALUE) = ($old, $young); let src_loc = $crate::cruby::src_loc!(); - rb_yjit_obj_written(old, young, src_loc.file.as_ptr(), src_loc.line); + unsafe { rb_yjit_obj_written(old, young, src_loc.file.as_ptr(), src_loc.line) }; }; } pub(crate) use obj_written; |