Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Add explicit hint for generic call (#13715)

Mark Rousskov6ba6a623ff9f
diff --git a/crates/component-macro/tests/expanded/char.rs b/crates/component-macro/tests/expanded/char.rs
index fde91d332d..635751d0d0 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::<T, D>(&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 7b7d4f3ae1..44bb851713 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::<T, D>(&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 9a745b72a9..999e0a3ee7 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::<T, D>(&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 891e0f8519..a3f1a866e7 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/conventions.rs b/crates/component-macro/tests/expanded/conventions.rs
index 670b48ce2a..dd4ce7d70f 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::<T, D>(&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 20b02e2e46..3d4ecc125a 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::<T, D>(&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 59cbdb3290..3634137dc4 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::<T, D>(&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 10af96de40..a7bcb17881 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::<T, D>(&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 e532b80972..0482e045e4 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::<T, D>(&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::<T, D>(&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 e605015e46..53c1794777 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::<T, D>(&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::<T, D>(&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 818c296a4d..31a9723cab 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::<T, D>(&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::<T, D>(&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 4273ea697d..51beeb97c7 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::<T, D>(&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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/flags.rs b/crates/component-macro/tests/expanded/flags.rs
index 606b42d45d..5e703b3111 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::<T, D>(&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 21f6381ec6..4bb9fc7807 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::<T, D>(&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 eeb3ef4da4..41452ddcf9 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::<T, D>(&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 d9ed5583f5..edef3ee52f 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/floats.rs b/crates/component-macro/tests/expanded/floats.rs
index 6e0e11ae93..0c832c817c 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::<T, D>(&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 4b1989e9cd..37bc1530cd 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::<T, D>(&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 3e26d4fca1..6a2b8be8a4 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::<T, D>(&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 d06e6764b5..a11a514626 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/implements.rs b/crates/component-macro/tests/expanded/implements.rs
index 9021c7ee68..627c59c820 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::<T, D>(&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 cb4eb0541f..abc8fc1df6 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::<T, D>(&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 99e264e6d2..175d020e61 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::<T, D>(&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 f71d3500b5..52f4b19004 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/integers.rs b/crates/component-macro/tests/expanded/integers.rs
index 7e2bc7e6ac..000ec6dbb3 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::<T, D>(&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 5c0c6bea6c..0a3b062ce6 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::<T, D>(&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 de83fa322b..1c342b33a2 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::<T, D>(&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 8174176e00..9560fb9560 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/lists.rs b/crates/component-macro/tests/expanded/lists.rs
index aba83e3453..39be10815f 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::<T, D>(&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 70e89cae54..dd456d9043 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::<T, D>(&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 61e8416e54..1ffadfca08 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::<T, D>(&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 175091fe5f..b069b165f4 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::<T, D>(&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 142fdf264f..e3ffcc1a08 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::<T, D>(&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 6151e121dc..b52ac42448 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::<T, D>(&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 3b1753305c..3bc59456f7 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::<T, D>(&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 1cefd9c94a..c0e476cedc 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/multiversion.rs b/crates/component-macro/tests/expanded/multiversion.rs
index 69021787e8..c2ad470cab 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/[email protected]")?;
- add_to_linker_instance(&mut inst, host_getter)
+ add_to_linker_instance::<T, D>(&mut inst, host_getter)
}
}
}
@@ -293,7 +293,7 @@ pub mod my {
T: 'static,
{
let mut inst = linker.instance("my:dep/[email protected]")?;
- add_to_linker_instance(&mut inst, host_getter)
+ add_to_linker_instance::<T, D>(&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 865e6daeb6..23c44416a0 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/[email protected]")?;
- add_to_linker_instance(&mut inst, host_getter)
+ add_to_linker_instance::<T, D>(&mut inst, host_getter)
}
}
}
@@ -298,7 +298,7 @@ pub mod my {
T: 'static + Send,
{
let mut inst = linker.instance("my:dep/[email protected]")?;
- add_to_linker_instance(&mut inst, host_getter)
+ add_to_linker_instance::<T, D>(&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 068971a107..08eeb156eb 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/[email protected]")?;
- add_to_linker_instance(&mut inst, host_getter)
+ add_to_linker_instance::<T, D>(&mut inst, host_getter)
}
}
}
@@ -298,7 +298,7 @@ pub mod my {
T: 'static + Send,
{
let mut inst = linker.instance("my:dep/[email protected]")?;
- add_to_linker_instance(&mut inst, host_getter)
+ add_to_linker_instance::<T, D>(&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 05084569c0..51b11289ad 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/[email protected]")?;
- add_to_linker_instance(&mut inst, host_getter)
+ add_to_linker_instance::<T, D>(&mut inst, host_getter)
}
}
}
@@ -324,7 +324,7 @@ pub mod my {
T: 'static + Send,
{
let mut inst = linker.instance("my:dep/[email protected]")?;
- add_to_linker_instance(&mut inst, host_getter)
+ add_to_linker_instance::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/path1.rs b/crates/component-macro/tests/expanded/path1.rs
index 63081ed44e..2d79f6bfda 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::<T, D>(&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 79bd31796d..f08090ed8c 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::<T, D>(&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 79bd31796d..f08090ed8c 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::<T, D>(&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 79bd31796d..f08090ed8c 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/path2.rs b/crates/component-macro/tests/expanded/path2.rs
index 7b28d548bb..c04c592853 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::<T, D>(&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 4356b1983a..016cd6318b 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::<T, D>(&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 4356b1983a..016cd6318b 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::<T, D>(&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 4356b1983a..016cd6318b 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/records.rs b/crates/component-macro/tests/expanded/records.rs
index 427d3f09cc..39f276e378 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::<T, D>(&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 4827ff2655..f0994804cf 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::<T, D>(&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 4e7febef64..ebaf81b5b3 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::<T, D>(&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 3da82be8d1..78dff8e4ba 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/rename.rs b/crates/component-macro/tests/expanded/rename.rs
index d0587c86a4..111f870707 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::<T, D>(&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::<T, D>(&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 268b166c28..0e0638f784 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::<T, D>(&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::<T, D>(&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 03a7c7c9c9..188baee209 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::<T, D>(&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::<T, D>(&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 3b71959a9b..c4c4a28f31 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::<T, D>(&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::<T, D>(&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 7d74c11950..df1c85e9ec 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::<T, D>(&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 7af898094c..2db7b7ad8f 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::<T, D>(&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 16e9d32b50..2834aa19ea 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::<T, D>(&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 4c4d909322..c88c4df4cf 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::<T, D>(&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 64bdedda30..1e7fcd4690 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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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 d343fe2a03..cd47a31c0b 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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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 de3b9e4e1d..970878710c 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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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 dc355bfe0e..9357c33488 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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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 0e47ffe05a..f20d758cb6 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::<T, D>(&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::<T, D>(&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 b5718e5d6a..5460f42426 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::<T, D>(&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::<T, D>(&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 052e32790f..3cd2e410c9 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::<T, D>(&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::<T, D>(&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 e9823a48d3..4bedd85c2d 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::<T, D>(&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::<T, D>(&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 52d4d4b30b..8ef60f72d8 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::<T, D>(&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 88e398d08c..4fe693cf78 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::<T, D>(&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 8136b47c5b..80abe5536e 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::<T, D>(&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 33363aa226..f994b65def 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::<T, D>(&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 401353508a..5a032e87e4 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::<T, D>(&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 fbe1f04b5e..626abf4ffe 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::<T, D>(&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 e18cadf2ac..8fcfe3ef4a 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::<T, D>(&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 32dacbe38e..f6fbcb4f9c 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::<T, D>(&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 260b4ba0e4..d7b8306f04 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::<T, D>(&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::<T, D>(&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 722aa5fbfd..0d58c1876b 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::<T, D>(&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::<T, D>(&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 106795257e..32acfb61d1 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::<T, D>(&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::<T, D>(&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 1ff40734d7..4a7f1a7d8c 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::<T, D>(&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::<T, D>(&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 4a30eca1ba..bd4d5ed23b 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::<T, D>(&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 d2e72142e2..36cc9c289a 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::<T, D>(&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 de1a7b0d6e..0675d61b94 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::<T, D>(&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 ccf99002e3..c032353643 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/component-macro/tests/expanded/smoke.rs b/crates/component-macro/tests/expanded/smoke.rs
index 007967dc20..762d1d41d4 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::<T, D>(&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 c0143769fc..2c9045c861 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::<T, D>(&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 a328e6e69b..2fe651fdb9 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::<T, D>(&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 e2c74d7915..5276f40a99 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::<T, D>(&mut inst, host_getter)
}
}
diff --git a/crates/component-macro/tests/expanded/strings.rs b/crates/component-macro/tests/expanded/strings.rs
index 781c9673e8..ab4197d690 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::<T, D>(&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 2c50ff2230..babf07e798 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::<T, D>(&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 8bd33f0d90..75da32908b 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::<T, D>(&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 f85f0b5a7a..867d4bd00b 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::<T, D>(&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 f150a0860d..ce5cd369b2 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::<T, D>(&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 5bf87877ca..282a7fd56e 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::<T, D>(&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 5d46276a75..f3ce0bbd19 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::<T, D>(&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 cc6d7f2e26..558bb09c27 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::<T, D>(&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 29d47215fb..56d9c677e6 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::<T, D>(&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 e3e0ad83f3..dcdca9e8d0 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::<T, D>(&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 399fa621f9..e025ddc67e 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::<T, D>(&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 98e7d2116e..dafea0c8c1 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::<T, D>(&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 c71ed37613..bdf0d70450 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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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 aa9d44f029..4089b3ea7c 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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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 69658c65b2..03fb0a6b73 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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&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 c3fe37f6b9..4835f2dacf 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::<T, D>(&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::<T, D>(&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::<T, D>(&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::<T, D>(&mut inst, host_getter)
}
}
diff --git a/crates/component-macro/tests/expanded/variants.rs b/crates/component-macro/tests/expanded/variants.rs
index 99250c430a..2adab3623c 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::<T, D>(&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 40f5cb2321..285f040f53 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::<T, D>(&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 1c95e70901..3a4b32a141 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::<T, D>(&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 b113487da2..2358da373c 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::<T, D>(&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 3e96716b99..1094fb89aa 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::<T, D>(&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 b515c88cbf..ac91c905ce 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::<T, D>(&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 71351b705b..8e53ebc374 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::<T, D>(&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 8dc21d6641..37fd13c764 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::<T, D>(&mut inst, host_getter)
}
}
}
diff --git a/crates/wit-bindgen/src/lib.rs b/crates/wit-bindgen/src/lib.rs
index a3f409fff8..92e2d170bd 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, D>(
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::<T, D>(&mut inst, {options_param_forward} host_getter)
}}
"
);