@@ -780,43 +780,42 @@ macro_rules! options {
780
780
}
781
781
782
782
pub type $setter_name = fn ( & mut $struct_name, v: Option <& str >) -> bool ;
783
- pub const $stat: & ' static [ ( & ' static str , $setter_name,
784
- Option <& ' static str >, & ' static str ) ] =
783
+ pub const $stat: & [ ( & str , $setter_name, Option <& str >, & str ) ] =
785
784
& [ $( ( stringify!( $opt) , $mod_set:: $opt, $mod_desc:: $parse, $desc) ) ,* ] ;
786
785
787
786
#[ allow( non_upper_case_globals, dead_code) ]
788
787
mod $mod_desc {
789
- pub const parse_bool: Option <& ' static str > = None ;
790
- pub const parse_opt_bool: Option <& ' static str > =
788
+ pub const parse_bool: Option <& str > = None ;
789
+ pub const parse_opt_bool: Option <& str > =
791
790
Some ( "one of: `y`, `yes`, `on`, `n`, `no`, or `off`" ) ;
792
- pub const parse_string: Option <& ' static str > = Some ( "a string" ) ;
793
- pub const parse_string_push: Option <& ' static str > = Some ( "a string" ) ;
794
- pub const parse_pathbuf_push: Option <& ' static str > = Some ( "a path" ) ;
795
- pub const parse_opt_string: Option <& ' static str > = Some ( "a string" ) ;
796
- pub const parse_opt_pathbuf: Option <& ' static str > = Some ( "a path" ) ;
797
- pub const parse_list: Option <& ' static str > = Some ( "a space-separated list of strings" ) ;
798
- pub const parse_opt_list: Option <& ' static str > = Some ( "a space-separated list of strings" ) ;
799
- pub const parse_uint: Option <& ' static str > = Some ( "a number" ) ;
800
- pub const parse_passes: Option <& ' static str > =
791
+ pub const parse_string: Option <& str > = Some ( "a string" ) ;
792
+ pub const parse_string_push: Option <& str > = Some ( "a string" ) ;
793
+ pub const parse_pathbuf_push: Option <& str > = Some ( "a path" ) ;
794
+ pub const parse_opt_string: Option <& str > = Some ( "a string" ) ;
795
+ pub const parse_opt_pathbuf: Option <& str > = Some ( "a path" ) ;
796
+ pub const parse_list: Option <& str > = Some ( "a space-separated list of strings" ) ;
797
+ pub const parse_opt_list: Option <& str > = Some ( "a space-separated list of strings" ) ;
798
+ pub const parse_uint: Option <& str > = Some ( "a number" ) ;
799
+ pub const parse_passes: Option <& str > =
801
800
Some ( "a space-separated list of passes, or `all`" ) ;
802
- pub const parse_opt_uint: Option <& ' static str > =
801
+ pub const parse_opt_uint: Option <& str > =
803
802
Some ( "a number" ) ;
804
- pub const parse_panic_strategy: Option <& ' static str > =
803
+ pub const parse_panic_strategy: Option <& str > =
805
804
Some ( "either `unwind` or `abort`" ) ;
806
- pub const parse_relro_level: Option <& ' static str > =
805
+ pub const parse_relro_level: Option <& str > =
807
806
Some ( "one of: `full`, `partial`, or `off`" ) ;
808
- pub const parse_sanitizer: Option <& ' static str > =
807
+ pub const parse_sanitizer: Option <& str > =
809
808
Some ( "one of: `address`, `leak`, `memory` or `thread`" ) ;
810
- pub const parse_linker_flavor: Option <& ' static str > =
809
+ pub const parse_linker_flavor: Option <& str > =
811
810
Some ( :: rustc_target:: spec:: LinkerFlavor :: one_of( ) ) ;
812
- pub const parse_optimization_fuel: Option <& ' static str > =
811
+ pub const parse_optimization_fuel: Option <& str > =
813
812
Some ( "crate=integer" ) ;
814
- pub const parse_unpretty: Option <& ' static str > =
813
+ pub const parse_unpretty: Option <& str > =
815
814
Some ( "`string` or `string=string`" ) ;
816
- pub const parse_lto: Option <& ' static str > =
815
+ pub const parse_lto: Option <& str > =
817
816
Some ( "either a boolean (`yes`, `no`, `on`, `off`, etc), `thin`, \
818
817
`fat`, or omitted") ;
819
- pub const parse_cross_lang_lto: Option <& ' static str > =
818
+ pub const parse_cross_lang_lto: Option <& str > =
820
819
Some ( "either a boolean (`yes`, `no`, `on`, `off`, etc), \
821
820
or the path to the linker plugin") ;
822
821
}
0 commit comments