]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui-internal/default_deprecation_reason.rs
Auto merge of #103390 - compiler-errors:metadata-mod-regions, r=eholk
[rust.git] / src / tools / clippy / tests / ui-internal / default_deprecation_reason.rs
1 #![deny(clippy::internal)]
2 #![feature(rustc_private)]
3
4 #[macro_use]
5 extern crate clippy_lints;
6 use clippy_lints::deprecated_lints::ClippyDeprecatedLint;
7
8 declare_deprecated_lint! {
9     /// ### What it does
10     /// Nothing. This lint has been deprecated.
11     ///
12     /// ### Deprecation reason
13     /// TODO
14     #[clippy::version = "1.63.0"]
15     pub COOL_LINT_DEFAULT,
16     "default deprecation note"
17 }
18
19 declare_deprecated_lint! {
20     /// ### What it does
21     /// Nothing. This lint has been deprecated.
22     ///
23     /// ### Deprecation reason
24     /// This lint has been replaced by `cooler_lint`
25     #[clippy::version = "1.63.0"]
26     pub COOL_LINT,
27     "this lint has been replaced by `cooler_lint`"
28 }
29
30 fn main() {}