about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-05 20:49:31 -0400
committerGitHub <noreply@github.com>2024-07-05 20:49:31 -0400
commit31fe9628cf830a08e7194a446f66c668aaea86e9 (patch)
treee74f033b0b252cbf52e59b133c56c32d2f197a0a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentf20307851ead9fbbb9fa88bbffb3258a069230a6 (diff)
parent0adb82528fa00467a3f14a282f4581bb30f91aba (diff)
downloadrust-31fe9628cf830a08e7194a446f66c668aaea86e9.tar.gz
rust-31fe9628cf830a08e7194a446f66c668aaea86e9.zip
Rollup merge of #127107 - mu001999-contrib:dead/enhance-2, r=pnkfelix
Improve dead code analysis

Fixes #120770

1. check impl items later if self ty is private although the trait method is public, cause we must use the ty firstly if it's private
2. mark the adt live if it appears in pattern, like generic argument, this implies the use of the adt
3. based on the above, we can handle the case that private adts impl Default, so that we don't need adding rustc_trivial_field_reads on Default, and the logic in should_ignore_item

r? ``@pnkfelix``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions