rust/tests/ui/structs
Noah Lev 9479792cb4 WF-check struct field types at construction site
Rustc of course already WF-checked the field types at the definition
site, but for error tainting of consts to work properly, there needs to
be an error emitted at the use site. Previously, with no use-site error,
we proceeded with CTFE and ran into ICEs since we are running code with
type errors.

Emitting use-site errors also brings struct-like constructors more in
line with fn-like constructors since they already emit use-site errors
for WF issues.
2024-08-05 17:37:12 -07:00
..
auxiliary
field-implied-unsizing-wfcheck.rs WF-check struct field types at construction site 2024-08-05 17:37:12 -07:00
field-implied-unsizing-wfcheck.stderr WF-check struct field types at construction site 2024-08-05 17:37:12 -07:00
ice-struct-tail-normalization-113272.rs Handle normalization failure in struct_tail_erasing_lifetimes 2024-05-01 09:29:33 +05:30
ice-struct-tail-normalization-113272.stderr Handle normalization failure in struct_tail_erasing_lifetimes 2024-05-01 09:29:33 +05:30
incomplete-fn-in-struct-definition.rs
incomplete-fn-in-struct-definition.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-80853.rs
issue-80853.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
large-records.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
method-chain-expression-failure.rs
method-chain-expression-failure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
multi-line-fru-suggestion.rs
multi-line-fru-suggestion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
rhs-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-base-wrong-type.rs
struct-base-wrong-type.stderr
struct-duplicate-comma.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-duplicate-comma.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-duplicate-comma.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
struct-field-cfg.rs
struct-field-cfg.stderr
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-field-privacy.stderr
struct-fields-decl-dupe.rs
struct-fields-decl-dupe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fields-dupe.rs
struct-fields-dupe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fields-hints-no-dupe.rs
struct-fields-hints-no-dupe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fields-hints.rs
struct-fields-hints.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fields-missing.rs
struct-fields-missing.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fields-shorthand-unresolved.rs
struct-fields-shorthand-unresolved.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fields-shorthand.rs
struct-fields-shorthand.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fields-too-many.rs
struct-fields-too-many.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fields-typo.rs
struct-fields-typo.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-fn-in-definition.rs
struct-fn-in-definition.stderr
struct-missing-comma.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-missing-comma.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-missing-comma.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-pat-derived-error.rs
struct-pat-derived-error.stderr recover primary span label 2023-11-16 17:00:23 +00:00
struct-path-alias-bounds.rs
struct-path-alias-bounds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct-path-associated-type.rs
struct-path-associated-type.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
struct-path-self-type-mismatch.rs
struct-path-self-type-mismatch.stderr Suggest replacing Self with the right type on type error 2023-11-16 16:19:19 +00:00
struct-path-self.rs
struct-path-self.stderr
struct-record-suggestion.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-record-suggestion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-record-suggestion.stderr
struct-tuple-field-names.rs
struct-tuple-field-names.stderr
struct-variant-privacy-xc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct-variant-privacy-xc.stderr
struct-variant-privacy.rs
struct-variant-privacy.stderr
structure-constructor-type-mismatch.rs
structure-constructor-type-mismatch.stderr Revert suggestion verbosity change 2024-07-22 22:51:53 +00:00
suggest-private-fields.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-private-fields.stderr tweak logic of "unknown field" label 2023-11-18 00:40:11 +00:00
suggest-replacing-field-when-specifying-same-type.rs
suggest-replacing-field-when-specifying-same-type.stderr
unresolved-struct-with-fru.rs
unresolved-struct-with-fru.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00