Do not ICE on default_field_value const with lifetimes `#![feature(default_field_values)]` uses a `const` body that should be treated as inline `const`s, but is actually being detected otherwise. This is similar to the situation in #78174, so we take the same solution: we check if the const actually comes from a field, and if it does, we use that logic to get the appropriate lifetimes and not ICE during borrowck. Fix #135649. |
||
|---|---|---|
| .. | ||
| auxiliary | ||
| do-not-ice-on-invalid-lifetime.rs | ||
| do-not-ice-on-invalid-lifetime.stderr | ||
| empty-struct.rs | ||
| empty-struct.stderr | ||
| failures.rs | ||
| failures.stderr | ||
| invalid-const.rs | ||
| invalid-const.stderr | ||
| non-exhaustive-ctor.disabled.stderr | ||
| non-exhaustive-ctor.enabled.fixed | ||
| non-exhaustive-ctor.enabled.stderr | ||
| non-exhaustive-ctor.rs | ||
| support.rs | ||
| use-normalized-ty-for-default-struct-value.rs | ||
| visibility.rs | ||
| visibility.stderr | ||