summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2025-10-28 13:14:47 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2025-10-28 13:14:48 -0700
commit599de290a030927734eac93db66de18c653b6ed2 (patch)
tree9ba7d0beea3ee6a28126e7be21731a444ab81b78
parent882e16776866813e0df40e835b9f6cf1b5999d1c (diff)
YJIT, ZJIT: Fix unnecessary `use` of macros
https://github.com/ruby/ruby/actions/runs/18887695798/job/53907237061?pr=14975
-rw-r--r--yjit/src/stats.rs1
-rw-r--r--zjit/src/codegen.rs1
2 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs
index a53d23435b..817c842cf4 100644
--- a/yjit/src/stats.rs
+++ b/yjit/src/stats.rs
@@ -318,7 +318,6 @@ macro_rules! ptr_to_counter {
}
};
}
-pub(crate) use ptr_to_counter;
// Declare all the counters we track
make_counters! {
diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs
index 2b71be0e15..63b5b6cb52 100644
--- a/zjit/src/codegen.rs
+++ b/zjit/src/codegen.rs
@@ -2008,6 +2008,7 @@ macro_rules! c_callable {
extern "C" fn $f $args $(-> $ret)? $body
};
}
+#[cfg(test)]
pub(crate) use c_callable;
c_callable! {