File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -795,19 +795,23 @@ fn usage(verbose: bool, include_unstable_options: bool) {
795
795
( option. apply ) ( & mut options) ;
796
796
}
797
797
let message = format ! ( "Usage: rustc [OPTIONS] INPUT" ) ;
798
- let extra_help = if verbose {
798
+ let nightly_help = if nightly_options:: is_nightly_build ( ) {
799
+ "\n -Z help Print internal options for debugging rustc"
800
+ } else {
801
+ ""
802
+ } ;
803
+ let verbose_help = if verbose {
799
804
""
800
805
} else {
801
806
"\n --help -v Print the full set of options rustc accepts"
802
807
} ;
803
808
println ! ( "{}\n Additional help:
804
809
-C help Print codegen options
805
810
-W help \
806
- Print 'lint' options and default settings
807
- -Z help Print internal \
808
- options for debugging rustc{}\n ",
811
+ Print 'lint' options and default settings{}{}\n ",
809
812
options. usage( & message) ,
810
- extra_help) ;
813
+ nightly_help,
814
+ verbose_help) ;
811
815
}
812
816
813
817
fn describe_lints ( lint_store : & lint:: LintStore , loaded_plugins : bool ) {
You can’t perform that action at this time.
0 commit comments