rust/src
bors f5d8117c33 Auto merge of #82536 - sexxi-goose:handle-patterns-take-2, r=nikomatsakis
2229: Handle patterns within closures correctly when `capture_disjoint_fields` is enabled

This PR fixes several issues related to handling patterns within closures when `capture_disjoint_fields` is enabled.
1. Matching is always considered a use of the place, even with `_` patterns
2. Compiler ICE when capturing fields in closures through `let` assignments

To do so, we

- Introduced new Fake Reads
- Delayed use of `Place` in favor of `PlaceBuilder`
- Ensured that `PlaceBuilder` can be resolved before attempting to extract `Place` in any of the pattern matching code

Closes rust-lang/project-rfc-2229/issues/27
Closes rust-lang/project-rfc-2229/issues/24
r? `@nikomatsakis`
2021-03-16 19:19:06 +00:00
..
bootstrap Make bootstrap be more informative when one does `x.py test` on a beta checkout without other mods. 2021-03-15 23:19:35 -04:00
build_helper
ci Auto merge of #82747 - JohnTitor:pin-es-check-version, r=Mark-Simulacrum 2021-03-04 19:24:21 +00:00
doc Rollup merge of #82979 - GuillaumeGomez:run-button-pos, r=Nemo157 2021-03-12 08:55:18 +09:00
etc Rollup merge of #82557 - rylev:natvis-improvements, r=varkor 2021-03-08 13:13:20 +01:00
librustdoc Rollup merge of #83157 - nagisa:nagisa/portability-background, r=GuillaumeGomez 2021-03-16 23:53:59 +09:00
llvm-project@62a1ddde22 Update llvm-project submodule 2021-03-11 22:04:10 +01:00
rustdoc-json-types x.py fmt 2021-03-06 15:50:29 -05:00
test Auto merge of #82536 - sexxi-goose:handle-patterns-take-2, r=nikomatsakis 2021-03-16 19:19:06 +00:00
tools Auto merge of #82536 - sexxi-goose:handle-patterns-take-2, r=nikomatsakis 2021-03-16 19:19:06 +00:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt Update the bootstrap compiler 2021-02-20 17:19:30 -05:00
version bump nightly version to 1.52.0 2021-02-05 16:25:08 +01:00

README.md

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.