Skip to content

Commit a076222

Browse files
committed
Review feedback.
1 parent 3c48653 commit a076222

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

crates/wasmtime/src/config.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,11 +2236,9 @@ impl Config {
22362236
bail!("wmemcheck (memory checker) was requested but is not enabled in this build");
22372237
}
22382238

2239-
#[cfg(feature = "gc")]
2240-
if self.enabled_features.contains(WasmFeatures::EXCEPTIONS)
2241-
&& self.disabled_features.contains(WasmFeatures::GC)
2242-
{
2243-
bail!("exceptions support requires garbage collection (GC) to be enabled");
2239+
#[cfg(not(feature = "gc"))]
2240+
if self.enabled_features.contains(WasmFeatures::EXCEPTIONS) {
2241+
bail!("exceptions support requires garbage collection (GC) to be enabled in the build");
22442242
}
22452243

22462244
let mut tunables = Tunables::default_for_target(&self.compiler_target())?;

0 commit comments

Comments
 (0)