Use no_run for doc-tests in new lints

This commit is contained in:
Alex Macleod 2023-10-23 13:48:48 +00:00
parent f942470ca7
commit 56ece10c88

View File

@ -346,11 +346,11 @@ fn get_lint_declaration(name_upper: &str, category: &str) -> String {
/// ### Why is this bad?
///
/// ### Example
/// ```rust
/// ```no_run
/// // example code where clippy issues a warning
/// ```
/// Use instead:
/// ```rust
/// ```no_run
/// // example code which does not raise clippy warning
/// ```
#[clippy::version = "{}"]