diff options
| author | bors <bors@rust-lang.org> | 2023-12-23 16:17:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-23 16:17:35 +0000 |
| commit | 830f1c58f4a1f93de617a1bc9edb5a2709141809 (patch) | |
| tree | 8b1471cb75f9b09d2f55e4e2983834f7e4c2c3a5 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 618fd4b494b428411d7b81e63e5172e9b1dc25b1 (diff) | |
| parent | e44caea259aef82b81ed50a3b37f4225451a5f8f (diff) | |
| download | rust-830f1c58f4a1f93de617a1bc9edb5a2709141809.tar.gz rust-830f1c58f4a1f93de617a1bc9edb5a2709141809.zip | |
Auto merge of #11994 - y21:issue11993-fn, r=xFrednet
[`question_mark`]: also trigger on `return` statements
This fixes the false negative mentioned in #11993: the lint only used to check for `return` expressions, and not a statement containing a `return` expression (doesn't close the issue tho since there's still a useful suggestion that we could make, which is to suggest `.ok_or()?`/`.ok_or_else()?` for `else { return Err(..) }`)
changelog: [`question_mark`]: also trigger on `return` statements
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
