From 68ff98b9f8c2403f0bef44176eeeea9aab7c14cf Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Mon, 8 Jan 2024 16:07:19 +0000 Subject: [PATCH] fix: Ignore unsupported test in miri --- src/hugr/serialize.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hugr/serialize.rs b/src/hugr/serialize.rs index 770b8c383..c127b2da2 100644 --- a/src/hugr/serialize.rs +++ b/src/hugr/serialize.rs @@ -483,6 +483,9 @@ pub mod test { } #[test] + #[cfg_attr(miri, ignore = "Extension ops cannot be used with miri.")] + // Miri doesn't run the extension registration required by `typetag` for registering `CustomConst`s. + // https://github.com/rust-lang/miri/issues/450 fn constants_roundtrip() -> Result<(), Box> { let mut builder = DFGBuilder::new(FunctionType::new(vec![], vec![FLOAT64_TYPE])).unwrap(); let w = builder.add_load_const(ConstF64::new(0.5))?;