rust/tests/ui/structs
Jacob Pratt 82bb6d523b
Rollup merge of #145896 - Oneirical:uncountable-integer-10, r=jieyouxu
Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#3 of Batch #2]

Part of rust-lang/rust#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
2025-09-13 03:26:02 -04:00
..
auxiliary Add test batch 2 2025-08-27 15:06:05 -04:00
default-field-values Do not ICE on private type in field of unresolved struct 2025-08-14 15:59:32 +00:00
basic-newtype-pattern.rs cleaned up some tests 2025-06-30 11:50:19 +05:00
btree-struct-usage-8044.rs Add test batch 2 2025-08-27 15:06:05 -04:00
default-field-values-non_exhaustive.rs Restrict #[non_exaustive] on structs with default field values 2024-12-20 17:18:54 +00:00
default-field-values-non_exhaustive.stderr Restrict #[non_exaustive] on structs with default field values 2024-12-20 17:18:54 +00:00
destructuring-struct-type-inference-8783.rs Rehome tests/ui/issues/ tests [5/?] 2025-08-17 13:01:02 -04:00
destructuring-struct-with-dtor-6344.rs Add test batch 1 2025-08-27 00:23:26 -04:00
field-implied-unsizing-wfcheck.rs Test more cases of WF-checking for fields 2024-08-05 17:56:50 -07:00
field-implied-unsizing-wfcheck.stderr Test more cases of WF-checking for fields 2024-08-05 17:56:50 -07:00
ice-struct-tail-normalization-113272.rs Add TooGeneric variant to LayoutError and emit Unknown one 2025-01-27 00:37:34 +01:00
ice-struct-tail-normalization-113272.stderr fix ICE with references to infinite structs in consts 2025-01-14 01:22:04 +01:00
ident-from-macro-expansion.rs Also note struct access, and fix macro expansion from foreign crates 2025-03-04 00:04:01 +00:00
ident-from-macro-expansion.stderr Also note struct access, and fix macro expansion from foreign crates 2025-03-04 00:04:01 +00:00
incomplete-fn-in-struct-definition.rs
incomplete-fn-in-struct-definition.stderr
invalid-self-constructor-56835.rs Add test batch 3 2025-09-12 14:45:12 -04:00
invalid-self-constructor-56835.stderr Add test batch 3 2025-09-12 14:45:12 -04:00
issue-80853.rs
issue-80853.stderr
large-records.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
manual-default-impl-could-be-derived.rs Implement default_overrides_default_fields lint 2024-12-25 23:25:45 +00:00
manual-default-impl-could-be-derived.stderr Provide structured suggestion for impl Default of type where all fields have defaults 2024-12-31 18:06:01 +00:00
method-chain-expression-failure.rs
method-chain-expression-failure.stderr
multi-line-fru-suggestion.rs
multi-line-fru-suggestion.stderr
mutable-unit-struct-borrow-11267.rs comments 2025-07-25 20:38:54 +05:00
nonexistent-struct-field-error-5439.rs Add test batch 1 2025-08-27 00:23:26 -04:00
nonexistent-struct-field-error-5439.stderr Add test batch 1 2025-08-27 00:23:26 -04:00
rhs-type.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
struct-base-wrong-type.rs
struct-base-wrong-type.stderr
struct-construct-with-call-issue-138931.rs Add ui test for struct construction by calling syntax 2025-03-27 18:50:39 +08:00
struct-construct-with-call-issue-138931.stderr Improve suggest construct with literal syntax instead of calling 2025-03-27 20:09:37 +08:00
struct-duplicate-comma.fixed
struct-duplicate-comma.rs
struct-duplicate-comma.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
struct-field-access-errors-24365.rs Rehome tests/ui/issues/ tests [4/?] 2025-08-10 11:54:15 -04:00
struct-field-access-errors-24365.stderr Rehome tests/ui/issues/ tests [4/?] 2025-08-10 11:54:15 -04:00
struct-field-cfg.rs
struct-field-cfg.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
struct-field-init-syntax.rs
struct-field-init-syntax.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
struct-field-privacy.rs
struct-field-privacy.stderr
struct-fields-decl-dupe.rs
struct-fields-decl-dupe.stderr
struct-fields-dupe.rs
struct-fields-dupe.stderr
struct-fields-hints-no-dupe.rs
struct-fields-hints-no-dupe.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
struct-fields-hints.rs
struct-fields-hints.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
struct-fields-missing.rs
struct-fields-missing.stderr
struct-fields-shorthand-unresolved.rs
struct-fields-shorthand-unresolved.stderr
struct-fields-shorthand.rs
struct-fields-shorthand.stderr
struct-fields-too-many.rs
struct-fields-too-many.stderr
struct-fields-typo.rs
struct-fields-typo.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
struct-fn-in-definition.rs
struct-fn-in-definition.stderr
struct-missing-comma.fixed UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
struct-missing-comma.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
struct-missing-comma.stderr
struct-pat-derived-error.rs
struct-pat-derived-error.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
struct-path-alias-bounds.rs
struct-path-alias-bounds.stderr
struct-path-associated-type.rs
struct-path-associated-type.stderr Preserve generic args in suggestions for ambiguous associated items 2025-05-06 17:04:03 +02:00
struct-path-self-type-mismatch.rs
struct-path-self-type-mismatch.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
struct-path-self.rs
struct-path-self.stderr
struct-record-suggestion.fixed
struct-record-suggestion.rs
struct-record-suggestion.stderr
struct-tuple-field-names.rs
struct-tuple-field-names.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
struct-variant-privacy-xc.rs
struct-variant-privacy-xc.stderr
struct-variant-privacy.rs
struct-variant-privacy.stderr
structure-constructor-type-mismatch.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
structure-constructor-type-mismatch.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
suggest-private-fields.rs
suggest-private-fields.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
suggest-replacing-field-when-specifying-same-type.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
suggest-replacing-field-when-specifying-same-type.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
trie-node-structure-usage-3389.rs Rehome tests/ui/issues/ tests [1/?] 2025-07-24 17:01:44 -04:00
tuple-struct-field-naming-47073.rs Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
tuple-struct-field-naming-47073.stderr Do not provide field typo suggestions for tuples and tuple structs 2025-08-07 21:39:00 +00:00
unresolved-struct-with-fru.rs
unresolved-struct-with-fru.stderr