From f5aecdee8f11a17af7846ba64693141285a1fdc0 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 26 Nov 2019 10:14:21 +0600 Subject: [PATCH] work around to rust#62127 --- actix-rt/src/lib.rs | 1 + actix-testing/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index e5d783bb..c1faaca9 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -1,5 +1,6 @@ //! A runtime implementation that runs everything on the current thread. +#[cfg(not(test))] // Work around for rust-lang/rust#62127 pub use actix_macros::{main, test}; mod arbiter; diff --git a/actix-testing/src/lib.rs b/actix-testing/src/lib.rs index ed831eec..e2541404 100644 --- a/actix-testing/src/lib.rs +++ b/actix-testing/src/lib.rs @@ -10,6 +10,7 @@ use net2::TcpBuilder; use tokio_net::driver::Handle; use tokio_net::tcp::TcpStream; +#[cfg(not(test))] // Work around for rust-lang/rust#62127 pub use actix_macros::test; /// The `TestServer` type.