Description: Disable doctest examples and trybuild tests needing actix-rt/trybuild Author: Simon Quigley Forwarded: not-needed --- a/src/lib.rs +++ b/src/lib.rs @@ -20,14 +20,6 @@ use syn::parse::Parser as _; type AttributeArgs = syn::punctuated::Punctuated; /// Marks async entry-point function to be executed by Actix system. -/// -/// # Examples -/// ``` -/// #[actix_rt::main] -/// async fn main() { -/// println!("Hello world"); -/// } -/// ``` // #[allow(clippy::needless_doctest_main)] // #[cfg(not(test))] // Work around for rust-lang/rust#62127 #[proc_macro_attribute] @@ -110,14 +102,6 @@ pub fn main(args: TokenStream, item: Tok } /// Marks async test function to be executed in an Actix system. -/// -/// # Examples -/// ``` -/// #[actix_rt::test] -/// async fn my_test() { -/// assert!(true); -/// } -/// ``` #[proc_macro_attribute] pub fn test(args: TokenStream, item: TokenStream) -> TokenStream { let mut input = match syn::parse::(item.clone()) { --- a/tests/trybuild.rs +++ /dev/null @@ -1,19 +0,0 @@ -#[rustversion::stable(1.65)] // MSRV -#[test] -fn compile_macros() { - let t = trybuild::TestCases::new(); - - t.pass("tests/trybuild/main-01-basic.rs"); - t.compile_fail("tests/trybuild/main-02-only-async.rs"); - t.pass("tests/trybuild/main-03-fn-params.rs"); - t.pass("tests/trybuild/main-04-system-path.rs"); - t.compile_fail("tests/trybuild/main-05-system-expect-path.rs"); - t.compile_fail("tests/trybuild/main-06-unknown-attr.rs"); - - t.pass("tests/trybuild/test-01-basic.rs"); - t.pass("tests/trybuild/test-02-keep-attrs.rs"); - t.compile_fail("tests/trybuild/test-03-only-async.rs"); - t.pass("tests/trybuild/test-04-system-path.rs"); - t.compile_fail("tests/trybuild/test-05-system-expect-path.rs"); - t.compile_fail("tests/trybuild/test-06-unknown-attr.rs"); -}