Skip to content

Commit 859657f

Browse files
committed
Use named arguments for formatting usage message.
It was getting a bit awkward.
1 parent c1b08dd commit 859657f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc_driver/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -777,13 +777,13 @@ fn usage(verbose: bool, include_unstable_options: bool) {
777777
} else {
778778
"\n --help -v Print the full set of options rustc accepts"
779779
};
780-
println!("{}\nAdditional help:
780+
println!("{options}\nAdditional help:
781781
-C help Print codegen options
782782
-W help \
783-
Print 'lint' options and default settings{}{}\n",
784-
options.usage(message),
785-
nightly_help,
786-
verbose_help);
783+
Print 'lint' options and default settings{nightly}{verbose}\n",
784+
options = options.usage(message),
785+
nightly = nightly_help,
786+
verbose = verbose_help);
787787
}
788788

789789
fn print_wall_help() {

0 commit comments

Comments
 (0)