about summary refs log tree commit diff
path: root/tests/rustdoc/source-code-pages/source-version-separator.rs
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-08-14 08:34:31 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-08-14 08:34:31 +0800
commit861f9122c899a8ec52c62ecb0a1435226dd5fc1a (patch)
treef421eaea5b639a1bcc0215994e9271db65eef47c /tests/rustdoc/source-code-pages/source-version-separator.rs
parente52666380f6f03fb1211138171e0ef626ceb468d (diff)
downloadrust-861f9122c899a8ec52c62ecb0a1435226dd5fc1a.tar.gz
rust-861f9122c899a8ec52c62ecb0a1435226dd5fc1a.zip
Fix indent for convert_match_to_let_else
Example
---
```
//- minicore: option
fn f() {
    let x$0 = match Some(()) {
        Some(it) => it,
        None => {//comment
            println!("nope");
            return
        },
    };
}
```

**Old output**:

```rust
fn f() {
    let Some(x) = Some(()) else {//comment
            println!("nope");
            return
        };
}
```

**This PR output**:

```rust
fn f() {
    let Some(x) = Some(()) else {//comment
        println!("nope");
        return
    };
}
```
Diffstat (limited to 'tests/rustdoc/source-code-pages/source-version-separator.rs')
0 files changed, 0 insertions, 0 deletions