rust/tests/ui/lint/dead-code
Matthias Krüger a73a025190
Rollup merge of #128284 - GKFX:stabilize-offset-of-nested, r=dtolnay,jieyouxu
Stabilize offset_of_nested

Tracking issue #120140. Closes #120140.

As the FCP is now nearing its end I have opened a stabilization PR. I have done this separately to the offset_of_enum feature, since that FCP has not started.

`@rustbot` label  F-offset_of_nested T-lang T-libs-api
2024-07-29 21:26:13 +02: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 RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02: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 RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02: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 RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
allow-unconstructed-pub-struct.rs Add pub struct with allow(dead_code) into worklist 2024-06-12 17:58:20 +08: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
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
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
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 Improve dead code analysis 2024-07-04 22:05:00 +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 [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
leading-underscore.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-dead-code-1.rs Detect pub structs never constructed and unused associated constants in traits 2024-06-05 23:20:09 +08:00
lint-dead-code-1.stderr Detect pub structs never constructed and unused associated constants in traits 2024-06-05 23:20:09 +08:00
lint-dead-code-2.rs
lint-dead-code-2.stderr
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 Improve dead code analysis 2024-07-04 22:05:00 +08:00
lint-unused-adt-appeared-in-pattern.stderr Improve dead code analysis 2024-07-04 22:05:00 +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 Detect unused struct impls pub trait 2024-03-10 23:30:53 +08:00
newline-span.rs
newline-span.stderr
not-lint-used-adt-appeared-in-pattern.rs Improve dead code analysis 2024-07-04 22:05:00 +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 [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 Suggest removing unused tuple fields if they are the last fields 2024-05-13 17:42:44 +05:30
tuple-struct-field.stderr Suggest removing unused tuple fields if they are the last fields 2024-05-13 17:42:44 +05:30
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
unconstructible-pub-struct.rs Not lint pub structs without pub constructors if containing fields of unit, never type, PhantomData and positional ZST 2024-07-26 21:56:35 +08:00
unconstructible-pub-struct.stderr Not lint pub structs without pub constructors if containing fields of unit, never type, PhantomData and positional ZST 2024-07-26 21:56:35 +08:00
unused-adt-impl-pub-trait-with-assoc-const.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
unused-adt-impl-pub-trait-with-assoc-const.stderr Improve dead code analysis 2024-07-04 22:05:00 +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-const.rs Detect pub structs never constructed and unused associated constants in traits 2024-06-05 23:20:09 +08:00
unused-assoc-const.stderr Detect pub structs never constructed and unused associated constants in traits 2024-06-05 23:20:09 +08:00
unused-assoc-fns.rs
unused-assoc-fns.stderr
unused-enum.rs
unused-enum.stderr
unused-impl-for-non-adts.rs Extend rules of dead code analysis for impls for adts to impls for types refer to adts 2024-06-27 14:11:54 +08:00
unused-impl-for-non-adts.stderr Extend rules of dead code analysis for impls for adts to impls for types refer to adts 2024-06-27 14:11:54 +08:00
unused-pub-struct.rs Detect pub structs never constructed and unused associated constants in traits 2024-06-05 23:20:09 +08:00
unused-pub-struct.stderr Detect pub structs never constructed and unused associated constants in traits 2024-06-05 23:20:09 +08:00
unused-struct-derive-default.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
unused-struct-derive-default.stderr Improve dead code analysis 2024-07-04 22:05:00 +08:00
unused-struct-variant.rs
unused-struct-variant.stderr
unused-trait-with-assoc-ty.rs Mark assoc tys live only if the trait is live 2024-06-18 16:00:57 +08:00
unused-trait-with-assoc-ty.stderr Mark assoc tys live only if the trait is live 2024-06-18 16:00:57 +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