]> git.lizzy.rs Git - rust.git/blobdiff - clippy_dev/src/fmt.rs
Auto merge of #7782 - dswij:shadow-unrelated-block, r=flip1995
[rust.git] / clippy_dev / src / fmt.rs
index 4d0fdadbd85d184d6b927db81211764c729e5153..c81eb40d52f3551ffc698db36acf7767b5c3874e 100644 (file)
@@ -54,20 +54,17 @@ fn try_run(context: &FmtContext) -> Result<bool, CliError> {
         success &= cargo_fmt(context, project_root.as_path())?;
         success &= cargo_fmt(context, &project_root.join("clippy_dev"))?;
         success &= cargo_fmt(context, &project_root.join("rustc_tools_util"))?;
+        success &= cargo_fmt(context, &project_root.join("lintcheck"))?;
 
         for entry in WalkDir::new(project_root.join("tests")) {
             let entry = entry?;
             let path = entry.path();
 
-            if path.extension() != Some("rs".as_ref())
-                || entry.file_name() == "ice-3891.rs"
-                // Avoid rustfmt bug rust-lang/rustfmt#1873
-                || cfg!(windows) && entry.file_name() == "implicit_hasher.rs"
-            {
+            if path.extension() != Some("rs".as_ref()) || entry.file_name() == "ice-3891.rs" {
                 continue;
             }
 
-            success &= rustfmt(context, &path)?;
+            success &= rustfmt(context, path)?;
         }
 
         Ok(success)
@@ -89,7 +86,7 @@ fn output_err(err: CliError) {
             },
             CliError::RaSetupActive => {
                 eprintln!(
-                    "error: a local rustc repo is enabled as path dependency via `cargo dev ra_setup`.
+                    "error: a local rustc repo is enabled as path dependency via `cargo dev setup intellij`.
 Not formatting because that would format the local repo as well!
 Please revert the changes to Cargo.tomls first."
                 );