Skip to content

Commit

Permalink
Rollup merge of #118035 - ouz-a:november_ice2, r=compiler-errors
Browse files Browse the repository at this point in the history
Fix early param lifetimes in generic_const_exprs

In cases like below, we never actually be able to capture region name for two reasons, first `'static` becomes anonymous lifetime and second we never capture region if it doesn't have a name so this results in ICE.
```
struct DataWrapper<'static> {
    data: &'a [u8; Self::SIZE],
}

impl DataWrapper<'a> {
```

Fixes rust-lang/rust#118021
  • Loading branch information
Noratrieb authored Nov 21, 2023
2 parents 0027b12 + 8efc24f commit a90e52a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit a90e52a

Please sign in to comment.