rust/src
Dylan DPC 91e5384fc0
Rollup merge of #81869 - mark-i-m:leading-vert, r=petrochenkov
Simplify pattern grammar, improve or-pattern diagnostics

This implements the change under FCP in https://github.com/rust-lang/rust/issues/81415. It allows nested or-patterns to contain a leading `|`, simplifying the [grammar for patterns](https://github.com/rust-lang/reference/pull/957/files?short_path=cc629f1#diff-cc629f15712821139bc706c63b3845ab59a008e2a998e08ffad42e3aebcbcbe2).

Along the way, we also improve the diagnostics around a few specially-handled cases, such as using `||` instead of `|`, using or-patterns in fn params, including the leading `|` in the pattern span, etc.

r? `@petrochenkov`
2021-02-17 23:51:16 +01:00
..
bootstrap Rollup merge of #82163 - matthiaskrgr:slice, r=jyn514 2021-02-16 19:21:20 +01:00
build_helper Fix even more URLs 2020-11-05 20:11:29 +01:00
ci Auto merge of #81666 - hyd-dev:miri-windows-test-fail, r=Mark-Simulacrum 2021-02-13 13:47:02 +00:00
doc Update books 2021-02-16 17:19:28 -08:00
etc Rollup merge of #81891 - CraftSpider:fn-header, r=jyn514 2021-02-14 16:54:45 +01:00
librustdoc Rollup merge of #82207 - ehuss:rustdoc-2021, r=jyn514 2021-02-17 20:38:07 +01:00
llvm-project@70d09f218d Bump LLVM submodule 2021-01-27 23:08:54 +00:00
rustdoc-json-types Rollup merge of #81891 - CraftSpider:fn-header, r=jyn514 2021-02-14 16:54:45 +01:00
test Rollup merge of #81869 - mark-i-m:leading-vert, r=petrochenkov 2021-02-17 23:51:16 +01:00
tools Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
README.md update message 2021-02-14 10:08:37 +05:30
stage0.txt Bump rustfmt version 2021-02-02 09:09:52 -05:00
version bump nightly version to 1.52.0 2021-02-05 16:25:08 +01: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.