about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-01-26 08:36:23 +0000
committerbors <bors@rust-lang.org>2020-01-26 08:36:23 +0000
commit3d8778d767f0dde6fe2bc9459f21ead8e124d8cb (patch)
tree275bf8e6df726e09789e7143b3ee5e1ecb0baf46 /src/test/codegen/src-hash-algorithm
parentfe1e81561aa1c0ba5779709d081107ea0bfa08e5 (diff)
parent16709f032cfaa0b37a83bc798f0dd4a30d2b2c0c (diff)
downloadrust-3d8778d767f0dde6fe2bc9459f21ead8e124d8cb.tar.gz
rust-3d8778d767f0dde6fe2bc9459f21ead8e124d8cb.zip
Auto merge of #68522 - estebank:impl-trait-sugg-2, r=oli-obk
Further improve `impl Trait`/`dyn Trait` suggestions

After reading [_Returning Trait Objects_ by Bryce Fisher-Fleig](https://bryce.fisher-fleig.org/blog/returning-trait-objects/), [I noticed that](https://www.reddit.com/r/rust/comments/esueur/returning_trait_objects/ffczl4k/) #68195 had a few bugs due to not ignoring `ty::Error`.

- Account for `ty::Error`.
- Account for `if`/`else` and `match` blocks when pointing at return types and referencing their types.
- Increase the multiline suggestion output from 6 lines to 20.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions