about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-12 18:04:22 +0000
committerbors <bors@rust-lang.org>2023-06-12 18:04:22 +0000
commit7c2bf28365fb3867ecefa2c04da0fc6317b88e38 (patch)
tree8c9e8d0f563a9a9141f5af830e69b9cc79ded349 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parentda56c3502ace00cfdef77af38cead0b9802e97fb (diff)
parentbfd5abad4b1b93133796a07a52ece3f7aa053062 (diff)
downloadrust-7c2bf28365fb3867ecefa2c04da0fc6317b88e38.tar.gz
rust-7c2bf28365fb3867ecefa2c04da0fc6317b88e38.zip
Auto merge of #10358 - pksunkara:unnecessary-unwrap, r=llogiq
Add `unnecessary_literal_unwrap` lint

Add lint for more unnecessary unwraps and suggest fixes for them.

Fixes #10352

- [x] Followed [lint naming conventions][lint_naming]
- [x] Added passing UI tests (including committed `.stderr` file)
- [x] `cargo test` passes locally
- [x] Executed `cargo dev update_lints`
- [x] Added lint documentation
- [x] Run `cargo dev fmt`

r? `@llogiq`

---

changelog: New lint [`unnecessary_literal_unwrap`]
[#10358](https://github.com/rust-lang/rust-clippy/pull/10358)
<!-- changelog_checked -->
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions