Skip to content

Commit

Permalink
fix: Ignore unsupported test in miri
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Jan 8, 2024
1 parent 16dce1e commit 87a93ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hugr/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
// https://github.com/rust-lang/miri/issues/450
fn constants_roundtrip() -> Result<(), Box<dyn std::error::Error>> {
let mut builder = DFGBuilder::new(FunctionType::new(vec![], vec![FLOAT64_TYPE])).unwrap();
let w = builder.add_load_const(ConstF64::new(0.5))?;
Expand Down

0 comments on commit 87a93ba

Please sign in to comment.