about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-23 16:17:35 +0000
committerbors <bors@rust-lang.org>2023-12-23 16:17:35 +0000
commit830f1c58f4a1f93de617a1bc9edb5a2709141809 (patch)
tree8b1471cb75f9b09d2f55e4e2983834f7e4c2c3a5 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent618fd4b494b428411d7b81e63e5172e9b1dc25b1 (diff)
parente44caea259aef82b81ed50a3b37f4225451a5f8f (diff)
downloadrust-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