2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-03-08 17:27:29 +00:00
rust-clippy/clippy_lints
bors ebcd6bc785 Auto merge of - Alexendoo:empty-line-after-rewrite, r=dswij
Rewrite `empty_line_after_doc_comments` and `empty_line_after_outer_attr`, move them from `nursery` to `suspicious`

changelog: [`empty_line_after_doc_comments`], [`empty_line_after_outer_attr`]: rewrite and move them from `nursery` to `suspicious`

They now lint when there's a comment between the last attr/doc comment and the empty line, to cover the case:

```rust
/// Docs for `old_code
// fn old_code() {}

fn new_code() {}
```

When these lints or `suspicious_doc_comments` trigger we no longer trigger any other doc lint as a broad fix for , reverts some of  as the empty line lints cover it

I ended up not doing https://github.com/rust-lang/rust-clippy/issues/12917#issuecomment-2161828859 as I don't think it's needed
2024-08-25 17:47:09 +00:00
..
src Auto merge of - Alexendoo:empty-line-after-rewrite, r=dswij 2024-08-25 17:47:09 +00:00
Cargo.toml Replace rustc_semver with rustc_session::RustcVersion 2024-08-09 13:00:24 +00:00
README.md clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. 2020-03-10 01:05:54 +01:00

This crate contains Clippy lints. For the main crate, check GitHub.