summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-internal/default_deprecation_reason.rs
blob: c8961d5e1f0bd6fc8780707c23f690176787bab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#![deny(clippy::internal)]
#![feature(rustc_private)]

#[macro_use]
extern crate clippy_lints;
use clippy_lints::deprecated_lints::ClippyDeprecatedLint;

declare_deprecated_lint! {
    /// ### What it does
    /// Nothing. This lint has been deprecated.
    ///
    /// ### Deprecation reason
    /// TODO
    #[clippy::version = "1.63.0"]
    pub COOL_LINT_DEFAULT,
    "default deprecation note"
}

declare_deprecated_lint! {
    /// ### What it does
    /// Nothing. This lint has been deprecated.
    ///
    /// ### Deprecation reason
    /// This lint has been replaced by `cooler_lint`
    #[clippy::version = "1.63.0"]
    pub COOL_LINT,
    "this lint has been replaced by `cooler_lint`"
}

fn main() {}