diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2024-06-06 14:46:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 14:46:22 -0700 |
| commit | f739fefc76b7928827e1e0875cd5f09460a78a1e (patch) | |
| tree | 5628659cff9f0734bc97eb2a7d2bac3ee2b7e735 | |
| parent | a1baa7b04d3eec56a7fb6f4d68f8f13904ecda96 (diff) | |
| parent | 3f892f87e679d594fc22a63495451c0bd694df9b (diff) | |
| download | rust-f739fefc76b7928827e1e0875cd5f09460a78a1e.tar.gz rust-f739fefc76b7928827e1e0875cd5f09460a78a1e.zip | |
Rollup merge of #126051 - nnethercote:clarify-x-fmt-error, r=Nilstrieb
Clarify an `x fmt` error. For anyone who was using paths with `x fmt` previously, make the error message a bit clearer. r? ```@GuillaumeGomez```
| -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() { |
