Skip to content

Commit ecbb2d7

Browse files
committed
remove internal compiler_lint_functions lint
1 parent 2b01d69 commit ecbb2d7

File tree

5 files changed

+4
-79
lines changed

5 files changed

+4
-79
lines changed

clippy.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
avoid-breaking-exported-api = false
22

3+
[[disallowed-methods]]
4+
path = "rustc_lint::context::LintContext::lint"
5+
reason = "this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead"
6+
37
[[disallowed-methods]]
48
path = "rustc_lint::context::LintContext::span_lint"
59
reason = "this function does not add a link to our documentation, please use the `clippy_utils::diagnostics::span_lint*` functions instead"

clippy_lints/src/declared_lints.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
88
#[cfg(feature = "internal")]
99
crate::utils::internal_lints::collapsible_calls::COLLAPSIBLE_SPAN_LINT_CALLS_INFO,
1010
#[cfg(feature = "internal")]
11-
crate::utils::internal_lints::compiler_lint_functions::COMPILER_LINT_FUNCTIONS_INFO,
12-
#[cfg(feature = "internal")]
1311
crate::utils::internal_lints::interning_defined_symbol::INTERNING_DEFINED_SYMBOL_INFO,
1412
#[cfg(feature = "internal")]
1513
crate::utils::internal_lints::interning_defined_symbol::UNNECESSARY_SYMBOL_STR_INFO,

clippy_lints/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,6 @@ pub fn register_lints(store: &mut rustc_lint::LintStore, conf: &'static Conf) {
641641
});
642642
store.register_early_pass(|| Box::new(utils::internal_lints::produce_ice::ProduceIce));
643643
store.register_late_pass(|_| Box::new(utils::internal_lints::collapsible_calls::CollapsibleCalls));
644-
store.register_late_pass(|_| {
645-
Box::new(utils::internal_lints::compiler_lint_functions::CompilerLintFunctions::new())
646-
});
647644
store.register_late_pass(|_| Box::new(utils::internal_lints::invalid_paths::InvalidPaths));
648645
store.register_late_pass(|_| {
649646
Box::<utils::internal_lints::interning_defined_symbol::InterningDefinedSymbol>::default()

clippy_lints/src/utils/internal_lints.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pub mod almost_standard_lint_formulation;
22
pub mod collapsible_calls;
3-
pub mod compiler_lint_functions;
43
pub mod interning_defined_symbol;
54
pub mod invalid_paths;
65
pub mod lint_without_lint_pass;

clippy_lints/src/utils/internal_lints/compiler_lint_functions.rs

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)