Skip to content

Commit 8fe886c

Browse files
committed
cfg-guard WasmInteger::wrapping_neg
1 parent d640342 commit 8fe886c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • crates/wasmi/src/engine/translator

crates/wasmi/src/engine/translator/utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ pub trait WasmInteger:
6161
fn is_zero(self) -> bool;
6262

6363
/// Returns the wrapped negated `self`.
64+
#[cfg(feature = "experimental-translator")]
6465
fn wrapping_neg(self) -> Self;
6566
}
6667

@@ -78,6 +79,7 @@ macro_rules! impl_wasm_integer {
7879
self == 0
7980
}
8081

82+
#[cfg(feature = "experimental-translator")]
8183
fn wrapping_neg(self) -> Self {
8284
Self::wrapping_neg(self)
8385
}

0 commit comments

Comments
 (0)