@@ -40,8 +40,6 @@ use std::process::Command;
4040const JSON_OUTPUT_FILE : & str = "../util/gh-pages/lints.json" ;
4141/// This is the markdown output file of the lint collector.
4242const MARKDOWN_OUTPUT_FILE : & str = "../book/src/lint_configuration.md" ;
43- /// These lints are excluded from the export.
44- const BLACK_LISTED_LINTS : & [ & str ] = & [ "lint_author" , "dump_hir" , "internal_metadata_collector" ] ;
4543/// These groups will be ignored by the lint group matcher. This is useful for collections like
4644/// `clippy::all`
4745const IGNORED_LINT_GROUPS : [ & str ; 1 ] = [ "clippy::all" ] ;
@@ -121,7 +119,7 @@ declare_clippy_lint! {
121119 /// ### Example output
122120 /// ```json,ignore
123121 /// {
124- /// "id": "internal_metadata_collector ",
122+ /// "id": "metadata_collector ",
125123 /// "id_span": {
126124 /// "path": "clippy_lints/src/utils/internal_lints/metadata_collector.rs",
127125 /// "line": 1
@@ -131,12 +129,12 @@ declare_clippy_lint! {
131129 /// }
132130 /// ```
133131 #[ clippy:: version = "1.56.0" ]
134- pub INTERNAL_METADATA_COLLECTOR ,
135- internal_warn ,
132+ pub METADATA_COLLECTOR ,
133+ internal ,
136134 "A busy bee collection metadata about lints"
137135}
138136
139- impl_lint_pass ! ( MetadataCollector => [ INTERNAL_METADATA_COLLECTOR ] ) ;
137+ impl_lint_pass ! ( MetadataCollector => [ METADATA_COLLECTOR ] ) ;
140138
141139#[ allow( clippy:: module_name_repetitions) ]
142140#[ derive( Debug , Clone ) ]
@@ -550,7 +548,6 @@ impl<'hir> LateLintPass<'hir> for MetadataCollector {
550548 if is_lint_ref_type( cx, ty) ;
551549 // disallow check
552550 let lint_name = sym_to_string( item. ident. name) . to_ascii_lowercase( ) ;
553- if !BLACK_LISTED_LINTS . contains( & lint_name. as_str( ) ) ;
554551 // metadata extraction
555552 if let Some ( ( group, level) ) = get_lint_group_and_level_or_lint( cx, & lint_name, item) ;
556553 if let Some ( mut raw_docs) = extract_attr_docs_or_lint( cx, item) ;
@@ -575,7 +572,6 @@ impl<'hir> LateLintPass<'hir> for MetadataCollector {
575572 if is_deprecated_lint( cx, ty) ;
576573 // disallow check
577574 let lint_name = sym_to_string( item. ident. name) . to_ascii_lowercase( ) ;
578- if !BLACK_LISTED_LINTS . contains( & lint_name. as_str( ) ) ;
579575 // Metadata the little we can get from a deprecated lint
580576 if let Some ( raw_docs) = extract_attr_docs_or_lint( cx, item) ;
581577 then {
@@ -831,7 +827,7 @@ fn collect_renames(lints: &mut Vec<LintMetadata>) {
831827fn lint_collection_error_item ( cx : & LateContext < ' _ > , item : & Item < ' _ > , message : & str ) {
832828 span_lint (
833829 cx,
834- INTERNAL_METADATA_COLLECTOR ,
830+ METADATA_COLLECTOR ,
835831 item. ident . span ,
836832 & format ! ( "metadata collection error for `{}`: {message}" , item. ident. name) ,
837833 ) ;
0 commit comments