about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-03 19:18:46 +0000
committerbors <bors@rust-lang.org>2024-07-03 19:18:46 +0000
commita4bdab38f007d18b726d0bae3c15b01cae6f3cef (patch)
tree5e88b66736345641743487c23634fb80f2ef3007 /compiler/rustc_codegen_gcc/src
parent0f4035fde309871fd62ba6e3f641de00fe65738d (diff)
parent903874d2f49d615505cb5940c2fd2b12b330d573 (diff)
downloadrust-a4bdab38f007d18b726d0bae3c15b01cae6f3cef.tar.gz
rust-a4bdab38f007d18b726d0bae3c15b01cae6f3cef.zip
Auto merge of #13027 - xFrednet:12998-expect-returns, r=Jarcho
`needless_return`: Support `#[expect]` on the return statement

A fix for https://github.com/rust-lang/rust-clippy/issues/9361 suppresses `clippy::needless_return` if there are any attributes on the `return` statement. This leads to some unexpected behavior, as described in https://github.com/rust-lang/rust-clippy/issues/12998, where adding `#[expect(clippy::needless_return)]` suppresses the lint, but doesn't fulfill the expectation.

I now decided to manually fulfill any expectations, if they are before the attribute check.

---

Closes: https://github.com/rust-lang/rust-clippy/issues/12998

changelog: none
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions