Improve formatting of closure capture migration suggestion for multi-line closures. Fixes https://github.com/rust-lang/rust/issues/87952 Before: ``` help: add a dummy let to cause `a` to be fully captured | 5 ~ let _ = || { let _ = &a; 6 + dbg!(a.0); 7 ~ }; | ``` After: ``` help: add a dummy let to cause `a` to be fully captured | 5 ~ let _ = || { 6 + let _ = &a; 7 + dbg!(a.0); 8 ~ }; | ``` |
||
|---|---|---|
| .. | ||
| bootstrap | ||
| build_helper | ||
| ci | ||
| doc | ||
| etc | ||
| librustdoc | ||
| llvm-project@260e0f8682 | ||
| rustdoc-json-types | ||
| test | ||
| tools | ||
| README.md | ||
| stage0.txt | ||
| version | ||
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.