@@ -1015,7 +1015,7 @@ impl Default for Options {
1015
1015
optimize : OptLevel :: No ,
1016
1016
debuginfo : DebugInfo :: None ,
1017
1017
lint_opts : Vec :: new ( ) ,
1018
- lint_cap : None ,
1018
+ lint_cap : Some ( lint :: Allow ) ,
1019
1019
describe_lints : false ,
1020
1020
output_types : OutputTypes ( BTreeMap :: new ( ) ) ,
1021
1021
search_paths : vec ! [ ] ,
@@ -1787,7 +1787,7 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
1787
1787
}
1788
1788
1789
1789
pub fn get_cmd_lint_options (
1790
- handler : & EarlyErrorHandler ,
1790
+ _handler : & EarlyErrorHandler ,
1791
1791
matches : & getopts:: Matches ,
1792
1792
) -> ( Vec < ( String , lint:: Level ) > , bool , Option < lint:: Level > ) {
1793
1793
let mut lint_opts_with_position = vec ! [ ] ;
@@ -1810,10 +1810,7 @@ pub fn get_cmd_lint_options(
1810
1810
. map ( |( _, lint_name, level) | ( lint_name, level) )
1811
1811
. collect ( ) ;
1812
1812
1813
- let lint_cap = matches. opt_str ( "cap-lints" ) . map ( |cap| {
1814
- lint:: Level :: from_str ( & cap)
1815
- . unwrap_or_else ( || handler. early_error ( format ! ( "unknown lint level: `{cap}`" ) ) )
1816
- } ) ;
1813
+ let lint_cap = Some ( lint:: Allow ) ;
1817
1814
1818
1815
( lint_opts, describe_lints, lint_cap)
1819
1816
}
0 commit comments