rust/tests/ui/statics
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
check-immutable-mut-slices.rs
check-immutable-mut-slices.stderr
check-recursion-foreign.rs
check-values-constraints.rs
check-values-constraints.stderr
const_generics.rs Split part of adt_const_params into unsized_const_params 2024-07-17 11:01:29 +01:00
issue-14227.rs
issue-14227.stderr
issue-15261.rs
issue-15261.stderr Use more accurate span for addr_of! suggestion 2024-07-18 18:39:20 +00:00
issue-17233.rs
issue-17718-static-sync.rs
issue-17718-static-sync.stderr
issue-17718-static-unsafe-interior.rs
issue-44373-2.rs
issue-44373.rs
issue-44373.stderr
issue-91050-1.rs
issue-91050-2.rs
missing_lifetime.rs Avoid follow-up errors and ICEs after missing lifetime errors on data structures 2024-07-11 11:00:15 +00:00
missing_lifetime.stderr Avoid follow-up errors and ICEs after missing lifetime errors on data structures 2024-07-11 11:00:15 +00:00
mutable_memory_validation.rs
mutable_memory_validation.stderr
nested_struct.rs
nested_thread_local.rs
nested_thread_local.stderr
nested-allocations-dont-inherit-codegen-attrs.rs
recursive_interior_mut.rs
static-fn-inline-xc.rs
static-fn-trait-xc.rs
static-function-pointer-xc.rs
static-function-pointer.rs
static-impl.rs
static-impl.stderr
static-method-in-trait-with-tps-intracrate.rs
static-method-xcrate.rs
static-methods-in-traits2.rs
static-methods-in-traits.rs
static-mut-xc.rs
static-mut-xc.stderr Use more accurate span for addr_of! suggestion 2024-07-18 18:39:20 +00:00
static-promotion.rs
static-recursive.rs
static-recursive.stderr Use more accurate span for addr_of! suggestion 2024-07-18 18:39:20 +00:00
uninhabited-static.rs
uninhabited-static.stderr
unsized_type2.rs
unsized_type2.stderr
unsizing-wfcheck-issue-127299.rs WF-check struct field types at construction site 2024-08-05 17:37:12 -07:00
unsizing-wfcheck-issue-127299.stderr WF-check struct field types at construction site 2024-08-05 17:37:12 -07:00