rust/src
A4-Tacks a215480269
Migrate unwrap_block assist to use SyntaxEditor
- Fix invalid match in let-stmt
- Fix multiple statements loses indent

Example
---
```rust
fn main() {
    let value = match rel_path {
        Ok(rel_path) => {$0
            let rel_path = RelativePathBuf::from_path(rel_path).ok()?;
            Some((*id, rel_path))
        }
        Err(_) => None,
    };
}
```

**Before this PR**

```rust
fn main() {
    let value = let rel_path = RelativePathBuf::from_path(rel_path).ok()?;
    let value = Some((*id, rel_path));
}
```

**After this PR**

```rust
fn main() {
    let rel_path = RelativePathBuf::from_path(rel_path).ok()?;
    let value = Some((*id, rel_path));
}
```

---

```rust
fn main() {
    let mut a = {$0
        1;
        2;
        3
    };
}
```

**Before this PR**

```rust
fn main() {
    1;
2;
    let mut a = 3;
}
```

**After this PR**

```rust
fn main() -> i32 {
    1;
    2;
    let mut a = 3;
}
```
2026-01-13 21:31:22 +08:00
..
bootstrap Rollup merge of #150873 - reenable-gcc-download-ci, r=marcoieni 2026-01-11 09:56:49 +01:00
build_helper Update bors e-mail lookup 2026-01-07 22:45:41 +01:00
ci Reenable GCC CI download 2026-01-09 14:35:15 +01:00
doc Rollup merge of #150876 - gcc-dev-guide, r=Kobzol 2026-01-10 08:34:07 +01:00
etc fixup debugger files wrt to MaybeDangling 2025-12-26 22:02:17 +01:00
gcc@0081ca6631 Update GCC submodule 2025-11-26 20:11:43 +01:00
librustdoc Rollup merge of #150867 - chore-librustdoc-json-mem-take, r=GuillaumeGomez 2026-01-10 08:33:58 +01:00
llvm-project@00d23d10dc Update LLVM submodule 2025-12-20 09:53:08 +08:00
rustc-std-workspace Generalize branch references to HEAD 2025-11-02 11:15:55 +01:00
rustdoc-json-types rustdoc-json: add rlib path to ExternalCrate to enable robust crate resolution 2025-11-21 09:22:59 +00:00
tools Migrate unwrap_block assist to use SyntaxEditor 2026-01-13 21:31:22 +08:00
README.md
stage0 Update bors e-mail lookup 2026-01-07 22:45:41 +01:00
version bump version number 2025-12-05 19:33:24 +00:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.