diff options
| author | Max Bernstein <rubybugs@bernsteinbear.com> | 2025-08-15 17:07:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-15 20:07:18 -0400 |
| commit | 26776ee91ab6045cc43c11b8022651572ad01e4c (patch) | |
| tree | cb30e51257e4f7075d55fb1821472241d8e3b15a | |
| parent | 11c8bad64b31c125b903547bb3eed0ede8f0f8e2 (diff) | |
ZJIT: Remove unused HIR test code (#14248)
| -rw-r--r-- | zjit/src/hir.rs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index c88965f891..20faf5398c 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -3798,40 +3798,6 @@ mod tests { use super::*; use expect_test::{expect, Expect}; - #[macro_export] - macro_rules! assert_matches { - ( $x:expr, $pat:pat ) => { - { - let val = $x; - if (!matches!(val, $pat)) { - eprintln!("{} ({:?}) does not match pattern {}", stringify!($x), val, stringify!($pat)); - assert!(false); - } - } - }; - } - - - #[track_caller] - fn assert_matches_value(insn: Option<&Insn>, val: VALUE) { - match insn { - Some(Insn::Const { val: Const::Value(spec) }) => { - assert_eq!(*spec, val); - } - _ => assert!(false, "Expected Const {val}, found {insn:?}"), - } - } - - #[track_caller] - fn assert_matches_const(insn: Option<&Insn>, expected: Const) { - match insn { - Some(Insn::Const { val }) => { - assert_eq!(*val, expected, "{val:?} does not match {expected:?}"); - } - _ => assert!(false, "Expected Const {expected:?}, found {insn:?}"), - } - } - #[track_caller] fn assert_method_hir(method: &str, hir: Expect) { let iseq = crate::cruby::with_rubyvm(|| get_method_iseq("self", method)); |
