about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-09 17:37:26 +0000
committerbors <bors@rust-lang.org>2024-02-09 17:37:26 +0000
commit28443e63fb633a5ed00a49e8df591a956d77122c (patch)
treecd19d12d897f2e590ddf83739a12a35b2fc7e351 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentfb398a5777aa0dea7ed53b74770e2c1fb577f4f2 (diff)
parent3c76b2ceff3526b2d46abb1bbd38180131578808 (diff)
downloadrust-28443e63fb633a5ed00a49e8df591a956d77122c.tar.gz
rust-28443e63fb633a5ed00a49e8df591a956d77122c.zip
Auto merge of #12070 - roife:fix/issue-12034, r=Centri3
Fix issue #12034: add autofixes for unnecessary_fallible_conversions

fixes #12034

Currently, the `unnecessary_fallible_conversions` lint was capable of autofixing expressions like `0i32.try_into().unwrap()`. However, it couldn't autofix expressions in the form of `i64::try_from(0i32).unwrap()` or `<i64 as TryFrom<i32>>::try_from(0).unwrap()`.

This pull request extends the functionality to correctly autofix these latter forms as well.

changelog: [`unnecessary_fallible_conversions`]: Add autofixes for more forms
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions