@@ -40,8 +40,6 @@ use std::process::Command;
40
40
const JSON_OUTPUT_FILE : & str = "../util/gh-pages/lints.json" ;
41
41
/// This is the markdown output file of the lint collector.
42
42
const 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" ] ;
45
43
/// These groups will be ignored by the lint group matcher. This is useful for collections like
46
44
/// `clippy::all`
47
45
const IGNORED_LINT_GROUPS : [ & str ; 1 ] = [ "clippy::all" ] ;
@@ -121,7 +119,7 @@ declare_clippy_lint! {
121
119
/// ### Example output
122
120
/// ```json,ignore
123
121
/// {
124
- /// "id": "internal_metadata_collector ",
122
+ /// "id": "metadata_collector ",
125
123
/// "id_span": {
126
124
/// "path": "clippy_lints/src/utils/internal_lints/metadata_collector.rs",
127
125
/// "line": 1
@@ -131,12 +129,12 @@ declare_clippy_lint! {
131
129
/// }
132
130
/// ```
133
131
#[ clippy:: version = "1.56.0" ]
134
- pub INTERNAL_METADATA_COLLECTOR ,
135
- internal_warn ,
132
+ pub METADATA_COLLECTOR ,
133
+ internal ,
136
134
"A busy bee collection metadata about lints"
137
135
}
138
136
139
- impl_lint_pass ! ( MetadataCollector => [ INTERNAL_METADATA_COLLECTOR ] ) ;
137
+ impl_lint_pass ! ( MetadataCollector => [ METADATA_COLLECTOR ] ) ;
140
138
141
139
#[ allow( clippy:: module_name_repetitions) ]
142
140
#[ derive( Debug , Clone ) ]
@@ -550,7 +548,6 @@ impl<'hir> LateLintPass<'hir> for MetadataCollector {
550
548
if is_lint_ref_type( cx, ty) ;
551
549
// disallow check
552
550
let lint_name = sym_to_string( item. ident. name) . to_ascii_lowercase( ) ;
553
- if !BLACK_LISTED_LINTS . contains( & lint_name. as_str( ) ) ;
554
551
// metadata extraction
555
552
if let Some ( ( group, level) ) = get_lint_group_and_level_or_lint( cx, & lint_name, item) ;
556
553
if let Some ( mut raw_docs) = extract_attr_docs_or_lint( cx, item) ;
@@ -575,7 +572,6 @@ impl<'hir> LateLintPass<'hir> for MetadataCollector {
575
572
if is_deprecated_lint( cx, ty) ;
576
573
// disallow check
577
574
let lint_name = sym_to_string( item. ident. name) . to_ascii_lowercase( ) ;
578
- if !BLACK_LISTED_LINTS . contains( & lint_name. as_str( ) ) ;
579
575
// Metadata the little we can get from a deprecated lint
580
576
if let Some ( raw_docs) = extract_attr_docs_or_lint( cx, item) ;
581
577
then {
@@ -831,7 +827,7 @@ fn collect_renames(lints: &mut Vec<LintMetadata>) {
831
827
fn lint_collection_error_item ( cx : & LateContext < ' _ > , item : & Item < ' _ > , message : & str ) {
832
828
span_lint (
833
829
cx,
834
- INTERNAL_METADATA_COLLECTOR ,
830
+ METADATA_COLLECTOR ,
835
831
item. ident . span ,
836
832
& format ! ( "metadata collection error for `{}`: {message}" , item. ident. name) ,
837
833
) ;
0 commit comments