rust/tests/ui/lint/dead-code
Arthur Carcano a0fe4138ed Replace visibility test with reachability test in dead code detection
Fixes https://github.com/rust-lang/rust/issues/119545
2024-03-12 10:59:40 +01:00
..
alias-in-pat.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
allow-or-expect-dead_code-114557-2.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
allow-or-expect-dead_code-114557-2.stderr Respect `#[expect]` the same way `#[allow]` is with the `dead_code` lint 2023-08-10 22:57:48 +02:00
allow-or-expect-dead_code-114557-3.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
allow-or-expect-dead_code-114557-3.stderr Respect `#[expect]` the same way `#[allow]` is with the `dead_code` lint 2023-08-10 22:57:48 +02:00
allow-or-expect-dead_code-114557.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
anon-const-in-pat.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
associated-type.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
basic.rs
basic.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
closure-bang.rs Unignore closure-bang. 2023-04-15 14:43:20 -07:00
closure-bang.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
const-and-self.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
const-and-self.stderr
empty-unused-enum.rs
empty-unused-enum.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
in-closure.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
in-closure.stderr
issue-41883.rs Make traits / trait methods detected by the dead code lint! 2024-02-07 10:22:16 +08:00
issue-41883.stderr Detect unused struct impls pub trait 2024-03-10 23:30:53 +08:00
issue-59003.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00: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 [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-85071-2.stderr
issue-85071.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-85071.stderr
issue-85255.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-85255.stderr dead-code-lint: de-dup multiple unused assoc fns 2023-04-13 22:42:47 +12:00
leading-underscore.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
lint-dead-code-1.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
lint-dead-code-1.stderr
lint-dead-code-2.rs
lint-dead-code-2.stderr
lint-dead-code-3.rs diagnostics: update test cases to refer to assoc fn with `self` as method 2023-02-22 08:40:47 -07:00
lint-dead-code-3.stderr dead-code-lint: de-dup multiple unused assoc fns 2023-04-13 22:42:47 +12:00
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 dead-code-lint: de-dup multiple unused assoc fns 2023-04-13 22:42:47 +12:00
lint-dead-code-6.stderr dead-code-lint: de-dup multiple unused assoc fns 2023-04-13 22:42:47 +12: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 Detect unused struct impls pub trait 2024-03-10 23:30:53 +08:00
newline-span.rs
newline-span.stderr
offset-of-correct-param-env.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
offset-of.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of.stderr bless 2023-04-21 02:14:03 -07: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 [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
self-assign.stderr
trait-impl.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
tuple-struct-field.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
tuple-struct-field.stderr Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
type-alias.rs
type-alias.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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-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-assoc-fns.rs impl reviewer feedback 2023-04-13 23:39:14 +12:00
unused-assoc-fns.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unused-enum.rs
unused-enum.stderr
unused-struct-variant.rs
unused-struct-variant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unused-variant-pub.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
unused-variant.rs
unused-variant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
with-core-crate.rs
with-core-crate.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
with-impl.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00