about summary refs log tree commit diff
path: root/compiler/rustc_parse_format
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-26 07:29:15 +0000
committerbors <bors@rust-lang.org>2022-04-26 07:29:15 +0000
commitd6a57d3730a4e523c433e5528988a2a4f111e94e (patch)
treefd54467a11fa702f622154e07dacea9e572adb45 /compiler/rustc_parse_format
parent1c988cfa0b7f4d3bc5b1cb40dc5002f5adbfb9ad (diff)
parentdc41dbaf8eec1ff144f45c8a3c65b7514aa70895 (diff)
downloadrust-d6a57d3730a4e523c433e5528988a2a4f111e94e.tar.gz
rust-d6a57d3730a4e523c433e5528988a2a4f111e94e.zip
Auto merge of #94034 - willcrichton:fix-trait-suggestion-for-binops, r=estebank
Fix incorrect suggestion for trait bounds involving binary operators

This PR fixes #93927, #92347, #93744 by replacing the bespoke trait-suggestion logic in `op.rs` with a more common code path.

The downside is that this fix causes some suggestions to not include an `Output=` type, reducing their usefulness.

Note that this causes one case in the `missing-bounds.rs` test to fail rustfix. So I would need to move that code into a separate non-fix test if this PR is otherwise acceptable.
Diffstat (limited to 'compiler/rustc_parse_format')
0 files changed, 0 insertions, 0 deletions