mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
f1030765f3
Rudimentary heuristic to insert parentheses when needed for RPIT overcaptures lint We don't have basically any preexisting machinery to detect when parentheses are needed for *types*. AFAICT, all of the diagnostics we have for opaques just... fail when they suggest `+ 'a` when that's ambiguous. Fixes #132853