diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-12-11 03:30:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-11 03:30:44 -0500 |
| commit | f1030765f32a3ed31f25345ad2775dca76c05388 (patch) | |
| tree | 280e85f2790b3b49493902a98abefa82bdf3fffb /compiler/rustc_session/src/errors.rs | |
| parent | 16b64938c203ca8f63f5c6b82870423caa5cdccf (diff) | |
| parent | e134c74904bc83c1c92584fad388c20343a8be37 (diff) | |
| download | rust-f1030765f32a3ed31f25345ad2775dca76c05388.tar.gz rust-f1030765f32a3ed31f25345ad2775dca76c05388.zip | |
Rollup merge of #134142 - compiler-errors:paren-sug, r=jieyouxu
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
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
