Skip to content

Commit 92f4932

Browse files
committed
Preserve test attributes on generated wrapper function
1 parent ec2b222 commit 92f4932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ pub fn attr_macro_test(_attr: TokenStream, item: TokenStream) -> TokenStream {
6868
let output = input.sig.output;
6969
let block = input.block;
7070
quote! {
71+
#(#attrs)*
7172
#[::core::prelude::v1::test]
7273
pub fn #name() #output {
7374

74-
#(#attrs)*
7575
async fn __run() #output {
7676
#block
7777
}

0 commit comments

Comments
 (0)