Skip to content

Commit

Permalink
tests: cfg-ignore compat tests if there is no compat feature (#2353)
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Cameron <nrc@ncameron.org>
  • Loading branch information
nrc authored Feb 22, 2021
1 parent f86bb46 commit 18e46e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions futures/tests/auto_traits.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "compat")]

//! Assert Send/Sync/Unpin for all public types.
use futures::{
Expand Down
2 changes: 2 additions & 0 deletions futures/tests/compat.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "compat")]

use tokio::timer::Delay;
use tokio::runtime::Runtime;
use std::time::Instant;
Expand Down

0 comments on commit 18e46e8

Please sign in to comment.