summaryrefslogtreecommitdiffstats
path: root/vendor/pin-project-lite/tests/expandtest.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/pin-project-lite/tests/expandtest.rs')
-rw-r--r--vendor/pin-project-lite/tests/expandtest.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/pin-project-lite/tests/expandtest.rs b/vendor/pin-project-lite/tests/expandtest.rs
index 3f0d5c112..04a06669d 100644
--- a/vendor/pin-project-lite/tests/expandtest.rs
+++ b/vendor/pin-project-lite/tests/expandtest.rs
@@ -1,4 +1,5 @@
#![cfg(not(miri))]
+#![cfg(not(careful))]
#![warn(rust_2018_idioms, single_use_lifetimes)]
use std::{
@@ -13,9 +14,9 @@ const PATH: &str = "tests/expand/**/*.rs";
fn expandtest() {
let is_ci = env::var_os("CI").is_some();
let cargo = &*env::var("CARGO").unwrap_or_else(|_| "cargo".into());
- if !has_command(&[cargo, "expand"]) || !has_command(&[cargo, "fmt"]) {
+ if !has_command(&[cargo, "expand"]) {
if is_ci {
- panic!("expandtest requires rustfmt and cargo-expand");
+ panic!("expandtest requires cargo-expand");
}
return;
}