Skip to content

Commit 9b11392

Browse files
authored
Fix #[wstd::test] macro hygiene (#75)
Using an unqualified `#[test]` in the generated code could lead to macro hygiene problems...
1 parent 3562ccf commit 9b11392

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,7 +68,7 @@ pub fn attr_macro_test(_attr: TokenStream, item: TokenStream) -> TokenStream {
6868
let output = input.sig.output;
6969
let block = input.block;
7070
quote! {
71-
#[test]
71+
#[::core::prelude::v1::test]
7272
pub fn #name() #output {
7373

7474
#(#attrs)*

0 commit comments

Comments
 (0)