Skip to content

Commit

Permalink
tests: cfg-ignore compat tests if there is no compat feature (rust-la…
Browse files Browse the repository at this point in the history
…ng#2353)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
  • Loading branch information
nrc committed Feb 22, 2021
1 parent 450fe91 commit 2e05c5c
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
@@ -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
@@ -1,3 +1,5 @@
#![cfg(feature = "compat")]

use futures::compat::Future01CompatExt;
use futures::prelude::*;
use std::time::Instant;
Expand Down

0 comments on commit 2e05c5c

Please sign in to comment.