about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2022-01-10 14:05:38 -0600
committerCameron Steffen <cam.steffen94@gmail.com>2022-01-10 17:08:22 -0600
commit21343ab2a5c89dd881cd34986eb85487513f47d1 (patch)
tree9072b239b075662c80eb3f2a44c1cfc6e860aeb9
parent4a549338451cae037fcbb4c4a6a608132e61a305 (diff)
downloadrust-21343ab2a5c89dd881cd34986eb85487513f47d1.tar.gz
rust-21343ab2a5c89dd881cd34986eb85487513f47d1.zip
Remove rustfmt component check
This was more valuable when we used the latest nightly without
specifying the toolchain version.
-rw-r--r--tests/fmt.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/fmt.rs b/tests/fmt.rs
index 383702dd439..0defd45b68b 100644
--- a/tests/fmt.rs
+++ b/tests/fmt.rs
@@ -10,14 +10,6 @@ fn fmt() {
         return;
     }
 
-    // Skip this test if nightly rustfmt is unavailable
-    let rustup_output = Command::new("rustup").args(&["component", "list"]).output().unwrap();
-    assert!(rustup_output.status.success());
-    let component_output = String::from_utf8_lossy(&rustup_output.stdout);
-    if !component_output.contains("rustfmt") {
-        return;
-    }
-
     let root_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
     let output = Command::new("cargo")
         .current_dir(root_dir)