rust/src
bors f361413cbf Auto merge of #106399 - estebank:type-err-span-label, r=nagisa
Modify primary span label for E0308

Looking at the reactions to https://hachyderm.io/`@ekuber/109622160673605438,` a lot of people seem to have trouble understanding the current output, where the primary span label on type errors talks about the specific types that diverged, but these can be deeply nested type parameters. Because of that we could see "expected i32, found u32" in the label while the note said "expected Vec<i32>, found Vec<u32>". This understandably confuses people. I believe that once people learn to read these errors it starts to make more sense, but this PR changes the output to be more in line with what people might expect, without sacrificing terseness.

Fix #68220.
2023-01-31 13:53:40 +00:00
..
bootstrap Auto merge of #107080 - Urgau:cleanup-bootstrap-extra-check-cfgs, r=Mark-Simulacrum 2023-01-30 13:56:40 +00:00
ci Auto merge of #103019 - Kobzol:ci-multistage-python, r=Mark-Simulacrum 2023-01-29 22:14:18 +00:00
doc Update books 2023-01-30 12:01:05 -05:00
etc Pass --locked to the x test tidy call 2023-01-21 20:21:04 +00:00
librustdoc Rollup merge of #107482 - notriddle:notriddle/keywords, r=jsha 2023-01-31 11:46:26 +09:00
llvm-project@477e7285b1 Pull in more LLVM commits 2023-01-20 07:48:59 -08:00
rustdoc-json-types Rustdoc-Json: Report discriminant on all kinds of enum variant. 2023-01-01 19:48:26 +00:00
tools Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json bump stage0 2022-12-28 09:18:43 -05:00
version Bump to 1.69.0 2023-01-20 18:06:54 -05:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

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