diff options
| author | Jeremy Fitzhardinge <jsgf@fb.com> | 2019-08-01 11:06:52 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <jsgf@fb.com> | 2019-08-19 19:06:46 -0700 |
| commit | 859657f2c5dbe2cf55cf7a7665383a81e676bdf3 (patch) | |
| tree | 53b8657f0c7227ce2d399ffbad85e95535aa2fc9 | |
| parent | c1b08dd26036e14f061b99b20cd6f169e29046f3 (diff) | |
| download | rust-859657f2c5dbe2cf55cf7a7665383a81e676bdf3.tar.gz rust-859657f2c5dbe2cf55cf7a7665383a81e676bdf3.zip | |
Use named arguments for formatting usage message.
It was getting a bit awkward.
| -rw-r--r-- | src/librustc_driver/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index fdd0773b73a..cd030f3c918 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -777,13 +777,13 @@ fn usage(verbose: bool, include_unstable_options: bool) { } else { "\n --help -v Print the full set of options rustc accepts" }; - println!("{}\nAdditional help: + println!("{options}\nAdditional help: -C help Print codegen options -W help \ - Print 'lint' options and default settings{}{}\n", - options.usage(message), - nightly_help, - verbose_help); + Print 'lint' options and default settings{nightly}{verbose}\n", + options = options.usage(message), + nightly = nightly_help, + verbose = verbose_help); } fn print_wall_help() { |
