Skip to content

Commit

Permalink
Unrolled build for rust-lang#126051
Browse files Browse the repository at this point in the history
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```
  • Loading branch information
rust-timer authored Jun 7, 2024
2 parents 98489f2 + 3f892f8 commit c3a897e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bootstrap/src/core/build_steps/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c3a897e

Please sign in to comment.