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 @@ -331,7 +331,7 @@ pub fn run_core(
331331
332332 // In addition to those specific lints, we also need to allow those given through
333333 // command line, otherwise they'll get ignored and we don't want that.
334- let allowed_lints = vec ! [
334+ let lints_to_show = vec ! [
335335 intra_link_resolution_failure_name. to_owned( ) ,
336336 missing_docs. to_owned( ) ,
337337 missing_doc_example. to_owned( ) ,
@@ -340,7 +340,7 @@ pub fn run_core(
340340 invalid_codeblock_attributes_name. to_owned( ) ,
341341 ] ;
342342
343- let ( lint_opts, lint_caps) = init_lints ( allowed_lints , lint_opts, |lint| {
343+ let ( lint_opts, lint_caps) = init_lints ( lints_to_show , lint_opts, |lint| {
344344 if lint. name == intra_link_resolution_failure_name
345345 || lint. name == invalid_codeblock_attributes_name
346346 {
@@ -358,7 +358,7 @@ pub fn run_core(
358358 search_paths : libs,
359359 crate_types,
360360 lint_opts : if !display_warnings { lint_opts } else { vec ! [ ] } ,
361- lint_cap : Some ( lint_cap . unwrap_or_else ( || lint :: Forbid ) ) ,
361+ lint_cap,
362362 cg : codegen_options,
363363 externs,
364364 target_triple : target,
You can’t perform that action at this time.
0 commit comments