mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
![]() Avoid follow-up errors and ICEs after missing lifetime errors on data structures Tuple struct constructors are functions, so when we call them typeck will use the signature tuple struct constructor function to provide type hints. Since typeck mostly ignores and erases lifetimes, we end up never seeing the error lifetime in writeback, thus not tainting the typeck result. Now, we eagerly taint typeck results by tainting from `resolve_vars_if_possible`, which is called all over the place. I did not carry over all the `crashes` test suite tests, as they are really all the same cause (missing or unknown lifetime names in tuple struct definitions or generic arg lists). fixes #124262 fixes #124083 fixes #125155 fixes #125888 fixes #125992 fixes #126666 fixes #126648 fixes #127268 fixes #127266 fixes #127304 |
||
---|---|---|
.. | ||
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 | ||
issue-14227.rs | ||
issue-14227.stderr | ||
issue-15261.rs | ||
issue-15261.stderr | ||
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 | ||
missing_lifetime.stderr | ||
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 | ||
static-promotion.rs | ||
static-recursive.rs | ||
static-recursive.stderr | ||
uninhabited-static.rs | ||
uninhabited-static.stderr | ||
unsized_type2.rs | ||
unsized_type2.stderr |