| 1 |
Descriptionscip-debian debian rust-actix-macros 0.2.4-1 rust-actix-macros/patches/`fix-tests.patch`#Description.: Disable doctest examples and trybuild tests needing actix-rt/trybuild |
| 2 |
Authorscip-debian debian rust-actix-macros 0.2.4-1 rust-actix-macros/patches/`fix-tests.patch`#Author.: Simon Quigley <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
Forwardedscip-debian debian rust-actix-macros 0.2.4-1 rust-actix-macros/patches/`fix-tests.patch`#Forwarded.: not-needed |
| 4 |
--- a/src/lib.rsscip-debian debian rust-actix-macros 0.2.4-1 rust-actix-macros/upstream/`src/lib.rs`: |
| 5 |
+++ b/src/lib.rsscip-debian debian rust-actix-macros 0.2.4-1 rust-actix-macros/upstream/`src/lib.rs`: |
| 6 |
@@ -20,14 +20,6 @@ use syn::parse::Parser as _; |
| 7 |
type AttributeArgs = syn::punctuated::Punctuated<syn::Meta, syn::Token![,]>; |
| 8 |
|
| 9 |
/// Marks async entry-point function to be executed by Actix system. |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
// #[allow(clippy::needless_doctest_main)] |
| 19 |
// #[cfg(not(test))] // Work around for rust-lang/rust#62127 |
| 20 |
#[proc_macro_attribute] |
| 21 |
@@ -110,14 +102,6 @@ pub fn main(args: TokenStream, item: Tok |
| 22 |
} |
| 23 |
|
| 24 |
/// Marks async test function to be executed in an Actix system. |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
#[proc_macro_attribute] |
| 34 |
pub fn test(args: TokenStream, item: TokenStream) -> TokenStream { |
| 35 |
let mut input = match syn::parse::<syn::ItemFn>(item.clone()) { |
| 36 |
--- a/tests/trybuild.rsscip-debian debian rust-actix-macros 0.2.4-1 rust-actix-macros/upstream/`tests/trybuild.rs`: |
| 37 |
+++ /dev/nullscip-debian debian rust-actix-macros 0.2.4-1 rust-actix-macros/upstream/`/dev/null`: |
| 38 |
@@ -1,19 +0,0 @@ |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|