rust/tests/ui/lint/dead-code
Jonathan Brouwer a09c4fc862
Fix types being marked as dead when they are inferred generic arguments
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-10-30 08:31:07 +01:00
..
auxiliary Cleaned up 4 tests in tests/ui/issues 2025-04-19 01:10:26 -06:00
alias-in-pat.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
alias-type-used-as-generic-arg-in-impl.rs Add test for issue 127911 and 128839 2025-05-29 20:51:51 +08:00
allow-or-expect-dead_code-114557-2.rs tests: fix some typos in comment 2025-03-07 10:50:31 +08:00
allow-or-expect-dead_code-114557-2.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
allow-or-expect-dead_code-114557-3.rs tests: fix some typos in comment 2025-03-07 10:50:31 +08:00
allow-or-expect-dead_code-114557-3.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
allow-or-expect-dead_code-114557.rs tests: fix some typos in comment 2025-03-07 10:50:31 +08:00
associated-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
basic.rs
basic.stderr
closure-bang.rs
closure-bang.stderr
const-and-self.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-and-self.stderr
const-underscore-issue-142104.rs Always consider const _ items as live for dead code analysis 2025-06-09 15:48:06 +02:00
empty-unused-enum.rs
empty-unused-enum.stderr
empty-unused-public-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
enum-variants.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-trait.rs
impl-trait.stderr
in-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
in-closure.stderr
inferred-generic-arg.rs Fix types being marked as dead when they are inferred generic arguments 2025-10-30 08:31:07 +01:00
issue-41883.rs Make traits / trait methods detected by the dead code lint! 2024-02-07 10:22:16 +08:00
issue-41883.stderr Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
issue-59003.rs Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
issue-68408-false-positive.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-85071-2.rs Report uninhabited call return types on MIR. 2025-10-11 20:50:20 +00:00
issue-85071-2.stderr Diagnose liveness on MIR. 2025-10-11 20:50:21 +00:00
issue-85071.rs Report uninhabited call return types on MIR. 2025-10-11 20:50:20 +00:00
issue-85071.stderr Diagnose liveness on MIR. 2025-10-11 20:50:21 +00:00
issue-85255.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-85255.stderr
leading-underscore.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
lint-dead-code-1.rs Add regression test showing we don't realize some consts are used 2025-01-29 15:45:13 +00:00
lint-dead-code-1.stderr Add regression test showing we don't realize some consts are used 2025-01-29 15:45:13 +00:00
lint-dead-code-2.rs remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
lint-dead-code-2.stderr remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
lint-dead-code-3.rs
lint-dead-code-3.stderr
lint-dead-code-4.rs
lint-dead-code-4.stderr
lint-dead-code-5.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
lint-dead-code-5.stderr Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
lint-dead-code-6.rs
lint-dead-code-6.stderr
lint-unused-adt-appeared-in-pattern.rs Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
lint-unused-adt-appeared-in-pattern.stderr Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
multiple-dead-codes-in-the-same-struct.rs Update tests 2024-02-07 10:42:01 +08:00
multiple-dead-codes-in-the-same-struct.stderr Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
newline-span.rs
newline-span.stderr
no-dead-code-for-static-trait-impl.rs Cleaned up 4 tests in tests/ui/issues 2025-04-19 01:10:26 -06:00
no-dead-code-reexported-types-across-crates.rs Cleaned up 4 tests in tests/ui/issues 2025-04-19 01:10:26 -06:00
not-lint-adt-appeared-in-pattern-issue-120770.rs Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
offset-of-correct-param-env.rs Stabilize offset_of_nested 2024-07-29 17:50:12 +01:00
offset-of.rs Stabilize offset_of_nested 2024-07-29 17:50:12 +01:00
offset-of.stderr Stabilize offset_of_nested 2024-07-29 17:50:12 +01:00
pub-field-in-priv-mod.rs Replace visibility test with reachability test in dead code detection 2024-03-12 10:59:40 +01:00
pub-field-in-priv-mod.stderr Replace visibility test with reachability test in dead code detection 2024-03-12 10:59:40 +01:00
self-assign.rs fix: re-enable self-assignment 2025-08-10 22:50:14 +09:00
self-assign.stderr fix: re-enable self-assignment 2025-08-10 22:50:14 +09:00
trait-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait-only-used-as-type-bound.rs Add test for issue 127911 and 128839 2025-05-29 20:51:51 +08:00
tuple-struct-field.rs Suggest removing unused tuple fields if they are the last fields 2024-05-13 17:42:44 +05:30
tuple-struct-field.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
type-alias.rs
type-alias.stderr
type-in-foreign.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-in-transparent.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused-adt-impl-pub-trait-with-assoc-const.rs Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
unused-adt-impl-pub-trait-with-assoc-const.stderr Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
unused-adt-impls-pub-trait.rs Detect unused struct impls pub trait 2024-03-10 23:30:53 +08:00
unused-adt-impls-pub-trait.stderr Detect unused struct impls pub trait 2024-03-10 23:30:53 +08:00
unused-adt-impls-trait.rs Detect unused structs which implement private traits 2024-05-23 09:07:59 +08:00
unused-adt-impls-trait.stderr Detect unused structs which implement private traits 2024-05-23 09:07:59 +08:00
unused-assoc-fns.rs
unused-assoc-fns.stderr
unused-enum.rs
unused-enum.stderr
unused-struct-derive-default.rs Make Default const and add some const Default impls 2025-07-07 22:09:37 +00:00
unused-struct-derive-default.stderr Marks ADT live if it appears in pattern 2025-06-14 13:44:43 +08:00
unused-struct-variant.rs
unused-struct-variant.stderr
unused-trait-with-assoc-const.rs Check assoc consts and tys later like assoc fns 2025-07-10 23:39:54 +08:00
unused-trait-with-assoc-const.stderr Check assoc consts and tys later like assoc fns 2025-07-10 23:39:54 +08:00
unused-trait-with-assoc-ty.rs Check assoc consts and tys later like assoc fns 2025-07-10 23:39:54 +08:00
unused-trait-with-assoc-ty.stderr Check assoc consts and tys later like assoc fns 2025-07-10 23:39:54 +08:00
unused-variant-pub.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused-variant.rs Show notice about "never used" for enum 2024-06-16 18:33:51 +09:00
unused-variant.stderr Show notice about "never used" for enum 2024-06-16 18:33:51 +09:00
with-core-crate.rs
with-core-crate.stderr
with-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00