about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-08 22:00:50 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-08-24 10:24:47 +0200
commit9d05ac43969dec9ee26f507e6c9390c26d95a8bf (patch)
treefb8c99d17d4101f97d6c437b7eca4b94c9eaa4a5 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent388d3f3374265314b6f93c629281fb59ed485894 (diff)
downloadrust-9d05ac43969dec9ee26f507e6c9390c26d95a8bf.tar.gz
rust-9d05ac43969dec9ee26f507e6c9390c26d95a8bf.zip
Rewrite `unwrap_in_result` lint
- 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`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions