Skip to content

Commit 1fcfc40

Browse files
committed
Fix typos
1 parent 568a83b commit 1fcfc40

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

tests/all/rr.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use wasmtime::{
77
ReplaySettings, Store,
88
};
99

10-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
10+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
1111
use wasmtime::component::{Component, HasSelf, Linker as ComponentLinker, bindgen};
1212

1313
struct TestState;
@@ -150,7 +150,7 @@ where
150150
}
151151

152152
/// Run a component test with recording and replay, testing both with and without validation
153-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
153+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
154154
fn run_component_test<F, R>(component_wat: &str, setup_linker: F, test_fn: R) -> Result<()>
155155
where
156156
F: Fn(&mut ComponentLinker<TestState>) -> Result<()> + Clone,
@@ -190,7 +190,7 @@ where
190190
}
191191

192192
/// Run a component test with recording and replay with specified validation setting
193-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
193+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
194194
async fn run_component_test_with_validation<F, R>(
195195
component_wat: &str,
196196
setup_linker: F,
@@ -436,7 +436,7 @@ fn test_recording_panics_for_core_module_memory_export() {
436436
// Few Parameters and Few Results (not exceeding MAX_FLAT_PARAMS=16 and
437437
// MAX_FLAT_RESULTS=1)
438438
#[test]
439-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
439+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
440440
fn test_component_under_max_params_results() -> Result<()> {
441441
mod test {
442442
use super::*;
@@ -545,7 +545,7 @@ fn test_component_under_max_params_results() -> Result<()> {
545545

546546
// Large Record (exceeding MAX_FLAT_PARAMS=16 and MAX_FLAT_RESULTS=1)
547547
#[test]
548-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
548+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
549549
fn test_component_over_max_params_results() -> Result<()> {
550550
mod test {
551551
use super::*;
@@ -709,7 +709,7 @@ fn test_component_over_max_params_results() -> Result<()> {
709709
}
710710

711711
#[test]
712-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
712+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
713713
fn test_component_tuple() -> Result<()> {
714714
mod test {
715715
use super::*;
@@ -805,7 +805,7 @@ fn test_component_tuple() -> Result<()> {
805805
}
806806

807807
#[test]
808-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
808+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
809809
fn test_component_string() -> Result<()> {
810810
mod test {
811811
use super::*;
@@ -904,7 +904,7 @@ fn test_component_string() -> Result<()> {
904904
}
905905

906906
#[test]
907-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
907+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
908908
fn test_component_variant() -> Result<()> {
909909
mod test {
910910
use super::*;
@@ -1019,7 +1019,7 @@ fn test_component_variant() -> Result<()> {
10191019
}
10201020

10211021
#[test]
1022-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
1022+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
10231023
fn test_component_result() -> Result<()> {
10241024
mod test {
10251025
use super::*;
@@ -1156,7 +1156,7 @@ fn test_component_result() -> Result<()> {
11561156
}
11571157

11581158
#[test]
1159-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
1159+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
11601160
fn test_component_list() -> Result<()> {
11611161
mod test {
11621162
use super::*;
@@ -1286,7 +1286,7 @@ fn test_component_list() -> Result<()> {
12861286
}
12871287

12881288
#[test]
1289-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
1289+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
12901290
fn test_component_option() -> Result<()> {
12911291
mod test {
12921292
use super::*;
@@ -1406,7 +1406,7 @@ fn test_component_option() -> Result<()> {
14061406
test::run()
14071407
}
14081408

1409-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
1409+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
14101410
#[test]
14111411
fn test_component_builtins() -> Result<()> {
14121412
run_component_test(
@@ -1511,7 +1511,7 @@ fn test_component_builtins() -> Result<()> {
15111511
)
15121512
}
15131513

1514-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
1514+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
15151515
fn cabi_realloc_wat() -> String {
15161516
r#"
15171517
(global $bump (mut i32) (i32.const 256))
@@ -1539,7 +1539,7 @@ fn cabi_realloc_wat() -> String {
15391539
"#.to_string()
15401540
}
15411541

1542-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
1542+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
15431543
fn shims_wat(params: &str) -> String {
15441544
let count = params.split_whitespace().count();
15451545
let locals_get = (0..count)
@@ -1565,7 +1565,7 @@ fn shims_wat(params: &str) -> String {
15651565
)
15661566
}
15671567

1568-
#[cfg(all(feature = "component-model", feature = "component-model-async"))]
1568+
#[cfg(all(feature = "component-model", not(feature = "component-model-async")))]
15691569
fn instantiation_wat(core_name: &str, lift_sig: &str) -> String {
15701570
format!(
15711571
r#"

0 commit comments

Comments
 (0)