rust/src
Mara 20887b7ebf
Rollup merge of #81939 - kper:fixing-81584-allocate-in-iter, r=davidtwco
Add suggestion `.collect()` for iterators in iterators

Closes #81584

```
error[E0515]: cannot return value referencing function parameter `y`
 --> main3.rs:4:38
  |
4 | ...                   .map(|y| y.iter().map(|x| x + 1))
  |                                -^^^^^^^^^^^^^^^^^^^^^^
  |                                |
  |                                returns a value referencing data owned by the current function
  |                                `y` is borrowed here
  |                                help: Maybe use `.collect()` to allocate the iterator
```

Added the suggestion: `help: Maybe use `.collect()` to allocate the iterator`
2021-03-05 10:57:18 +01:00
..
bootstrap Auto merge of #81451 - nikic:llvm-12, r=nagisa 2021-03-04 15:16:44 +00:00
build_helper Fix even more URLs 2020-11-05 20:11:29 +01:00
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 #82315 - jsha:font-display-swap, r=GuillaumeGomez 2021-03-04 20:01:04 +09:00
etc Change twice used large const table to static 2021-03-01 10:41:16 -08:00
librustdoc Rollup merge of #82744 - camelid:cratenum-byval, r=GuillaumeGomez 2021-03-04 20:01:12 +09:00
llvm-project@40618a2340 Update submodule to LLVM 12 2021-03-01 23:35:34 +01: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 #81939 - kper:fixing-81584-allocate-in-iter, r=davidtwco 2021-03-05 10:57:18 +01:00
tools Auto merge of #82553 - tmiasko:update-tracing, r=Mark-Simulacrum 2021-03-03 18:01:29 +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

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.