@@ -1560,9 +1560,10 @@ The default is {DEFAULT_EDITION} and the latest stable edition is {LATEST_STABLE
1560
1560
)
1561
1561
} ) ;
1562
1562
1563
- static PRINT_KINDS_STRING : LazyLock < String > = LazyLock :: new ( || {
1563
+ static PRINT_HELP : LazyLock < String > = LazyLock :: new ( || {
1564
1564
format ! (
1565
- "[{}]" ,
1565
+ "Compiler information to print on stdout (or to a file)\n \
1566
+ INFO may be one of ({}).",
1566
1567
PRINT_KINDS . iter( ) . map( |( name, _) | format!( "{name}" ) ) . collect:: <Vec <_>>( ) . join( "|" )
1567
1568
)
1568
1569
} ) ;
@@ -1621,14 +1622,7 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
1621
1622
"Comma separated list of types of output for the compiler to emit" ,
1622
1623
"[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info|mir]" ,
1623
1624
) ,
1624
- opt(
1625
- Stable ,
1626
- Multi ,
1627
- "" ,
1628
- "print" ,
1629
- "Compiler information to print on stdout" ,
1630
- & PRINT_KINDS_STRING ,
1631
- ) ,
1625
+ opt( Stable , Multi , "" , "print" , & PRINT_HELP , "INFO[=FILE]" ) ,
1632
1626
opt( Stable , FlagMulti , "g" , "" , "Equivalent to -C debuginfo=2" , "" ) ,
1633
1627
opt( Stable , FlagMulti , "O" , "" , "Equivalent to -C opt-level=3" , "" ) ,
1634
1628
opt( Stable , Opt , "o" , "" , "Write output to <filename>" , "FILENAME" ) ,
0 commit comments