You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a suspicion that this cause an interesting regression, but I'm not certain.
In our codebase, we have something along the lines of
macro_rules! custom_test {(asyncfn $name:ident() $b:block) => {
#[::tokio::test]asyncfn $name(){
dbg!("foo");
$b
}};}// usage normally with macro_rules_attribute, but for demonstrationcustom_test!(asyncfn foo(){
dbg!("bar");});
This compiles with tokio-macros 1.8.0 but does not with 1.8.1
error[E0425]: cannot find value `body` in this scope
--> tests/main.rs:74:20
|
74 | async fn foo(){
| ____________________^
75 | | dbg!("bar");76 | | }
| |_____^ not found in this scope
NOTE(taiki-e): I yanked 1.8.1 for now.
I have a suspicion that this cause an interesting regression, but I'm not certain.
In our codebase, we have something along the lines of
This compiles with tokio-macros 1.8.0 but does not with 1.8.1
Originally posted by @conradludgate in #5092 (comment)
The text was updated successfully, but these errors were encountered: