diff options
| author | Alex Macleod <alex@macleod.io> | 2023-10-23 13:48:48 +0000 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2023-10-23 13:48:48 +0000 |
| commit | 56ece10c88c6fb93cc3592606b364c201fb45127 (patch) | |
| tree | 57730b28f768f5d6979ab41ea0e56ad1fd1fe2fc | |
| parent | f942470ca774b9648bac042f5d4c4ec74b81b61a (diff) | |
| download | rust-56ece10c88c6fb93cc3592606b364c201fb45127.tar.gz rust-56ece10c88c6fb93cc3592606b364c201fb45127.zip | |
Use `no_run` for doc-tests in new lints
| -rw-r--r-- | clippy_dev/src/new_lint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_dev/src/new_lint.rs b/clippy_dev/src/new_lint.rs index be2386bb1d2..eeea53ce46f 100644 --- a/clippy_dev/src/new_lint.rs +++ b/clippy_dev/src/new_lint.rs @@ -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 = "{}"] |
