diff options
| author | bors <bors@rust-lang.org> | 2024-07-03 19:18:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-03 19:18:46 +0000 |
| commit | a4bdab38f007d18b726d0bae3c15b01cae6f3cef (patch) | |
| tree | 5e88b66736345641743487c23634fb80f2ef3007 /compiler/rustc_codegen_gcc/src | |
| parent | 0f4035fde309871fd62ba6e3f641de00fe65738d (diff) | |
| parent | 903874d2f49d615505cb5940c2fd2b12b330d573 (diff) | |
| download | rust-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
