Skip to content

Commit c3a897e

Browse files
authored
Unrolled build for rust-lang#126051
Rollup merge of rust-lang#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```
2 parents 98489f2 + 3f892f8 commit c3a897e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/src/core/build_steps/format.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ fn print_paths(verb: &str, adjective: Option<&str>, paths: &[String]) {
118118

119119
pub fn format(build: &Builder<'_>, check: bool, all: bool, paths: &[PathBuf]) {
120120
if !paths.is_empty() {
121-
eprintln!("fmt error: path arguments are not accepted");
121+
eprintln!(
122+
"fmt error: path arguments are no longer accepted; use `--all` to format everything"
123+
);
122124
crate::exit!(1);
123125
};
124126
if build.config.dry_run() {

0 commit comments

Comments
 (0)