diff options
| author | bors <bors@rust-lang.org> | 2022-08-08 15:20:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-08 15:20:24 +0000 |
| commit | 4912c0ece4a7082bd6fda38fe0ea1de4335ce2a7 (patch) | |
| tree | 02b6aa25592d003805f89864e72a35389fe83165 /compiler/rustc_mir_transform/src/coverage/query.rs | |
| parent | 0ee702514e482ee7901fba03d03dc9bd68809c92 (diff) | |
| parent | ecb51fe6a55f975f2d3bfd65d3568c263c248460 (diff) | |
| download | rust-4912c0ece4a7082bd6fda38fe0ea1de4335ce2a7.tar.gz rust-4912c0ece4a7082bd6fda38fe0ea1de4335ce2a7.zip | |
Auto merge of #9126 - Jarcho:auto_deref_sugg, r=Manishearth
`explicit_auto_deref` changes
fixes #9123
fixes #9109
fixes #9143
fixes #9101
This avoid suggesting code which hits a rustc bug. Basically `&{x}` won't use auto-deref if the target type is `Sized`.
changelog: Don't suggest using auto deref for block expressions when the target type is `Sized`
changelog: Include the borrow in the suggestion for `explicit_auto_deref`
changelog: Don't lint `explicit_auto_deref` on `dyn Trait` return
changelog: Don't lint `explicit_auto_deref` when other adjustments are required
changelog: Lint `explicit_auto_deref` in implicit return positions for closures
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions
