diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-06 08:53:42 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-06 08:54:48 +1000 |
| commit | 3f892f87e679d594fc22a63495451c0bd694df9b (patch) | |
| tree | c2581526baf24fbac2ef7175cdbdbd40799af378 | |
| parent | 7ebd2bdbf6d798e6e711a0100981b0ff029abf5f (diff) | |
| download | rust-3f892f87e679d594fc22a63495451c0bd694df9b.tar.gz rust-3f892f87e679d594fc22a63495451c0bd694df9b.zip | |
Clarify an `x fmt` error.
| -rw-r--r-- | src/bootstrap/src/core/build_steps/format.rs | 4 |
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() { |
