Correctly ignore ignored mono tests

This commit is contained in:
Ayaz Hafiz 2022-05-04 10:55:37 -04:00
parent 087782f3d0
commit 5cef7136db
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -14,9 +14,11 @@ pub fn mono_test(_args: TokenStream, item: TokenStream) -> TokenStream {
let body = task_fn.block.clone();
let visibility = &task_fn.vis;
let attributes = task_fn.attrs;
let result = quote! {
#[test]
#(#attributes)*
#visibility fn #name(#args) -> () {
compiles_to_ir(#name_str, #body);