diff options
Diffstat (limited to 'src/tools/clippy/clippy.toml')
-rw-r--r-- | src/tools/clippy/clippy.toml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/clippy/clippy.toml b/src/tools/clippy/clippy.toml index cda8d17ee..4a1805f75 100644 --- a/src/tools/clippy/clippy.toml +++ b/src/tools/clippy/clippy.toml @@ -1 +1,7 @@ avoid-breaking-exported-api = false + +# use the various `span_lint_*` methods instead, which also add a link to the docs +disallowed-methods = [ + "rustc_lint::context::LintContext::struct_span_lint", + "rustc_middle::ty::context::TyCtxt::struct_span_lint_hir" +] |