mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
47e6437af4
Return a single diagnostic from `lex_token_trees`. It currently returns a `Vec` but in practice it always has one diagnostic in it. LLM disclosure: Claude Code identified this when I asked it to review `tokentrees.rs`. I made the change by hand and tested it myself. r? @chenyukang