rust/src
Dylan DPC eb36bc666a
Rollup merge of #76808 - LeSeulArtichaut:diagnose-functions-struct, r=jackh726
Improve diagnostics for functions in `struct` definitions

Tries to implement #76421.
This is probably going to need unit tests, but I wanted to hear from review all the cases tests should cover.

I'd like to follow up with the "mechanically applicable suggestion here that adds an impl block" step, but I'd need guidance. My idea for now would be to try to parse a function, and if that succeeds, create a dummy `ast::Item` impl block to then format it using `pprust`. Would that be a viable approach? Is there a better alternative?

r? `@matklad` cc `@estebank`
2021-05-08 01:06:22 +02:00
..
bootstrap Rollup merge of #84990 - GuillaumeGomez:sort-rustdoc-gui-tests, r=Mark-Simulacrum 2021-05-07 15:20:30 +09:00
build_helper
ci Rollup merge of #84911 - Mark-Simulacrum:retry-clang, r=pietroalbini 2021-05-07 15:20:28 +09:00
doc Rollup merge of #84815 - richkadel:coverage-docs-update-2021-05, r=tmandry 2021-05-07 15:20:24 +09:00
etc Fix HashMap/HashSet LLDB pretty-printer after hashbrown 0.11.0 2021-04-06 12:44:17 +03:00
librustdoc Rollup merge of #84442 - jyn514:doc-cfg, r=petrochenkov 2021-05-07 16:19:19 +02:00
llvm-project@b61c24f352 Update LLVM for more wasm simd updates 2021-04-30 07:27:34 -07:00
rustdoc-json-types rustdoc-json: Rename Import.span to Import.source 2021-03-21 19:47:12 -07:00
test Rollup merge of #76808 - LeSeulArtichaut:diagnose-functions-struct, r=jackh726 2021-05-08 01:06:22 +02:00
tools Auto merge of #84980 - flip1995:clippyup, r=Manishearth 2021-05-07 19:28:03 +00:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt Bump bootstrap compiler 2021-04-06 18:24:09 -07:00
version bump version to 1.54.0 2021-04-30 15:24:00 +02: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.