diff options
| author | bors <bors@rust-lang.org> | 2020-01-26 08:36:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-26 08:36:23 +0000 |
| commit | 3d8778d767f0dde6fe2bc9459f21ead8e124d8cb (patch) | |
| tree | 275bf8e6df726e09789e7143b3ee5e1ecb0baf46 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | fe1e81561aa1c0ba5779709d081107ea0bfa08e5 (diff) | |
| parent | 16709f032cfaa0b37a83bc798f0dd4a30d2b2c0c (diff) | |
| download | rust-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/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
