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(
331
331
332
332
// In addition to those specific lints, we also need to allow those given through
333
333
// command line, otherwise they'll get ignored and we don't want that.
334
- let allowed_lints = vec ! [
334
+ let lints_to_show = vec ! [
335
335
intra_link_resolution_failure_name. to_owned( ) ,
336
336
missing_docs. to_owned( ) ,
337
337
missing_doc_example. to_owned( ) ,
@@ -340,7 +340,7 @@ pub fn run_core(
340
340
invalid_codeblock_attributes_name. to_owned( ) ,
341
341
] ;
342
342
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| {
344
344
if lint. name == intra_link_resolution_failure_name
345
345
|| lint. name == invalid_codeblock_attributes_name
346
346
{
@@ -358,7 +358,7 @@ pub fn run_core(
358
358
search_paths : libs,
359
359
crate_types,
360
360
lint_opts : if !display_warnings { lint_opts } else { vec ! [ ] } ,
361
- lint_cap : Some ( lint_cap . unwrap_or_else ( || lint :: Forbid ) ) ,
361
+ lint_cap,
362
362
cg : codegen_options,
363
363
externs,
364
364
target_triple : target,
You can’t perform that action at this time.
0 commit comments