From 13149c4ebd75773a0d7bbea42abb15af1e9445d5 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Mon, 22 Jun 2026 20:46:21 -0400 Subject: [PATCH 1/2] Hint generics in add_to_linker_instance This fixes compilation with the new trait solver (probably an upstream bug, haven't checked, but this is a trivial workaround). See compilation failure here: https://github.com/rust-lang/rust/pull/157590#issuecomment-4772783906 --- crates/wit-bindgen/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/wit-bindgen/src/lib.rs b/crates/wit-bindgen/src/lib.rs index a3f409fff891..92e2d170bd62 100644 --- a/crates/wit-bindgen/src/lib.rs +++ b/crates/wit-bindgen/src/lib.rs @@ -2660,7 +2660,7 @@ pub fn add_to_linker( T: 'static {opt_t_send_bound}, {{ let mut inst = linker.instance(\"{name}\")?; - add_to_linker_instance(&mut inst, {options_param_forward} host_getter) + add_to_linker_instance::(&mut inst, {options_param_forward} host_getter) }} " ); From 963d82768f93398df11ccb8a5922a08571773164 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Mon, 22 Jun 2026 20:48:58 -0400 Subject: [PATCH 2/2] Fix fallout in tests from additional hinting --- crates/component-macro/tests/expanded/char.rs | 2 +- crates/component-macro/tests/expanded/char_async.rs | 2 +- .../tests/expanded/char_concurrent.rs | 2 +- .../tests/expanded/char_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/conventions.rs | 2 +- .../tests/expanded/conventions_async.rs | 2 +- .../tests/expanded/conventions_concurrent.rs | 2 +- .../tests/expanded/conventions_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/dead-code.rs | 4 ++-- .../tests/expanded/dead-code_async.rs | 4 ++-- .../tests/expanded/dead-code_concurrent.rs | 4 ++-- .../tests/expanded/dead-code_tracing_async.rs | 4 ++-- crates/component-macro/tests/expanded/flags.rs | 2 +- crates/component-macro/tests/expanded/flags_async.rs | 2 +- .../tests/expanded/flags_concurrent.rs | 2 +- .../tests/expanded/flags_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/floats.rs | 2 +- .../component-macro/tests/expanded/floats_async.rs | 2 +- .../tests/expanded/floats_concurrent.rs | 2 +- .../tests/expanded/floats_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/implements.rs | 2 +- .../tests/expanded/implements_async.rs | 2 +- .../tests/expanded/implements_concurrent.rs | 2 +- .../tests/expanded/implements_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/integers.rs | 2 +- .../component-macro/tests/expanded/integers_async.rs | 2 +- .../tests/expanded/integers_concurrent.rs | 2 +- .../tests/expanded/integers_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/lists.rs | 2 +- crates/component-macro/tests/expanded/lists_async.rs | 2 +- .../tests/expanded/lists_concurrent.rs | 2 +- .../tests/expanded/lists_tracing_async.rs | 2 +- .../component-macro/tests/expanded/many-arguments.rs | 2 +- .../tests/expanded/many-arguments_async.rs | 2 +- .../tests/expanded/many-arguments_concurrent.rs | 2 +- .../tests/expanded/many-arguments_tracing_async.rs | 2 +- .../component-macro/tests/expanded/multiversion.rs | 4 ++-- .../tests/expanded/multiversion_async.rs | 4 ++-- .../tests/expanded/multiversion_concurrent.rs | 4 ++-- .../tests/expanded/multiversion_tracing_async.rs | 4 ++-- crates/component-macro/tests/expanded/path1.rs | 2 +- crates/component-macro/tests/expanded/path1_async.rs | 2 +- .../tests/expanded/path1_concurrent.rs | 2 +- .../tests/expanded/path1_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/path2.rs | 2 +- crates/component-macro/tests/expanded/path2_async.rs | 2 +- .../tests/expanded/path2_concurrent.rs | 2 +- .../tests/expanded/path2_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/records.rs | 2 +- .../component-macro/tests/expanded/records_async.rs | 2 +- .../tests/expanded/records_concurrent.rs | 2 +- .../tests/expanded/records_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/rename.rs | 4 ++-- .../component-macro/tests/expanded/rename_async.rs | 4 ++-- .../tests/expanded/rename_concurrent.rs | 4 ++-- .../tests/expanded/rename_tracing_async.rs | 4 ++-- .../tests/expanded/resources-export.rs | 2 +- .../tests/expanded/resources-export_async.rs | 2 +- .../tests/expanded/resources-export_concurrent.rs | 2 +- .../tests/expanded/resources-export_tracing_async.rs | 2 +- .../tests/expanded/resources-import.rs | 12 ++++++------ .../tests/expanded/resources-import_async.rs | 12 ++++++------ .../tests/expanded/resources-import_concurrent.rs | 12 ++++++------ .../tests/expanded/resources-import_tracing_async.rs | 12 ++++++------ crates/component-macro/tests/expanded/share-types.rs | 4 ++-- .../tests/expanded/share-types_async.rs | 4 ++-- .../tests/expanded/share-types_concurrent.rs | 4 ++-- .../tests/expanded/share-types_tracing_async.rs | 4 ++-- .../tests/expanded/simple-functions.rs | 2 +- .../tests/expanded/simple-functions_async.rs | 2 +- .../tests/expanded/simple-functions_concurrent.rs | 2 +- .../tests/expanded/simple-functions_tracing_async.rs | 2 +- .../component-macro/tests/expanded/simple-lists.rs | 2 +- .../tests/expanded/simple-lists_async.rs | 2 +- .../tests/expanded/simple-lists_concurrent.rs | 2 +- .../tests/expanded/simple-lists_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/simple-wasi.rs | 4 ++-- .../tests/expanded/simple-wasi_async.rs | 4 ++-- .../tests/expanded/simple-wasi_concurrent.rs | 4 ++-- .../tests/expanded/simple-wasi_tracing_async.rs | 4 ++-- .../tests/expanded/small-anonymous.rs | 2 +- .../tests/expanded/small-anonymous_async.rs | 2 +- .../tests/expanded/small-anonymous_concurrent.rs | 2 +- .../tests/expanded/small-anonymous_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/smoke.rs | 2 +- crates/component-macro/tests/expanded/smoke_async.rs | 2 +- .../tests/expanded/smoke_concurrent.rs | 2 +- .../tests/expanded/smoke_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/strings.rs | 2 +- .../component-macro/tests/expanded/strings_async.rs | 2 +- .../tests/expanded/strings_concurrent.rs | 2 +- .../tests/expanded/strings_tracing_async.rs | 2 +- .../tests/expanded/unstable-features.rs | 2 +- .../tests/expanded/unstable-features_async.rs | 2 +- .../tests/expanded/unstable-features_concurrent.rs | 2 +- .../expanded/unstable-features_tracing_async.rs | 2 +- .../tests/expanded/unversioned-foo.rs | 2 +- .../tests/expanded/unversioned-foo_async.rs | 2 +- .../tests/expanded/unversioned-foo_concurrent.rs | 2 +- .../tests/expanded/unversioned-foo_tracing_async.rs | 2 +- crates/component-macro/tests/expanded/use-paths.rs | 8 ++++---- .../tests/expanded/use-paths_async.rs | 8 ++++---- .../tests/expanded/use-paths_concurrent.rs | 8 ++++---- .../tests/expanded/use-paths_tracing_async.rs | 8 ++++---- crates/component-macro/tests/expanded/variants.rs | 2 +- .../component-macro/tests/expanded/variants_async.rs | 2 +- .../tests/expanded/variants_concurrent.rs | 2 +- .../tests/expanded/variants_tracing_async.rs | 2 +- .../tests/expanded/worlds-with-types.rs | 2 +- .../tests/expanded/worlds-with-types_async.rs | 2 +- .../tests/expanded/worlds-with-types_concurrent.rs | 2 +- .../expanded/worlds-with-types_tracing_async.rs | 2 +- 112 files changed, 164 insertions(+), 164 deletions(-) diff --git a/crates/component-macro/tests/expanded/char.rs b/crates/component-macro/tests/expanded/char.rs index fde91d332db7..635751d0d06f 100644 --- a/crates/component-macro/tests/expanded/char.rs +++ b/crates/component-macro/tests/expanded/char.rs @@ -250,7 +250,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/chars")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/char_async.rs b/crates/component-macro/tests/expanded/char_async.rs index 7b7d4f3ae16c..44bb85171323 100644 --- a/crates/component-macro/tests/expanded/char_async.rs +++ b/crates/component-macro/tests/expanded/char_async.rs @@ -264,7 +264,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/chars")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/char_concurrent.rs b/crates/component-macro/tests/expanded/char_concurrent.rs index 9a745b72a962..999e0a3ee707 100644 --- a/crates/component-macro/tests/expanded/char_concurrent.rs +++ b/crates/component-macro/tests/expanded/char_concurrent.rs @@ -258,7 +258,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/chars")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/char_tracing_async.rs b/crates/component-macro/tests/expanded/char_tracing_async.rs index 891e0f85192c..a3f1a866e7d0 100644 --- a/crates/component-macro/tests/expanded/char_tracing_async.rs +++ b/crates/component-macro/tests/expanded/char_tracing_async.rs @@ -293,7 +293,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/chars")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/conventions.rs b/crates/component-macro/tests/expanded/conventions.rs index 670b48ce2ab4..dd4ce7d70f51 100644 --- a/crates/component-macro/tests/expanded/conventions.rs +++ b/crates/component-macro/tests/expanded/conventions.rs @@ -412,7 +412,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/conventions")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/conventions_async.rs b/crates/component-macro/tests/expanded/conventions_async.rs index 20b02e2e46e0..3d4ecc125a5d 100644 --- a/crates/component-macro/tests/expanded/conventions_async.rs +++ b/crates/component-macro/tests/expanded/conventions_async.rs @@ -470,7 +470,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/conventions")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/conventions_concurrent.rs b/crates/component-macro/tests/expanded/conventions_concurrent.rs index 59cbdb329054..3634137dc4f6 100644 --- a/crates/component-macro/tests/expanded/conventions_concurrent.rs +++ b/crates/component-macro/tests/expanded/conventions_concurrent.rs @@ -491,7 +491,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/conventions")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/conventions_tracing_async.rs b/crates/component-macro/tests/expanded/conventions_tracing_async.rs index 10af96de4097..a7bcb1788130 100644 --- a/crates/component-macro/tests/expanded/conventions_tracing_async.rs +++ b/crates/component-macro/tests/expanded/conventions_tracing_async.rs @@ -630,7 +630,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/conventions")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/dead-code.rs b/crates/component-macro/tests/expanded/dead-code.rs index e532b80972a1..0482e045e425 100644 --- a/crates/component-macro/tests/expanded/dead-code.rs +++ b/crates/component-macro/tests/expanded/dead-code.rs @@ -247,7 +247,7 @@ pub mod a { T: 'static, { let mut inst = linker.instance("a:b/interface-with-live-type")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -332,7 +332,7 @@ pub mod a { T: 'static, { let mut inst = linker.instance("a:b/interface-with-dead-type")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/dead-code_async.rs b/crates/component-macro/tests/expanded/dead-code_async.rs index e605015e460b..53c179477784 100644 --- a/crates/component-macro/tests/expanded/dead-code_async.rs +++ b/crates/component-macro/tests/expanded/dead-code_async.rs @@ -251,7 +251,7 @@ pub mod a { T: 'static + Send, { let mut inst = linker.instance("a:b/interface-with-live-type")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -336,7 +336,7 @@ pub mod a { T: 'static, { let mut inst = linker.instance("a:b/interface-with-dead-type")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/dead-code_concurrent.rs b/crates/component-macro/tests/expanded/dead-code_concurrent.rs index 818c296a4d24..31a9723cab91 100644 --- a/crates/component-macro/tests/expanded/dead-code_concurrent.rs +++ b/crates/component-macro/tests/expanded/dead-code_concurrent.rs @@ -249,7 +249,7 @@ pub mod a { T: 'static + Send, { let mut inst = linker.instance("a:b/interface-with-live-type")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -334,7 +334,7 @@ pub mod a { T: 'static, { let mut inst = linker.instance("a:b/interface-with-dead-type")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/dead-code_tracing_async.rs b/crates/component-macro/tests/expanded/dead-code_tracing_async.rs index 4273ea697d7a..51beeb97c731 100644 --- a/crates/component-macro/tests/expanded/dead-code_tracing_async.rs +++ b/crates/component-macro/tests/expanded/dead-code_tracing_async.rs @@ -264,7 +264,7 @@ pub mod a { T: 'static + Send, { let mut inst = linker.instance("a:b/interface-with-live-type")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -349,7 +349,7 @@ pub mod a { T: 'static, { let mut inst = linker.instance("a:b/interface-with-dead-type")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/flags.rs b/crates/component-macro/tests/expanded/flags.rs index 606b42d45da7..5e703b3111c3 100644 --- a/crates/component-macro/tests/expanded/flags.rs +++ b/crates/component-macro/tests/expanded/flags.rs @@ -438,7 +438,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/flegs")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/flags_async.rs b/crates/component-macro/tests/expanded/flags_async.rs index 21f6381ec668..4bb9fc7807be 100644 --- a/crates/component-macro/tests/expanded/flags_async.rs +++ b/crates/component-macro/tests/expanded/flags_async.rs @@ -494,7 +494,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/flegs")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/flags_concurrent.rs b/crates/component-macro/tests/expanded/flags_concurrent.rs index eeb3ef4da4ab..41452ddcf99e 100644 --- a/crates/component-macro/tests/expanded/flags_concurrent.rs +++ b/crates/component-macro/tests/expanded/flags_concurrent.rs @@ -496,7 +496,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/flegs")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/flags_tracing_async.rs b/crates/component-macro/tests/expanded/flags_tracing_async.rs index d9ed5583f533..edef3ee52f20 100644 --- a/crates/component-macro/tests/expanded/flags_tracing_async.rs +++ b/crates/component-macro/tests/expanded/flags_tracing_async.rs @@ -606,7 +606,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/flegs")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/floats.rs b/crates/component-macro/tests/expanded/floats.rs index 6e0e11ae9380..0c832c817c3d 100644 --- a/crates/component-macro/tests/expanded/floats.rs +++ b/crates/component-macro/tests/expanded/floats.rs @@ -269,7 +269,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/floats")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/floats_async.rs b/crates/component-macro/tests/expanded/floats_async.rs index 4b1989e9cdc7..37bc1530cd1e 100644 --- a/crates/component-macro/tests/expanded/floats_async.rs +++ b/crates/component-macro/tests/expanded/floats_async.rs @@ -297,7 +297,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/floats")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/floats_concurrent.rs b/crates/component-macro/tests/expanded/floats_concurrent.rs index 3e26d4fca17b..6a2b8be8a474 100644 --- a/crates/component-macro/tests/expanded/floats_concurrent.rs +++ b/crates/component-macro/tests/expanded/floats_concurrent.rs @@ -294,7 +294,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/floats")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/floats_tracing_async.rs b/crates/component-macro/tests/expanded/floats_tracing_async.rs index d06e6764b52b..a11a5146268c 100644 --- a/crates/component-macro/tests/expanded/floats_tracing_async.rs +++ b/crates/component-macro/tests/expanded/floats_tracing_async.rs @@ -355,7 +355,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/floats")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/implements.rs b/crates/component-macro/tests/expanded/implements.rs index 9021c7ee6863..627c59c820f3 100644 --- a/crates/component-macro/tests/expanded/implements.rs +++ b/crates/component-macro/tests/expanded/implements.rs @@ -267,7 +267,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/store")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/implements_async.rs b/crates/component-macro/tests/expanded/implements_async.rs index cb4eb0541fb7..abc8fc1df6e6 100644 --- a/crates/component-macro/tests/expanded/implements_async.rs +++ b/crates/component-macro/tests/expanded/implements_async.rs @@ -276,7 +276,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/store")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/implements_concurrent.rs b/crates/component-macro/tests/expanded/implements_concurrent.rs index 99e264e6d29a..175d020e6175 100644 --- a/crates/component-macro/tests/expanded/implements_concurrent.rs +++ b/crates/component-macro/tests/expanded/implements_concurrent.rs @@ -268,7 +268,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/store")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/implements_tracing_async.rs b/crates/component-macro/tests/expanded/implements_tracing_async.rs index f71d3500b5b4..52f4b1900486 100644 --- a/crates/component-macro/tests/expanded/implements_tracing_async.rs +++ b/crates/component-macro/tests/expanded/implements_tracing_async.rs @@ -308,7 +308,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/store")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/integers.rs b/crates/component-macro/tests/expanded/integers.rs index 7e2bc7e6ac2d..000ec6dbb328 100644 --- a/crates/component-macro/tests/expanded/integers.rs +++ b/crates/component-macro/tests/expanded/integers.rs @@ -479,7 +479,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/integers")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/integers_async.rs b/crates/component-macro/tests/expanded/integers_async.rs index 5c0c6bea6c3b..0a3b062ce64e 100644 --- a/crates/component-macro/tests/expanded/integers_async.rs +++ b/crates/component-macro/tests/expanded/integers_async.rs @@ -568,7 +568,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/integers")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/integers_concurrent.rs b/crates/component-macro/tests/expanded/integers_concurrent.rs index de83fa322b2f..1c342b33a2bb 100644 --- a/crates/component-macro/tests/expanded/integers_concurrent.rs +++ b/crates/component-macro/tests/expanded/integers_concurrent.rs @@ -589,7 +589,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/integers")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/integers_tracing_async.rs b/crates/component-macro/tests/expanded/integers_tracing_async.rs index 8174176e00aa..9560fb9560b1 100644 --- a/crates/component-macro/tests/expanded/integers_tracing_async.rs +++ b/crates/component-macro/tests/expanded/integers_tracing_async.rs @@ -833,7 +833,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/integers")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/lists.rs b/crates/component-macro/tests/expanded/lists.rs index aba83e345378..39be10815fc5 100644 --- a/crates/component-macro/tests/expanded/lists.rs +++ b/crates/component-macro/tests/expanded/lists.rs @@ -955,7 +955,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/lists")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/lists_async.rs b/crates/component-macro/tests/expanded/lists_async.rs index 70e89cae549a..dd456d9043c7 100644 --- a/crates/component-macro/tests/expanded/lists_async.rs +++ b/crates/component-macro/tests/expanded/lists_async.rs @@ -1121,7 +1121,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/lists")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/lists_concurrent.rs b/crates/component-macro/tests/expanded/lists_concurrent.rs index 61e8416e5465..1ffadfca0808 100644 --- a/crates/component-macro/tests/expanded/lists_concurrent.rs +++ b/crates/component-macro/tests/expanded/lists_concurrent.rs @@ -1105,7 +1105,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/lists")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/lists_tracing_async.rs b/crates/component-macro/tests/expanded/lists_tracing_async.rs index 175091fe5f15..b069b165f45d 100644 --- a/crates/component-macro/tests/expanded/lists_tracing_async.rs +++ b/crates/component-macro/tests/expanded/lists_tracing_async.rs @@ -1552,7 +1552,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/lists")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/many-arguments.rs b/crates/component-macro/tests/expanded/many-arguments.rs index 142fdf264f3f..e3ffcc1a08b6 100644 --- a/crates/component-macro/tests/expanded/many-arguments.rs +++ b/crates/component-macro/tests/expanded/many-arguments.rs @@ -438,7 +438,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/manyarg")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/many-arguments_async.rs b/crates/component-macro/tests/expanded/many-arguments_async.rs index 6151e121dc17..b52ac4244829 100644 --- a/crates/component-macro/tests/expanded/many-arguments_async.rs +++ b/crates/component-macro/tests/expanded/many-arguments_async.rs @@ -452,7 +452,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/manyarg")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/many-arguments_concurrent.rs b/crates/component-macro/tests/expanded/many-arguments_concurrent.rs index 3b1753305c09..3bc59456f76a 100644 --- a/crates/component-macro/tests/expanded/many-arguments_concurrent.rs +++ b/crates/component-macro/tests/expanded/many-arguments_concurrent.rs @@ -414,7 +414,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/manyarg")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/many-arguments_tracing_async.rs b/crates/component-macro/tests/expanded/many-arguments_tracing_async.rs index 1cefd9c94a3d..c0e476cedc75 100644 --- a/crates/component-macro/tests/expanded/many-arguments_tracing_async.rs +++ b/crates/component-macro/tests/expanded/many-arguments_tracing_async.rs @@ -495,7 +495,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/manyarg")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/multiversion.rs b/crates/component-macro/tests/expanded/multiversion.rs index 69021787e8f1..c2ad470cab91 100644 --- a/crates/component-macro/tests/expanded/multiversion.rs +++ b/crates/component-macro/tests/expanded/multiversion.rs @@ -242,7 +242,7 @@ pub mod my { T: 'static, { let mut inst = linker.instance("my:dep/a@0.1.0")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -293,7 +293,7 @@ pub mod my { T: 'static, { let mut inst = linker.instance("my:dep/a@0.2.0")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/multiversion_async.rs b/crates/component-macro/tests/expanded/multiversion_async.rs index 865e6daeb694..23c44416a011 100644 --- a/crates/component-macro/tests/expanded/multiversion_async.rs +++ b/crates/component-macro/tests/expanded/multiversion_async.rs @@ -245,7 +245,7 @@ pub mod my { T: 'static + Send, { let mut inst = linker.instance("my:dep/a@0.1.0")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -298,7 +298,7 @@ pub mod my { T: 'static + Send, { let mut inst = linker.instance("my:dep/a@0.2.0")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/multiversion_concurrent.rs b/crates/component-macro/tests/expanded/multiversion_concurrent.rs index 068971a10711..08eeb156ebec 100644 --- a/crates/component-macro/tests/expanded/multiversion_concurrent.rs +++ b/crates/component-macro/tests/expanded/multiversion_concurrent.rs @@ -245,7 +245,7 @@ pub mod my { T: 'static + Send, { let mut inst = linker.instance("my:dep/a@0.1.0")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -298,7 +298,7 @@ pub mod my { T: 'static + Send, { let mut inst = linker.instance("my:dep/a@0.2.0")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/multiversion_tracing_async.rs b/crates/component-macro/tests/expanded/multiversion_tracing_async.rs index 05084569c0e3..51b11289adb3 100644 --- a/crates/component-macro/tests/expanded/multiversion_tracing_async.rs +++ b/crates/component-macro/tests/expanded/multiversion_tracing_async.rs @@ -258,7 +258,7 @@ pub mod my { T: 'static + Send, { let mut inst = linker.instance("my:dep/a@0.1.0")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -324,7 +324,7 @@ pub mod my { T: 'static + Send, { let mut inst = linker.instance("my:dep/a@0.2.0")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/path1.rs b/crates/component-macro/tests/expanded/path1.rs index 63081ed44e30..2d79f6bfda7c 100644 --- a/crates/component-macro/tests/expanded/path1.rs +++ b/crates/component-macro/tests/expanded/path1.rs @@ -208,7 +208,7 @@ pub mod paths { T: 'static, { let mut inst = linker.instance("paths:path1/test")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/path1_async.rs b/crates/component-macro/tests/expanded/path1_async.rs index 79bd31796de3..f08090ed8c94 100644 --- a/crates/component-macro/tests/expanded/path1_async.rs +++ b/crates/component-macro/tests/expanded/path1_async.rs @@ -208,7 +208,7 @@ pub mod paths { T: 'static, { let mut inst = linker.instance("paths:path1/test")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/path1_concurrent.rs b/crates/component-macro/tests/expanded/path1_concurrent.rs index 79bd31796de3..f08090ed8c94 100644 --- a/crates/component-macro/tests/expanded/path1_concurrent.rs +++ b/crates/component-macro/tests/expanded/path1_concurrent.rs @@ -208,7 +208,7 @@ pub mod paths { T: 'static, { let mut inst = linker.instance("paths:path1/test")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/path1_tracing_async.rs b/crates/component-macro/tests/expanded/path1_tracing_async.rs index 79bd31796de3..f08090ed8c94 100644 --- a/crates/component-macro/tests/expanded/path1_tracing_async.rs +++ b/crates/component-macro/tests/expanded/path1_tracing_async.rs @@ -208,7 +208,7 @@ pub mod paths { T: 'static, { let mut inst = linker.instance("paths:path1/test")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/path2.rs b/crates/component-macro/tests/expanded/path2.rs index 7b28d548bb45..c04c592853d4 100644 --- a/crates/component-macro/tests/expanded/path2.rs +++ b/crates/component-macro/tests/expanded/path2.rs @@ -208,7 +208,7 @@ pub mod paths { T: 'static, { let mut inst = linker.instance("paths:path2/test")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/path2_async.rs b/crates/component-macro/tests/expanded/path2_async.rs index 4356b1983add..016cd6318b0e 100644 --- a/crates/component-macro/tests/expanded/path2_async.rs +++ b/crates/component-macro/tests/expanded/path2_async.rs @@ -208,7 +208,7 @@ pub mod paths { T: 'static, { let mut inst = linker.instance("paths:path2/test")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/path2_concurrent.rs b/crates/component-macro/tests/expanded/path2_concurrent.rs index 4356b1983add..016cd6318b0e 100644 --- a/crates/component-macro/tests/expanded/path2_concurrent.rs +++ b/crates/component-macro/tests/expanded/path2_concurrent.rs @@ -208,7 +208,7 @@ pub mod paths { T: 'static, { let mut inst = linker.instance("paths:path2/test")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/path2_tracing_async.rs b/crates/component-macro/tests/expanded/path2_tracing_async.rs index 4356b1983add..016cd6318b0e 100644 --- a/crates/component-macro/tests/expanded/path2_tracing_async.rs +++ b/crates/component-macro/tests/expanded/path2_tracing_async.rs @@ -208,7 +208,7 @@ pub mod paths { T: 'static, { let mut inst = linker.instance("paths:path2/test")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/records.rs b/crates/component-macro/tests/expanded/records.rs index 427d3f09cc4e..39f276e37807 100644 --- a/crates/component-macro/tests/expanded/records.rs +++ b/crates/component-macro/tests/expanded/records.rs @@ -568,7 +568,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/records")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/records_async.rs b/crates/component-macro/tests/expanded/records_async.rs index 4827ff26558f..f0994804cf31 100644 --- a/crates/component-macro/tests/expanded/records_async.rs +++ b/crates/component-macro/tests/expanded/records_async.rs @@ -646,7 +646,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/records")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/records_concurrent.rs b/crates/component-macro/tests/expanded/records_concurrent.rs index 4e7febef64c6..ebaf81b5b342 100644 --- a/crates/component-macro/tests/expanded/records_concurrent.rs +++ b/crates/component-macro/tests/expanded/records_concurrent.rs @@ -650,7 +650,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/records")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/records_tracing_async.rs b/crates/component-macro/tests/expanded/records_tracing_async.rs index 3da82be8d1eb..78dff8e4ba78 100644 --- a/crates/component-macro/tests/expanded/records_tracing_async.rs +++ b/crates/component-macro/tests/expanded/records_tracing_async.rs @@ -807,7 +807,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/records")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/rename.rs b/crates/component-macro/tests/expanded/rename.rs index d0587c86a427..111f870707a0 100644 --- a/crates/component-macro/tests/expanded/rename.rs +++ b/crates/component-macro/tests/expanded/rename.rs @@ -214,7 +214,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/green")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -268,7 +268,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/red")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/rename_async.rs b/crates/component-macro/tests/expanded/rename_async.rs index 268b166c28f0..0e0638f78405 100644 --- a/crates/component-macro/tests/expanded/rename_async.rs +++ b/crates/component-macro/tests/expanded/rename_async.rs @@ -215,7 +215,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/green")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -271,7 +271,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/red")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/rename_concurrent.rs b/crates/component-macro/tests/expanded/rename_concurrent.rs index 03a7c7c9c9d6..188baee20980 100644 --- a/crates/component-macro/tests/expanded/rename_concurrent.rs +++ b/crates/component-macro/tests/expanded/rename_concurrent.rs @@ -215,7 +215,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/green")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -271,7 +271,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/red")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/rename_tracing_async.rs b/crates/component-macro/tests/expanded/rename_tracing_async.rs index 3b71959a9bf7..c4c4a28f3192 100644 --- a/crates/component-macro/tests/expanded/rename_tracing_async.rs +++ b/crates/component-macro/tests/expanded/rename_tracing_async.rs @@ -215,7 +215,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/green")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -284,7 +284,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/red")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/resources-export.rs b/crates/component-macro/tests/expanded/resources-export.rs index 7d74c11950b7..df1c85e9ec07 100644 --- a/crates/component-macro/tests/expanded/resources-export.rs +++ b/crates/component-macro/tests/expanded/resources-export.rs @@ -294,7 +294,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/transitive-import")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/resources-export_async.rs b/crates/component-macro/tests/expanded/resources-export_async.rs index 7af898094c15..2db7b7ad8fa6 100644 --- a/crates/component-macro/tests/expanded/resources-export_async.rs +++ b/crates/component-macro/tests/expanded/resources-export_async.rs @@ -299,7 +299,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/transitive-import")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/resources-export_concurrent.rs b/crates/component-macro/tests/expanded/resources-export_concurrent.rs index 16e9d32b5005..2834aa19eabd 100644 --- a/crates/component-macro/tests/expanded/resources-export_concurrent.rs +++ b/crates/component-macro/tests/expanded/resources-export_concurrent.rs @@ -293,7 +293,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/transitive-import")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/resources-export_tracing_async.rs b/crates/component-macro/tests/expanded/resources-export_tracing_async.rs index 4c4d909322fb..c88c4df4cf8c 100644 --- a/crates/component-macro/tests/expanded/resources-export_tracing_async.rs +++ b/crates/component-macro/tests/expanded/resources-export_tracing_async.rs @@ -299,7 +299,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/transitive-import")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/resources-import.rs b/crates/component-macro/tests/expanded/resources-import.rs index 64bdedda3018..1e7fcd46909e 100644 --- a/crates/component-macro/tests/expanded/resources-import.rs +++ b/crates/component-macro/tests/expanded/resources-import.rs @@ -961,7 +961,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/resources")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1028,7 +1028,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain1")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1064,7 +1064,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain2")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1100,7 +1100,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain3")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1150,7 +1150,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain4")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1218,7 +1218,7 @@ pub mod foo { { let mut inst = linker .instance("foo:foo/transitive-interface-with-resource")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/resources-import_async.rs b/crates/component-macro/tests/expanded/resources-import_async.rs index d343fe2a032e..cd47a31c0b1f 100644 --- a/crates/component-macro/tests/expanded/resources-import_async.rs +++ b/crates/component-macro/tests/expanded/resources-import_async.rs @@ -1125,7 +1125,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/resources")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1197,7 +1197,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/long-use-chain1")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1233,7 +1233,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain2")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1269,7 +1269,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain3")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1329,7 +1329,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/long-use-chain4")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1402,7 +1402,7 @@ pub mod foo { { let mut inst = linker .instance("foo:foo/transitive-interface-with-resource")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/resources-import_concurrent.rs b/crates/component-macro/tests/expanded/resources-import_concurrent.rs index de3b9e4e1dbb..970878710cbd 100644 --- a/crates/component-macro/tests/expanded/resources-import_concurrent.rs +++ b/crates/component-macro/tests/expanded/resources-import_concurrent.rs @@ -1116,7 +1116,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/resources")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1182,7 +1182,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/long-use-chain1")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1218,7 +1218,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain2")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1254,7 +1254,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain3")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1308,7 +1308,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/long-use-chain4")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1375,7 +1375,7 @@ pub mod foo { { let mut inst = linker .instance("foo:foo/transitive-interface-with-resource")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/resources-import_tracing_async.rs b/crates/component-macro/tests/expanded/resources-import_tracing_async.rs index dc355bfe0e21..9357c334884d 100644 --- a/crates/component-macro/tests/expanded/resources-import_tracing_async.rs +++ b/crates/component-macro/tests/expanded/resources-import_tracing_async.rs @@ -1529,7 +1529,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/resources")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1601,7 +1601,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/long-use-chain1")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1637,7 +1637,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain2")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1673,7 +1673,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/long-use-chain3")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1746,7 +1746,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/long-use-chain4")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -1819,7 +1819,7 @@ pub mod foo { { let mut inst = linker .instance("foo:foo/transitive-interface-with-resource")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/share-types.rs b/crates/component-macro/tests/expanded/share-types.rs index 0e47ffe05ad5..f20d758cb63f 100644 --- a/crates/component-macro/tests/expanded/share-types.rs +++ b/crates/component-macro/tests/expanded/share-types.rs @@ -256,7 +256,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/http-types")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -317,7 +317,7 @@ pub mod http_fetch { T: 'static, { let mut inst = linker.instance("http-fetch")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } pub mod exports { diff --git a/crates/component-macro/tests/expanded/share-types_async.rs b/crates/component-macro/tests/expanded/share-types_async.rs index b5718e5d6af1..5460f42426a1 100644 --- a/crates/component-macro/tests/expanded/share-types_async.rs +++ b/crates/component-macro/tests/expanded/share-types_async.rs @@ -257,7 +257,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/http-types")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -326,7 +326,7 @@ pub mod http_fetch { T: 'static + Send, { let mut inst = linker.instance("http-fetch")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } pub mod exports { diff --git a/crates/component-macro/tests/expanded/share-types_concurrent.rs b/crates/component-macro/tests/expanded/share-types_concurrent.rs index 052e32790fb8..3cd2e410c95d 100644 --- a/crates/component-macro/tests/expanded/share-types_concurrent.rs +++ b/crates/component-macro/tests/expanded/share-types_concurrent.rs @@ -257,7 +257,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/http-types")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -316,7 +316,7 @@ pub mod http_fetch { T: 'static + Send, { let mut inst = linker.instance("http-fetch")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } pub mod exports { diff --git a/crates/component-macro/tests/expanded/share-types_tracing_async.rs b/crates/component-macro/tests/expanded/share-types_tracing_async.rs index e9823a48d3a7..4bedd85c2d8c 100644 --- a/crates/component-macro/tests/expanded/share-types_tracing_async.rs +++ b/crates/component-macro/tests/expanded/share-types_tracing_async.rs @@ -257,7 +257,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/http-types")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -342,7 +342,7 @@ pub mod http_fetch { T: 'static + Send, { let mut inst = linker.instance("http-fetch")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } pub mod exports { diff --git a/crates/component-macro/tests/expanded/simple-functions.rs b/crates/component-macro/tests/expanded/simple-functions.rs index 52d4d4b30bd3..8ef60f72d860 100644 --- a/crates/component-macro/tests/expanded/simple-functions.rs +++ b/crates/component-macro/tests/expanded/simple-functions.rs @@ -299,7 +299,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/simple")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-functions_async.rs b/crates/component-macro/tests/expanded/simple-functions_async.rs index 88e398d08c7d..4fe693cf78e2 100644 --- a/crates/component-macro/tests/expanded/simple-functions_async.rs +++ b/crates/component-macro/tests/expanded/simple-functions_async.rs @@ -339,7 +339,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/simple")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-functions_concurrent.rs b/crates/component-macro/tests/expanded/simple-functions_concurrent.rs index 8136b47c5b18..80abe5536ec1 100644 --- a/crates/component-macro/tests/expanded/simple-functions_concurrent.rs +++ b/crates/component-macro/tests/expanded/simple-functions_concurrent.rs @@ -343,7 +343,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/simple")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-functions_tracing_async.rs b/crates/component-macro/tests/expanded/simple-functions_tracing_async.rs index 33363aa22602..f994b65def38 100644 --- a/crates/component-macro/tests/expanded/simple-functions_tracing_async.rs +++ b/crates/component-macro/tests/expanded/simple-functions_tracing_async.rs @@ -427,7 +427,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/simple")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-lists.rs b/crates/component-macro/tests/expanded/simple-lists.rs index 401353508afb..5a032e87e47d 100644 --- a/crates/component-macro/tests/expanded/simple-lists.rs +++ b/crates/component-macro/tests/expanded/simple-lists.rs @@ -324,7 +324,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/simple-lists")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-lists_async.rs b/crates/component-macro/tests/expanded/simple-lists_async.rs index fbe1f04b5e44..626abf4ffebe 100644 --- a/crates/component-macro/tests/expanded/simple-lists_async.rs +++ b/crates/component-macro/tests/expanded/simple-lists_async.rs @@ -348,7 +348,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/simple-lists")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-lists_concurrent.rs b/crates/component-macro/tests/expanded/simple-lists_concurrent.rs index e18cadf2acd8..8fcfe3ef4ac8 100644 --- a/crates/component-macro/tests/expanded/simple-lists_concurrent.rs +++ b/crates/component-macro/tests/expanded/simple-lists_concurrent.rs @@ -335,7 +335,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/simple-lists")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-lists_tracing_async.rs b/crates/component-macro/tests/expanded/simple-lists_tracing_async.rs index 32dacbe38e2b..f6fbcb4f9c68 100644 --- a/crates/component-macro/tests/expanded/simple-lists_tracing_async.rs +++ b/crates/component-macro/tests/expanded/simple-lists_tracing_async.rs @@ -409,7 +409,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/simple-lists")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-wasi.rs b/crates/component-macro/tests/expanded/simple-wasi.rs index 260b4ba0e4b1..d7b8306f0454 100644 --- a/crates/component-macro/tests/expanded/simple-wasi.rs +++ b/crates/component-macro/tests/expanded/simple-wasi.rs @@ -299,7 +299,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/wasi-filesystem")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -353,7 +353,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/wall-clock")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-wasi_async.rs b/crates/component-macro/tests/expanded/simple-wasi_async.rs index 722aa5fbfdab..0d58c1876b06 100644 --- a/crates/component-macro/tests/expanded/simple-wasi_async.rs +++ b/crates/component-macro/tests/expanded/simple-wasi_async.rs @@ -315,7 +315,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/wasi-filesystem")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -369,7 +369,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/wall-clock")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-wasi_concurrent.rs b/crates/component-macro/tests/expanded/simple-wasi_concurrent.rs index 106795257e77..32acfb61d1ac 100644 --- a/crates/component-macro/tests/expanded/simple-wasi_concurrent.rs +++ b/crates/component-macro/tests/expanded/simple-wasi_concurrent.rs @@ -311,7 +311,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/wasi-filesystem")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -365,7 +365,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/wall-clock")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/simple-wasi_tracing_async.rs b/crates/component-macro/tests/expanded/simple-wasi_tracing_async.rs index 1ff40734d75c..4a7f1a7d8c75 100644 --- a/crates/component-macro/tests/expanded/simple-wasi_tracing_async.rs +++ b/crates/component-macro/tests/expanded/simple-wasi_tracing_async.rs @@ -341,7 +341,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/wasi-filesystem")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -395,7 +395,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/wall-clock")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/small-anonymous.rs b/crates/component-macro/tests/expanded/small-anonymous.rs index 4a30eca1ba51..bd4d5ed23b13 100644 --- a/crates/component-macro/tests/expanded/small-anonymous.rs +++ b/crates/component-macro/tests/expanded/small-anonymous.rs @@ -280,7 +280,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/anon")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/small-anonymous_async.rs b/crates/component-macro/tests/expanded/small-anonymous_async.rs index d2e72142e2be..36cc9c289a15 100644 --- a/crates/component-macro/tests/expanded/small-anonymous_async.rs +++ b/crates/component-macro/tests/expanded/small-anonymous_async.rs @@ -292,7 +292,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/anon")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/small-anonymous_concurrent.rs b/crates/component-macro/tests/expanded/small-anonymous_concurrent.rs index de1a7b0d6ef4..0675d61b943a 100644 --- a/crates/component-macro/tests/expanded/small-anonymous_concurrent.rs +++ b/crates/component-macro/tests/expanded/small-anonymous_concurrent.rs @@ -283,7 +283,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/anon")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/small-anonymous_tracing_async.rs b/crates/component-macro/tests/expanded/small-anonymous_tracing_async.rs index ccf99002e335..c03235364319 100644 --- a/crates/component-macro/tests/expanded/small-anonymous_tracing_async.rs +++ b/crates/component-macro/tests/expanded/small-anonymous_tracing_async.rs @@ -305,7 +305,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/anon")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/smoke.rs b/crates/component-macro/tests/expanded/smoke.rs index 007967dc205f..762d1d41d404 100644 --- a/crates/component-macro/tests/expanded/smoke.rs +++ b/crates/component-macro/tests/expanded/smoke.rs @@ -220,6 +220,6 @@ pub mod imports { T: 'static, { let mut inst = linker.instance("imports")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } diff --git a/crates/component-macro/tests/expanded/smoke_async.rs b/crates/component-macro/tests/expanded/smoke_async.rs index c0143769fcf3..2c9045c8611d 100644 --- a/crates/component-macro/tests/expanded/smoke_async.rs +++ b/crates/component-macro/tests/expanded/smoke_async.rs @@ -222,6 +222,6 @@ pub mod imports { T: 'static + Send, { let mut inst = linker.instance("imports")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } diff --git a/crates/component-macro/tests/expanded/smoke_concurrent.rs b/crates/component-macro/tests/expanded/smoke_concurrent.rs index a328e6e69b20..2fe651fdb962 100644 --- a/crates/component-macro/tests/expanded/smoke_concurrent.rs +++ b/crates/component-macro/tests/expanded/smoke_concurrent.rs @@ -217,6 +217,6 @@ pub mod imports { T: 'static + Send, { let mut inst = linker.instance("imports")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } diff --git a/crates/component-macro/tests/expanded/smoke_tracing_async.rs b/crates/component-macro/tests/expanded/smoke_tracing_async.rs index e2c74d7915ec..5276f40a9993 100644 --- a/crates/component-macro/tests/expanded/smoke_tracing_async.rs +++ b/crates/component-macro/tests/expanded/smoke_tracing_async.rs @@ -235,6 +235,6 @@ pub mod imports { T: 'static + Send, { let mut inst = linker.instance("imports")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } diff --git a/crates/component-macro/tests/expanded/strings.rs b/crates/component-macro/tests/expanded/strings.rs index 781c9673e846..ab4197d6904b 100644 --- a/crates/component-macro/tests/expanded/strings.rs +++ b/crates/component-macro/tests/expanded/strings.rs @@ -277,7 +277,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/strings")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/strings_async.rs b/crates/component-macro/tests/expanded/strings_async.rs index 2c50ff223023..babf07e798c6 100644 --- a/crates/component-macro/tests/expanded/strings_async.rs +++ b/crates/component-macro/tests/expanded/strings_async.rs @@ -301,7 +301,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/strings")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/strings_concurrent.rs b/crates/component-macro/tests/expanded/strings_concurrent.rs index 8bd33f0d902f..75da32908ba5 100644 --- a/crates/component-macro/tests/expanded/strings_concurrent.rs +++ b/crates/component-macro/tests/expanded/strings_concurrent.rs @@ -292,7 +292,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/strings")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/strings_tracing_async.rs b/crates/component-macro/tests/expanded/strings_tracing_async.rs index f85f0b5a7abe..867d4bd00bb9 100644 --- a/crates/component-macro/tests/expanded/strings_tracing_async.rs +++ b/crates/component-macro/tests/expanded/strings_tracing_async.rs @@ -346,7 +346,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/strings")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/unstable-features.rs b/crates/component-macro/tests/expanded/unstable-features.rs index f150a0860d0a..ce5cd369b26f 100644 --- a/crates/component-macro/tests/expanded/unstable-features.rs +++ b/crates/component-macro/tests/expanded/unstable-features.rs @@ -493,7 +493,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/the-interface")?; - add_to_linker_instance(&mut inst, options, host_getter) + add_to_linker_instance::(&mut inst, options, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/unstable-features_async.rs b/crates/component-macro/tests/expanded/unstable-features_async.rs index 5bf87877ca0a..282a7fd56e7d 100644 --- a/crates/component-macro/tests/expanded/unstable-features_async.rs +++ b/crates/component-macro/tests/expanded/unstable-features_async.rs @@ -530,7 +530,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/the-interface")?; - add_to_linker_instance(&mut inst, options, host_getter) + add_to_linker_instance::(&mut inst, options, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/unstable-features_concurrent.rs b/crates/component-macro/tests/expanded/unstable-features_concurrent.rs index 5d46276a7567..f3ce0bbd19a2 100644 --- a/crates/component-macro/tests/expanded/unstable-features_concurrent.rs +++ b/crates/component-macro/tests/expanded/unstable-features_concurrent.rs @@ -518,7 +518,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/the-interface")?; - add_to_linker_instance(&mut inst, options, host_getter) + add_to_linker_instance::(&mut inst, options, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/unstable-features_tracing_async.rs b/crates/component-macro/tests/expanded/unstable-features_tracing_async.rs index cc6d7f2e26e9..558bb09c276c 100644 --- a/crates/component-macro/tests/expanded/unstable-features_tracing_async.rs +++ b/crates/component-macro/tests/expanded/unstable-features_tracing_async.rs @@ -588,7 +588,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/the-interface")?; - add_to_linker_instance(&mut inst, options, host_getter) + add_to_linker_instance::(&mut inst, options, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/unversioned-foo.rs b/crates/component-macro/tests/expanded/unversioned-foo.rs index 29d47215fb62..56d9c677e62b 100644 --- a/crates/component-macro/tests/expanded/unversioned-foo.rs +++ b/crates/component-macro/tests/expanded/unversioned-foo.rs @@ -250,7 +250,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/a")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/unversioned-foo_async.rs b/crates/component-macro/tests/expanded/unversioned-foo_async.rs index e3e0ad83f307..dcdca9e8d038 100644 --- a/crates/component-macro/tests/expanded/unversioned-foo_async.rs +++ b/crates/component-macro/tests/expanded/unversioned-foo_async.rs @@ -256,7 +256,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/a")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/unversioned-foo_concurrent.rs b/crates/component-macro/tests/expanded/unversioned-foo_concurrent.rs index 399fa621f921..e025ddc67e9d 100644 --- a/crates/component-macro/tests/expanded/unversioned-foo_concurrent.rs +++ b/crates/component-macro/tests/expanded/unversioned-foo_concurrent.rs @@ -252,7 +252,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/a")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/unversioned-foo_tracing_async.rs b/crates/component-macro/tests/expanded/unversioned-foo_tracing_async.rs index 98e7d2116e66..dafea0c8c16c 100644 --- a/crates/component-macro/tests/expanded/unversioned-foo_tracing_async.rs +++ b/crates/component-macro/tests/expanded/unversioned-foo_tracing_async.rs @@ -269,7 +269,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/a")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/use-paths.rs b/crates/component-macro/tests/expanded/use-paths.rs index c71ed37613fb..bdf0d7045062 100644 --- a/crates/component-macro/tests/expanded/use-paths.rs +++ b/crates/component-macro/tests/expanded/use-paths.rs @@ -243,7 +243,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/a")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -297,7 +297,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/b")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -351,7 +351,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/c")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -407,6 +407,6 @@ pub mod d { T: 'static, { let mut inst = linker.instance("d")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } diff --git a/crates/component-macro/tests/expanded/use-paths_async.rs b/crates/component-macro/tests/expanded/use-paths_async.rs index aa9d44f0296d..4089b3ea7c80 100644 --- a/crates/component-macro/tests/expanded/use-paths_async.rs +++ b/crates/component-macro/tests/expanded/use-paths_async.rs @@ -246,7 +246,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/a")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -302,7 +302,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/b")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -358,7 +358,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/c")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -416,6 +416,6 @@ pub mod d { T: 'static + Send, { let mut inst = linker.instance("d")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } diff --git a/crates/component-macro/tests/expanded/use-paths_concurrent.rs b/crates/component-macro/tests/expanded/use-paths_concurrent.rs index 69658c65b217..03fb0a6b7372 100644 --- a/crates/component-macro/tests/expanded/use-paths_concurrent.rs +++ b/crates/component-macro/tests/expanded/use-paths_concurrent.rs @@ -246,7 +246,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/a")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -302,7 +302,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/b")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -358,7 +358,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/c")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -411,6 +411,6 @@ pub mod d { T: 'static + Send, { let mut inst = linker.instance("d")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } diff --git a/crates/component-macro/tests/expanded/use-paths_tracing_async.rs b/crates/component-macro/tests/expanded/use-paths_tracing_async.rs index c3fe37f6b9be..4835f2dacf47 100644 --- a/crates/component-macro/tests/expanded/use-paths_tracing_async.rs +++ b/crates/component-macro/tests/expanded/use-paths_tracing_async.rs @@ -259,7 +259,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/a")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -328,7 +328,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/b")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } #[allow(clippy::all)] @@ -397,7 +397,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/c")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } @@ -468,6 +468,6 @@ pub mod d { T: 'static + Send, { let mut inst = linker.instance("d")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } diff --git a/crates/component-macro/tests/expanded/variants.rs b/crates/component-macro/tests/expanded/variants.rs index 99250c430a8b..2adab3623ca6 100644 --- a/crates/component-macro/tests/expanded/variants.rs +++ b/crates/component-macro/tests/expanded/variants.rs @@ -898,7 +898,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/variants")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/variants_async.rs b/crates/component-macro/tests/expanded/variants_async.rs index 40f5cb2321c1..285f040f5329 100644 --- a/crates/component-macro/tests/expanded/variants_async.rs +++ b/crates/component-macro/tests/expanded/variants_async.rs @@ -1029,7 +1029,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/variants")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/variants_concurrent.rs b/crates/component-macro/tests/expanded/variants_concurrent.rs index 1c95e70901bb..3a4b32a14172 100644 --- a/crates/component-macro/tests/expanded/variants_concurrent.rs +++ b/crates/component-macro/tests/expanded/variants_concurrent.rs @@ -989,7 +989,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/variants")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/variants_tracing_async.rs b/crates/component-macro/tests/expanded/variants_tracing_async.rs index b113487da24f..2358da373cdd 100644 --- a/crates/component-macro/tests/expanded/variants_tracing_async.rs +++ b/crates/component-macro/tests/expanded/variants_tracing_async.rs @@ -1327,7 +1327,7 @@ pub mod foo { T: 'static + Send, { let mut inst = linker.instance("foo:foo/variants")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/worlds-with-types.rs b/crates/component-macro/tests/expanded/worlds-with-types.rs index 3e96716b99e2..1094fb89aa88 100644 --- a/crates/component-macro/tests/expanded/worlds-with-types.rs +++ b/crates/component-macro/tests/expanded/worlds-with-types.rs @@ -273,7 +273,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/i")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/worlds-with-types_async.rs b/crates/component-macro/tests/expanded/worlds-with-types_async.rs index b515c88cbfac..ac91c905cef9 100644 --- a/crates/component-macro/tests/expanded/worlds-with-types_async.rs +++ b/crates/component-macro/tests/expanded/worlds-with-types_async.rs @@ -276,7 +276,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/i")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/worlds-with-types_concurrent.rs b/crates/component-macro/tests/expanded/worlds-with-types_concurrent.rs index 71351b705bea..8e53ebc37464 100644 --- a/crates/component-macro/tests/expanded/worlds-with-types_concurrent.rs +++ b/crates/component-macro/tests/expanded/worlds-with-types_concurrent.rs @@ -277,7 +277,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/i")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } } diff --git a/crates/component-macro/tests/expanded/worlds-with-types_tracing_async.rs b/crates/component-macro/tests/expanded/worlds-with-types_tracing_async.rs index 8dc21d6641c7..37fd13c764dd 100644 --- a/crates/component-macro/tests/expanded/worlds-with-types_tracing_async.rs +++ b/crates/component-macro/tests/expanded/worlds-with-types_tracing_async.rs @@ -284,7 +284,7 @@ pub mod foo { T: 'static, { let mut inst = linker.instance("foo:foo/i")?; - add_to_linker_instance(&mut inst, host_getter) + add_to_linker_instance::(&mut inst, host_getter) } } }