]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #8143 - GuillaumeGomez:RETURN_SELF_NOT_MUST_USE, r=xFrednet
authorbors <bors@rust-lang.org>
Sat, 18 Dec 2021 15:06:09 +0000 (15:06 +0000)
committerbors <bors@rust-lang.org>
Sat, 18 Dec 2021 15:06:09 +0000 (15:06 +0000)
Ensure that RETURN_SELF_NOT_MUST_USE is not emitted if the method already has `#[must_use]`

Fixes https://github.com/rust-lang/rust-clippy/issues/8140.

---

Edit:

changelog: none

(The lint is not in beta yet, this should therefore not be included inside the changelog :) )


Trivial merge