diff options
| author | bors <bors@rust-lang.org> | 2023-05-05 09:23:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-05 09:23:32 +0000 |
| commit | e461e53f0163fd2c7c443c5ca8335b6554b80619 (patch) | |
| tree | 4a49e2c293fdada1c5b045a828ca51df7275464c /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff | |
| parent | 0dd94d3b078fa524272f942f69239a9564532fe1 (diff) | |
| parent | 2a509d0eb2f17464502727797af1911b94b726f1 (diff) | |
| download | rust-e461e53f0163fd2c7c443c5ca8335b6554b80619.tar.gz rust-e461e53f0163fd2c7c443c5ca8335b6554b80619.zip | |
Auto merge of #14739 - lowr:fix/type-with-leading-lifetime, r=Veykril
Parse bare dyn types with leading lifetime TIL types may start with a lifetime identifier e.g. `type A = 'static + Trait;`. When parsing types, leading lifetime followed by a plus sign should be parsed as a bare dyn type rather than a generic lifetime argument or error type (which is what we produce today). Although it's no longer accepted since Rust 2021, it wouldn't hurt to support this obsolete syntax.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
