summaryrefslogtreecommitdiff
path: root/yjit/src/cruby.rs
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-04-04 16:12:01 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2023-04-05 09:49:31 -0400
commit929d55c3c7d312a21e5691f9c6793450e2c617d1 (patch)
tree72c5bf21c9c83f77335c990157c063bd32e1d6dc /yjit/src/cruby.rs
parente003784fc8bfa527cf21c317741101a713c041c0 (diff)
downloadruby-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.rs2
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;