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) {
795795 ( option. apply ) ( & mut options) ;
796796 }
797797 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 {
799804 ""
800805 } else {
801806 "\n --help -v Print the full set of options rustc accepts"
802807 } ;
803808 println ! ( "{}\n Additional help:
804809 -C help Print codegen options
805810 -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 ",
809812 options. usage( & message) ,
810- extra_help) ;
813+ nightly_help,
814+ verbose_help) ;
811815}
812816
813817fn describe_lints ( lint_store : & lint:: LintStore , loaded_plugins : bool ) {
You can’t perform that action at this time.
0 commit comments