@@ -1157,19 +1157,10 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
1157
1157
pub fn get_cmd_lint_options (
1158
1158
matches : & getopts:: Matches ,
1159
1159
error_format : ErrorOutputType ,
1160
- debugging_opts : & DebuggingOptions ,
1161
1160
) -> ( Vec < ( String , lint:: Level ) > , bool , Option < lint:: Level > ) {
1162
1161
let mut lint_opts_with_position = vec ! [ ] ;
1163
1162
let mut describe_lints = false ;
1164
1163
1165
- if !debugging_opts. unstable_options && matches. opt_present ( "force-warn" ) {
1166
- early_error (
1167
- error_format,
1168
- "the `-Z unstable-options` flag must also be passed to enable \
1169
- the flag `--force-warn=lints`",
1170
- ) ;
1171
- }
1172
-
1173
1164
for level in [ lint:: Allow , lint:: Warn , lint:: ForceWarn , lint:: Deny , lint:: Forbid ] {
1174
1165
for ( arg_pos, lint_name) in matches. opt_strs_pos ( level. as_str ( ) ) {
1175
1166
if lint_name == "help" {
@@ -1959,8 +1950,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
1959
1950
. unwrap_or_else ( |e| early_error ( error_format, & e[ ..] ) ) ;
1960
1951
1961
1952
let mut debugging_opts = DebuggingOptions :: build ( matches, error_format) ;
1962
- let ( lint_opts, describe_lints, lint_cap) =
1963
- get_cmd_lint_options ( matches, error_format, & debugging_opts) ;
1953
+ let ( lint_opts, describe_lints, lint_cap) = get_cmd_lint_options ( matches, error_format) ;
1964
1954
1965
1955
check_debug_option_stability ( & debugging_opts, error_format, json_rendered) ;
1966
1956
0 commit comments