about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-06-06 08:53:42 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-06-06 08:54:48 +1000
commit3f892f87e679d594fc22a63495451c0bd694df9b (patch)
treec2581526baf24fbac2ef7175cdbdbd40799af378
parent7ebd2bdbf6d798e6e711a0100981b0ff029abf5f (diff)
downloadrust-3f892f87e679d594fc22a63495451c0bd694df9b.tar.gz
rust-3f892f87e679d594fc22a63495451c0bd694df9b.zip
Clarify an `x fmt` error.
-rw-r--r--src/bootstrap/src/core/build_steps/format.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/format.rs b/src/bootstrap/src/core/build_steps/format.rs
index 601e4e55e09..0caa39d78ac 100644
--- a/src/bootstrap/src/core/build_steps/format.rs
+++ b/src/bootstrap/src/core/build_steps/format.rs
@@ -118,7 +118,9 @@ fn print_paths(verb: &str, adjective: Option<&str>, paths: &[String]) {
 
 pub fn format(build: &Builder<'_>, check: bool, all: bool, paths: &[PathBuf]) {
     if !paths.is_empty() {
-        eprintln!("fmt error: path arguments are not accepted");
+        eprintln!(
+            "fmt error: path arguments are no longer accepted; use `--all` to format everything"
+        );
         crate::exit!(1);
     };
     if build.config.dry_run() {