diff options
| author | llogiq <bogusandre@gmail.com> | 2025-08-24 12:57:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-24 12:57:43 +0000 |
| commit | 9373413ee19cf90e6ff38d47211335281e796b6a (patch) | |
| tree | 3baf60f6ec0662615c1af3efd5a9ee8c4cba72fc /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | ad419b85e8a8f1c0e6afd94ee229d8de61701ea2 (diff) | |
| parent | 9d05ac43969dec9ee26f507e6c9390c26d95a8bf (diff) | |
| download | rust-9373413ee19cf90e6ff38d47211335281e796b6a.tar.gz rust-9373413ee19cf90e6ff38d47211335281e796b6a.zip | |
Rewrite `unwrap_in_result` lint (#15445)
- Lint non-`impl` functions as well. - Lint function calls in addition to method calls (such as `Option::unwrap(…)`). - Put the lint on the `unwrap` and `expect` node instead of the function signature. This lets the user `#[allow]` specific `unwrap()` or `expect()` calls. - Do not lint inside closures, `const` and `static`. - Do not mix warnings about `Option` and `Result`. changelog: [`unwrap_in_result`]: issue lint on `.unwrap()` and `.expect()` nodes instead of the function one changelog: [`unwrap_in_result`]: also lint in functions outside implementation blocks changelog: [`unwrap_in_result`]: do not mix `Result` and `Option` Fixes rust-lang/rust-clippy#15439
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
