about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorllogiq <bogusandre@gmail.com>2025-08-24 12:57:43 +0000
committerGitHub <noreply@github.com>2025-08-24 12:57:43 +0000
commit9373413ee19cf90e6ff38d47211335281e796b6a (patch)
tree3baf60f6ec0662615c1af3efd5a9ee8c4cba72fc /tests/rustdoc-js-std/parser-errors.js
parentad419b85e8a8f1c0e6afd94ee229d8de61701ea2 (diff)
parent9d05ac43969dec9ee26f507e6c9390c26d95a8bf (diff)
downloadrust-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/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions