rust/tests/ui-fulldeps
Michael Goulet 31fe9628cf
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``
2024-07-05 20:49:31 -04:00
..
auxiliary Port tests/run-make-fulldeps/obtain-borrowck to ui-fulldeps 2024-06-07 00:41:31 +10:00
codegen-backend Port tests/run-make-fulldeps/hotplug_codegen_backend to ui-fulldeps 2024-06-07 22:28:00 +10:00
fluent-messages
internal-lints Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
mod_dir_simple
session-diagnostic Remove LintDiagnostic::msg 2024-05-23 04:08:35 +02:00
stable-mir Add method to get all attributes on a definition 2024-06-28 13:24:41 +08:00
compiler-calls.rs
deriving-global.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
deriving-hygiene.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
dropck_tarena_sound_drop.rs
dropck-tarena-cycle-checked.rs
dropck-tarena-cycle-checked.stderr
dropck-tarena-unsound-drop.rs
dropck-tarena-unsound-drop.stderr
empty-struct-braces-derive.rs
hash-stable-is-unstable.rs
hash-stable-is-unstable.stderr
lint-pass-macros.rs
missing-rustc-driver-error.rs
missing-rustc-driver-error.stderr
mod_dir_path_canonicalized.rs Make top-level rustc_parse functions fallible. 2024-06-05 10:38:03 +10:00
obtain-borrowck.rs Port tests/run-make-fulldeps/obtain-borrowck to ui-fulldeps 2024-06-07 00:41:31 +10:00
obtain-borrowck.run.stdout Port tests/run-make-fulldeps/obtain-borrowck to ui-fulldeps 2024-06-07 00:41:31 +10:00
pathless-extern-unstable.rs
pathless-extern-unstable.stderr
pprust-expr-roundtrip.rs Make top-level rustc_parse functions fallible. 2024-06-05 10:38:03 +10:00
regions-mock-tcx.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
run-compiler-twice.rs Move codegen_and_build_linker from Queries to Linker 2024-07-01 11:00:49 +00:00
rustc_encodable_hygiene.rs