Files
rust/src
Dylan DPC de01a29fbe 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.
2020-01-17 11:16:37 +05:30
..
2020-01-13 12:54:16 +00:00
2020-01-16 11:32:50 -08:00
2020-01-09 22:38:40 +01:00
2020-01-13 13:41:25 +01:00
2020-01-11 14:27:52 -05:00
2020-01-01 09:52:29 +07:00
2020-01-09 11:52:03 +09:00
2020-01-07 21:28:22 +01:00

This directory contains the source code of the rust project, including:

  • rustc and its tests
  • libstd
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc guide.