File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub struct Flags {
3636 // This overrides the deny-warnings configuation option,
3737 // which passes -Dwarnings to the compiler invocations.
3838 //
39- // true => deny, false => allow
39+ // true => deny, false => warn
4040 pub deny_warnings : Option < bool > ,
4141}
4242
@@ -556,10 +556,10 @@ fn split(s: &[String]) -> Vec<String> {
556556fn parse_deny_warnings ( matches : & getopts:: Matches ) -> Option < bool > {
557557 match matches. opt_str ( "warnings" ) . as_ref ( ) . map ( |v| v. as_str ( ) ) {
558558 Some ( "deny" ) => Some ( true ) ,
559- Some ( "allow " ) => Some ( false ) ,
559+ Some ( "warn " ) => Some ( false ) ,
560560 Some ( value) => {
561561 eprintln ! (
562- r#"invalid value for --warnings: {:?}, expected "allow " or "deny""# ,
562+ r#"invalid value for --warnings: {:?}, expected "warn " or "deny""# ,
563563 value,
564564 ) ;
565565 process:: exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments