Files
rust/compiler/rustc_parse
Roland Xu 96c6172a4c Rollup merge of #163006 - lapla-cogito:letelse_fullwidthbrace, r=folkertdev
Use `end_point` for trailing brace in `let...else` diagnostics

The following ICEs because `}` is a fullwidth lookalike of `}`:

```rs
fn main() {
    let x = {1} else { return; };
}
```

The diagnostic for a trailing curly brace before else in a let...else statement computed the brace span with `span.hi() - BytePos(1)`. That assumes the brace is a single ASCII byte.
2026-09-20 09:23:42 +08:00
..