diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-01-17 11:16:37 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-17 11:16:37 +0530 |
| commit | de01a29fbee586a13f10ee928df7c15c5a170587 (patch) | |
| tree | 5df2f8765a42cd59c9d6244b56d7d18b56d8d77f /src/libstd/sys/unix/stack_overflow.rs | |
| parent | ecf42a3d624b859bcfeffc1c454ebd964eac0422 (diff) | |
| parent | 029a9c625371e756d93024efd3deb7636a90f8f8 (diff) | |
| download | rust-de01a29fbee586a13f10ee928df7c15c5a170587.tar.gz rust-de01a29fbee586a13f10ee928df7c15c5a170587.zip | |
Rollup merge of #68195 - estebank:impl-trait-2000, r=Centril
Account for common `impl Trait`/`dyn Trait` return type errors - When all return paths have the same type, suggest `impl Trait`. - When all return paths implement the expected `trait`, suggest `Box<dyn Trait>` and mention using an `enum`. - When multiple different types are returned and `impl Trait` is expected, extend the explanation. - When return type is `impl Trait` and the return paths do not implement `Trait`, point at the returned values. - Split `src/librustc/traits/error_reporting.rs` into multiple files to keep size under control. Fix #68110, cc #66523.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
