@@ -32,7 +32,7 @@ use crate::utils::{
32
32
} ;
33
33
34
34
/// 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" ;
36
36
/// These lints are excluded from the export.
37
37
const BLACK_LISTED_LINTS : [ & str ; 3 ] = [ "lint_author" , "deep_code_inspection" , "internal_metadata_collector" ] ;
38
38
/// 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] = [
62
62
( "span_suggestions" , true ) ,
63
63
] ;
64
64
const SUGGESTION_FUNCTIONS : [ & [ & str ] ; 2 ] = [
65
- & [ "clippy_utils" , "diagnostics" , "mutispan_sugg " ] ,
65
+ & [ "clippy_utils" , "diagnostics" , "multispan_sugg " ] ,
66
66
& [ "clippy_utils" , "diagnostics" , "multispan_sugg_with_applicability" ] ,
67
67
] ;
68
68
@@ -228,9 +228,6 @@ impl<'hir> LateLintPass<'hir> for MetadataCollector {
228
228
// item validation
229
229
if let ItemKind :: Static ( ref ty, Mutability :: Not , body_id) = item. kind;
230
230
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;
234
231
// blacklist check
235
232
let lint_name = sym_to_string( item. ident. name) . to_ascii_lowercase( ) ;
236
233
if !BLACK_LISTED_LINTS . contains( & lint_name. as_str( ) ) ;
0 commit comments