From 8103e4f62ae8294fb7d21a1ae1051c068b3654b1 Mon Sep 17 00:00:00 2001 From: Muhammad Hamza Date: Mon, 14 Aug 2023 17:13:50 +0500 Subject: [PATCH] bless trybuild tests --- .../hook_macro/use_prepared_state-fail.stderr | 28 +++++++++++-------- .../use_transitive_state-fail.stderr | 28 +++++++++++-------- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/packages/yew-macro/tests/hook_macro/use_prepared_state-fail.stderr b/packages/yew-macro/tests/hook_macro/use_prepared_state-fail.stderr index 62ba0033a56..9adf7f294a3 100644 --- a/packages/yew-macro/tests/hook_macro/use_prepared_state-fail.stderr +++ b/packages/yew-macro/tests/hook_macro/use_prepared_state-fail.stderr @@ -1,14 +1,16 @@ -error: expected closure - --> tests/hook_macro/use_prepared_state-fail.rs:6:38 +error: this hook takes 2 arguments but 1 argument was supplied + --> tests/hook_macro/use_prepared_state-fail.rs:6:5 | 6 | use_prepared_state_with_closure!(123)?; - | ^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in the macro `use_prepared_state_with_closure` (in Nightly builds, run with -Z macro-backtrace for more info) -error: You must specify a return type for this closure. This is used when the closure is omitted from the client side rendering bundle. - --> tests/hook_macro/use_prepared_state-fail.rs:8:38 +error: expected closure + --> tests/hook_macro/use_prepared_state-fail.rs:8:55 | 8 | use_prepared_state_with_closure!(|_| { todo!() }, 123)?; - | ^^^^^^^^^^^^^^^ + | ^^^ error: this hook takes 2 arguments but 1 argument was supplied --> tests/hook_macro/use_prepared_state-fail.rs:10:5 @@ -26,17 +28,19 @@ error: this hook takes 2 arguments but 1 argument was supplied | = note: this error originates in the macro `use_prepared_state_with_closure` (in Nightly builds, run with -Z macro-backtrace for more info) -error: expected closure - --> tests/hook_macro/use_prepared_state-fail.rs:19:41 +error: this hook takes 2 arguments but 1 argument was supplied + --> tests/hook_macro/use_prepared_state-fail.rs:19:5 | 19 | use_prepared_state_without_closure!(123)?; - | ^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in the macro `use_prepared_state_without_closure` (in Nightly builds, run with -Z macro-backtrace for more info) -error: You must specify a return type for this closure. This is used when the closure is omitted from the client side rendering bundle. - --> tests/hook_macro/use_prepared_state-fail.rs:21:41 +error: expected closure + --> tests/hook_macro/use_prepared_state-fail.rs:21:58 | 21 | use_prepared_state_without_closure!(|_| { todo!() }, 123)?; - | ^^^^^^^^^^^^^^^ + | ^^^ error: this hook takes 2 arguments but 1 argument was supplied --> tests/hook_macro/use_prepared_state-fail.rs:23:5 diff --git a/packages/yew-macro/tests/hook_macro/use_transitive_state-fail.stderr b/packages/yew-macro/tests/hook_macro/use_transitive_state-fail.stderr index 94712261373..8aa99b72603 100644 --- a/packages/yew-macro/tests/hook_macro/use_transitive_state-fail.stderr +++ b/packages/yew-macro/tests/hook_macro/use_transitive_state-fail.stderr @@ -1,14 +1,16 @@ -error: expected closure - --> tests/hook_macro/use_transitive_state-fail.rs:6:40 +error: this hook takes 2 arguments but 1 argument was supplied + --> tests/hook_macro/use_transitive_state-fail.rs:6:5 | 6 | use_transitive_state_with_closure!(123)?; - | ^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in the macro `use_transitive_state_with_closure` (in Nightly builds, run with -Z macro-backtrace for more info) -error: You must specify a return type for this closure. This is used when the closure is omitted from the client side rendering bundle. - --> tests/hook_macro/use_transitive_state-fail.rs:8:40 +error: expected closure + --> tests/hook_macro/use_transitive_state-fail.rs:8:57 | 8 | use_transitive_state_with_closure!(|_| { todo!() }, 123)?; - | ^^^^^^^^^^^^^^^ + | ^^^ error: this hook takes 2 arguments but 1 argument was supplied --> tests/hook_macro/use_transitive_state-fail.rs:10:5 @@ -18,17 +20,19 @@ error: this hook takes 2 arguments but 1 argument was supplied | = note: this error originates in the macro `use_transitive_state_with_closure` (in Nightly builds, run with -Z macro-backtrace for more info) -error: expected closure - --> tests/hook_macro/use_transitive_state-fail.rs:17:43 +error: this hook takes 2 arguments but 1 argument was supplied + --> tests/hook_macro/use_transitive_state-fail.rs:17:5 | 17 | use_transitive_state_without_closure!(123)?; - | ^^^ + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in the macro `use_transitive_state_without_closure` (in Nightly builds, run with -Z macro-backtrace for more info) -error: You must specify a return type for this closure. This is used when the closure is omitted from the client side rendering bundle. - --> tests/hook_macro/use_transitive_state-fail.rs:19:43 +error: expected closure + --> tests/hook_macro/use_transitive_state-fail.rs:19:60 | 19 | use_transitive_state_without_closure!(|_| { todo!() }, 123)?; - | ^^^^^^^^^^^^^^^ + | ^^^ error: this hook takes 2 arguments but 1 argument was supplied --> tests/hook_macro/use_transitive_state-fail.rs:21:5