Skip to content

Commit 8f13e60

Browse files
committed
Applying PR suggestions
1 parent 6f04f3c commit 8f13e60

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clippy_lints/src/utils/internal_lints/metadata_collector.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use crate::utils::{
3232
};
3333

3434
/// This is the output file of the lint collector.
35-
const OUTPUT_FILE: &str = "../metadata_collection.json";
35+
const OUTPUT_FILE: &str = "../util/gh-pages/metadata_collection.json";
3636
/// These lints are excluded from the export.
3737
const BLACK_LISTED_LINTS: [&str; 3] = ["lint_author", "deep_code_inspection", "internal_metadata_collector"];
3838
/// These groups will be ignored by the lint group matcher. This is useful for collections like
@@ -62,7 +62,7 @@ const SUGGESTION_DIAGNOSTIC_BUILDER_METHODS: [(&str, bool); 9] = [
6262
("span_suggestions", true),
6363
];
6464
const SUGGESTION_FUNCTIONS: [&[&str]; 2] = [
65-
&["clippy_utils", "diagnostics", "mutispan_sugg"],
65+
&["clippy_utils", "diagnostics", "multispan_sugg"],
6666
&["clippy_utils", "diagnostics", "multispan_sugg_with_applicability"],
6767
];
6868

@@ -228,9 +228,6 @@ impl<'hir> LateLintPass<'hir> for MetadataCollector {
228228
// item validation
229229
if let ItemKind::Static(ref ty, Mutability::Not, body_id) = item.kind;
230230
if is_lint_ref_type(cx, ty);
231-
let expr = &cx.tcx.hir().body(body_id).value;
232-
if let ExprKind::AddrOf(_, _, ref inner_exp) = expr.kind;
233-
if let ExprKind::Struct(_, _, _) = inner_exp.kind;
234231
// blacklist check
235232
let lint_name = sym_to_string(item.ident.name).to_ascii_lowercase();
236233
if !BLACK_LISTED_LINTS.contains(&lint_name.as_str());

0 commit comments

Comments
 (0)