Use no_run
for doc-tests in new lints
This commit is contained in:
parent
f942470ca7
commit
56ece10c88
@ -346,11 +346,11 @@ fn get_lint_declaration(name_upper: &str, category: &str) -> String {
|
|||||||
/// ### Why is this bad?
|
/// ### Why is this bad?
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
/// ```rust
|
/// ```no_run
|
||||||
/// // example code where clippy issues a warning
|
/// // example code where clippy issues a warning
|
||||||
/// ```
|
/// ```
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
/// ```rust
|
/// ```no_run
|
||||||
/// // example code which does not raise clippy warning
|
/// // example code which does not raise clippy warning
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "{}"]
|
#[clippy::version = "{}"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user