Skip to content

Commit 1a4094e

Browse files
committed
Update test expectations
1 parent b08dcba commit 1a4094e

File tree

136 files changed

+893
-458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+893
-458
lines changed

crates/component-macro/tests/expanded/char.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
/// has been created through a [`Linker`](wasmtime::component::Linker).
77
///
88
/// For more information see [`TheWorld`] as well.
9-
pub struct TheWorldPre<T> {
9+
pub struct TheWorldPre<T: 'static> {
1010
instance_pre: wasmtime::component::InstancePre<T>,
1111
indices: TheWorldIndices,
1212
}
13-
impl<T> Clone for TheWorldPre<T> {
13+
impl<T: 'static> Clone for TheWorldPre<T> {
1414
fn clone(&self) -> Self {
1515
Self {
1616
instance_pre: self.instance_pre.clone(),
1717
indices: self.indices.clone(),
1818
}
1919
}
2020
}
21-
impl<_T> TheWorldPre<_T> {
21+
impl<_T: 'static> TheWorldPre<_T> {
2222
/// Creates a new copy of `TheWorldPre` bindings which can then
2323
/// be used to instantiate into a particular store.
2424
///
@@ -149,6 +149,7 @@ const _: () = {
149149
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
150150
) -> wasmtime::Result<()>
151151
where
152+
T: 'static,
152153
U: foo::foo::chars::Host,
153154
{
154155
foo::foo::chars::add_to_linker(linker, get)?;
@@ -176,6 +177,7 @@ pub mod foo {
176177
host_getter: G,
177178
) -> wasmtime::Result<()>
178179
where
180+
T: 'static,
179181
G: for<'a> wasmtime::component::GetHost<&'a mut T, Host: Host>,
180182
{
181183
let mut inst = linker.instance("foo:foo/chars")?;
@@ -205,6 +207,7 @@ pub mod foo {
205207
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
206208
) -> wasmtime::Result<()>
207209
where
210+
T: 'static,
208211
U: Host,
209212
{
210213
add_to_linker_get_host(linker, get)

crates/component-macro/tests/expanded/char_async.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
/// has been created through a [`Linker`](wasmtime::component::Linker).
77
///
88
/// For more information see [`TheWorld`] as well.
9-
pub struct TheWorldPre<T> {
9+
pub struct TheWorldPre<T: 'static> {
1010
instance_pre: wasmtime::component::InstancePre<T>,
1111
indices: TheWorldIndices,
1212
}
13-
impl<T> Clone for TheWorldPre<T> {
13+
impl<T: 'static> Clone for TheWorldPre<T> {
1414
fn clone(&self) -> Self {
1515
Self {
1616
instance_pre: self.instance_pre.clone(),
1717
indices: self.indices.clone(),
1818
}
1919
}
2020
}
21-
impl<_T> TheWorldPre<_T> {
21+
impl<_T: 'static> TheWorldPre<_T> {
2222
/// Creates a new copy of `TheWorldPre` bindings which can then
2323
/// be used to instantiate into a particular store.
2424
///
@@ -155,6 +155,7 @@ const _: () = {
155155
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
156156
) -> wasmtime::Result<()>
157157
where
158+
T: 'static,
158159
T: Send,
159160
U: foo::foo::chars::Host + Send,
160161
{
@@ -184,6 +185,7 @@ pub mod foo {
184185
host_getter: G,
185186
) -> wasmtime::Result<()>
186187
where
188+
T: 'static,
187189
G: for<'a> wasmtime::component::GetHost<&'a mut T, Host: Host + Send>,
188190
T: Send,
189191
{
@@ -218,6 +220,7 @@ pub mod foo {
218220
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
219221
) -> wasmtime::Result<()>
220222
where
223+
T: 'static,
221224
U: Host + Send,
222225
T: Send,
223226
{

crates/component-macro/tests/expanded/char_concurrent.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
/// has been created through a [`Linker`](wasmtime::component::Linker).
77
///
88
/// For more information see [`TheWorld`] as well.
9-
pub struct TheWorldPre<T> {
9+
pub struct TheWorldPre<T: 'static> {
1010
instance_pre: wasmtime::component::InstancePre<T>,
1111
indices: TheWorldIndices,
1212
}
13-
impl<T> Clone for TheWorldPre<T> {
13+
impl<T: 'static> Clone for TheWorldPre<T> {
1414
fn clone(&self) -> Self {
1515
Self {
1616
instance_pre: self.instance_pre.clone(),
1717
indices: self.indices.clone(),
1818
}
1919
}
2020
}
21-
impl<_T> TheWorldPre<_T> {
21+
impl<_T: 'static> TheWorldPre<_T> {
2222
/// Creates a new copy of `TheWorldPre` bindings which can then
2323
/// be used to instantiate into a particular store.
2424
///
@@ -155,7 +155,8 @@ const _: () = {
155155
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
156156
) -> wasmtime::Result<()>
157157
where
158-
T: Send + foo::foo::chars::Host<Data = T> + 'static,
158+
T: 'static,
159+
T: Send + foo::foo::chars::Host<Data = T>,
159160
U: Send + foo::foo::chars::Host<Data = T>,
160161
{
161162
foo::foo::chars::add_to_linker(linker, get)?;
@@ -201,6 +202,7 @@ pub mod foo {
201202
host_getter: G,
202203
) -> wasmtime::Result<()>
203204
where
205+
T: 'static,
204206
G: for<'a> wasmtime::component::GetHost<
205207
&'a mut T,
206208
Host: Host<Data = T> + Send,
@@ -278,6 +280,7 @@ pub mod foo {
278280
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
279281
) -> wasmtime::Result<()>
280282
where
283+
T: 'static,
281284
U: Host<Data = T> + Send,
282285
T: Send + 'static,
283286
{

crates/component-macro/tests/expanded/char_tracing_async.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
/// has been created through a [`Linker`](wasmtime::component::Linker).
77
///
88
/// For more information see [`TheWorld`] as well.
9-
pub struct TheWorldPre<T> {
9+
pub struct TheWorldPre<T: 'static> {
1010
instance_pre: wasmtime::component::InstancePre<T>,
1111
indices: TheWorldIndices,
1212
}
13-
impl<T> Clone for TheWorldPre<T> {
13+
impl<T: 'static> Clone for TheWorldPre<T> {
1414
fn clone(&self) -> Self {
1515
Self {
1616
instance_pre: self.instance_pre.clone(),
1717
indices: self.indices.clone(),
1818
}
1919
}
2020
}
21-
impl<_T> TheWorldPre<_T> {
21+
impl<_T: 'static> TheWorldPre<_T> {
2222
/// Creates a new copy of `TheWorldPre` bindings which can then
2323
/// be used to instantiate into a particular store.
2424
///
@@ -155,6 +155,7 @@ const _: () = {
155155
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
156156
) -> wasmtime::Result<()>
157157
where
158+
T: 'static,
158159
T: Send,
159160
U: foo::foo::chars::Host + Send,
160161
{
@@ -184,6 +185,7 @@ pub mod foo {
184185
host_getter: G,
185186
) -> wasmtime::Result<()>
186187
where
188+
T: 'static,
187189
G: for<'a> wasmtime::component::GetHost<&'a mut T, Host: Host + Send>,
188190
T: Send,
189191
{
@@ -247,6 +249,7 @@ pub mod foo {
247249
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
248250
) -> wasmtime::Result<()>
249251
where
252+
T: 'static,
250253
U: Host + Send,
251254
T: Send,
252255
{

crates/component-macro/tests/expanded/conventions.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
/// has been created through a [`Linker`](wasmtime::component::Linker).
77
///
88
/// For more information see [`TheWorld`] as well.
9-
pub struct TheWorldPre<T> {
9+
pub struct TheWorldPre<T: 'static> {
1010
instance_pre: wasmtime::component::InstancePre<T>,
1111
indices: TheWorldIndices,
1212
}
13-
impl<T> Clone for TheWorldPre<T> {
13+
impl<T: 'static> Clone for TheWorldPre<T> {
1414
fn clone(&self) -> Self {
1515
Self {
1616
instance_pre: self.instance_pre.clone(),
1717
indices: self.indices.clone(),
1818
}
1919
}
2020
}
21-
impl<_T> TheWorldPre<_T> {
21+
impl<_T: 'static> TheWorldPre<_T> {
2222
/// Creates a new copy of `TheWorldPre` bindings which can then
2323
/// be used to instantiate into a particular store.
2424
///
@@ -151,6 +151,7 @@ const _: () = {
151151
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
152152
) -> wasmtime::Result<()>
153153
where
154+
T: 'static,
154155
U: foo::foo::conventions::Host,
155156
{
156157
foo::foo::conventions::add_to_linker(linker, get)?;
@@ -224,6 +225,7 @@ pub mod foo {
224225
host_getter: G,
225226
) -> wasmtime::Result<()>
226227
where
228+
T: 'static,
227229
G: for<'a> wasmtime::component::GetHost<&'a mut T, Host: Host>,
228230
{
229231
let mut inst = linker.instance("foo:foo/conventions")?;
@@ -333,6 +335,7 @@ pub mod foo {
333335
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
334336
) -> wasmtime::Result<()>
335337
where
338+
T: 'static,
336339
U: Host,
337340
{
338341
add_to_linker_get_host(linker, get)

crates/component-macro/tests/expanded/conventions_async.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
/// has been created through a [`Linker`](wasmtime::component::Linker).
77
///
88
/// For more information see [`TheWorld`] as well.
9-
pub struct TheWorldPre<T> {
9+
pub struct TheWorldPre<T: 'static> {
1010
instance_pre: wasmtime::component::InstancePre<T>,
1111
indices: TheWorldIndices,
1212
}
13-
impl<T> Clone for TheWorldPre<T> {
13+
impl<T: 'static> Clone for TheWorldPre<T> {
1414
fn clone(&self) -> Self {
1515
Self {
1616
instance_pre: self.instance_pre.clone(),
1717
indices: self.indices.clone(),
1818
}
1919
}
2020
}
21-
impl<_T> TheWorldPre<_T> {
21+
impl<_T: 'static> TheWorldPre<_T> {
2222
/// Creates a new copy of `TheWorldPre` bindings which can then
2323
/// be used to instantiate into a particular store.
2424
///
@@ -157,6 +157,7 @@ const _: () = {
157157
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
158158
) -> wasmtime::Result<()>
159159
where
160+
T: 'static,
160161
T: Send,
161162
U: foo::foo::conventions::Host + Send,
162163
{
@@ -232,6 +233,7 @@ pub mod foo {
232233
host_getter: G,
233234
) -> wasmtime::Result<()>
234235
where
236+
T: 'static,
235237
G: for<'a> wasmtime::component::GetHost<&'a mut T, Host: Host + Send>,
236238
T: Send,
237239
{
@@ -366,6 +368,7 @@ pub mod foo {
366368
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
367369
) -> wasmtime::Result<()>
368370
where
371+
T: 'static,
369372
U: Host + Send,
370373
T: Send,
371374
{

crates/component-macro/tests/expanded/conventions_concurrent.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
/// has been created through a [`Linker`](wasmtime::component::Linker).
77
///
88
/// For more information see [`TheWorld`] as well.
9-
pub struct TheWorldPre<T> {
9+
pub struct TheWorldPre<T: 'static> {
1010
instance_pre: wasmtime::component::InstancePre<T>,
1111
indices: TheWorldIndices,
1212
}
13-
impl<T> Clone for TheWorldPre<T> {
13+
impl<T: 'static> Clone for TheWorldPre<T> {
1414
fn clone(&self) -> Self {
1515
Self {
1616
instance_pre: self.instance_pre.clone(),
1717
indices: self.indices.clone(),
1818
}
1919
}
2020
}
21-
impl<_T> TheWorldPre<_T> {
21+
impl<_T: 'static> TheWorldPre<_T> {
2222
/// Creates a new copy of `TheWorldPre` bindings which can then
2323
/// be used to instantiate into a particular store.
2424
///
@@ -157,7 +157,8 @@ const _: () = {
157157
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
158158
) -> wasmtime::Result<()>
159159
where
160-
T: Send + foo::foo::conventions::Host<Data = T> + 'static,
160+
T: 'static,
161+
T: Send + foo::foo::conventions::Host<Data = T>,
161162
U: Send + foo::foo::conventions::Host<Data = T>,
162163
{
163164
foo::foo::conventions::add_to_linker(linker, get)?;
@@ -329,6 +330,7 @@ pub mod foo {
329330
host_getter: G,
330331
) -> wasmtime::Result<()>
331332
where
333+
T: 'static,
332334
G: for<'a> wasmtime::component::GetHost<
333335
&'a mut T,
334336
Host: Host<Data = T> + Send,
@@ -708,6 +710,7 @@ pub mod foo {
708710
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
709711
) -> wasmtime::Result<()>
710712
where
713+
T: 'static,
711714
U: Host<Data = T> + Send,
712715
T: Send + 'static,
713716
{

crates/component-macro/tests/expanded/conventions_tracing_async.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
/// has been created through a [`Linker`](wasmtime::component::Linker).
77
///
88
/// For more information see [`TheWorld`] as well.
9-
pub struct TheWorldPre<T> {
9+
pub struct TheWorldPre<T: 'static> {
1010
instance_pre: wasmtime::component::InstancePre<T>,
1111
indices: TheWorldIndices,
1212
}
13-
impl<T> Clone for TheWorldPre<T> {
13+
impl<T: 'static> Clone for TheWorldPre<T> {
1414
fn clone(&self) -> Self {
1515
Self {
1616
instance_pre: self.instance_pre.clone(),
1717
indices: self.indices.clone(),
1818
}
1919
}
2020
}
21-
impl<_T> TheWorldPre<_T> {
21+
impl<_T: 'static> TheWorldPre<_T> {
2222
/// Creates a new copy of `TheWorldPre` bindings which can then
2323
/// be used to instantiate into a particular store.
2424
///
@@ -157,6 +157,7 @@ const _: () = {
157157
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
158158
) -> wasmtime::Result<()>
159159
where
160+
T: 'static,
160161
T: Send,
161162
U: foo::foo::conventions::Host + Send,
162163
{
@@ -232,6 +233,7 @@ pub mod foo {
232233
host_getter: G,
233234
) -> wasmtime::Result<()>
234235
where
236+
T: 'static,
235237
G: for<'a> wasmtime::component::GetHost<&'a mut T, Host: Host + Send>,
236238
T: Send,
237239
{
@@ -526,6 +528,7 @@ pub mod foo {
526528
get: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
527529
) -> wasmtime::Result<()>
528530
where
531+
T: 'static,
529532
U: Host + Send,
530533
T: Send,
531534
{

0 commit comments

Comments
 (0)