rust/src
Guillaume Gomez 84d65fee0e
Rollup merge of #88894 - FabianWolff:issue-88818, r=estebank
Improve error message for missing trait in trait impl

Fixes #88818. For the following example:
```rust
struct S { }
impl for S { }
```
the current output is:
```
error: missing trait in a trait impl
 --> t1.rs:2:5
  |
2 | impl for S { }
  |     ^
```
With my changes, I get:
```
error: missing trait in a trait impl
 --> t1.rs:2:5
  |
2 | impl for S { }
  |     ^
  |
help: add a trait here
  |
2 | impl Trait for S { }
  |      +++++
help: for an inherent impl, drop this `for`
  |
2 - impl for S { }
2 + impl S { }
  |
```
2021-09-13 21:20:42 +02:00
..
bootstrap Rollup merge of #88885 - GuillaumeGomez:fix-jump-def-background, r=camelid 2021-09-13 21:20:41 +02:00
build_helper rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00
ci Rollup merge of #88699 - Mark-Simulacrum:fixes-cherry-picker, r=pietroalbini 2021-09-12 03:44:55 -07:00
doc Auto merge of #88529 - Meziu:master, r=nagisa 2021-09-13 05:48:03 +00:00
etc set the executable bit on pre-commit.sh 2021-08-11 15:06:33 -04:00
librustdoc Rollup merge of #88885 - GuillaumeGomez:fix-jump-def-background, r=camelid 2021-09-13 21:20:41 +02:00
llvm-project@86c7daa627 Update LLVM submodule 2021-09-11 00:15:38 +02:00
rustdoc-json-types rustdoc: Clean up handling of lifetime bounds 2021-09-02 14:27:59 -07:00
test Rollup merge of #88894 - FabianWolff:issue-88818, r=estebank 2021-09-13 21:20:42 +02:00
tools Auto merge of #88766 - ehuss:update-cargo, r=ehuss 2021-09-13 13:12:34 +00:00
README.md
stage0.json Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00
version Bump version to 1.57 2021-09-03 21:54:48 -04:00

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

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

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