about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-07-24 15:05:28 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-07-24 15:06:56 +0800
commitabddbc5bcab8e731d07c2bfbeae966ed28a33efd (patch)
treee24eb6b6d69749fa22496e79dcfd1a7832cc40f9 /compiler/rustc_mir_transform/src
parentcf886546fc6e58075dfef0100a16ac94c927c455 (diff)
downloadrust-abddbc5bcab8e731d07c2bfbeae966ed28a33efd.tar.gz
rust-abddbc5bcab8e731d07c2bfbeae966ed28a33efd.zip
Fix generate_trait_from_impl whitespace after vis
Input:

```rust
struct Foo;

impl F$0oo {
    pub fn a_func() -> Option<()> {
        Some(())
    }
}
```

Old:

```rust
struct Foo;

trait NewTrait {
     fn a_func() -> Option<()>;
}

impl NewTrait for Foo {
     fn a_func() -> Option<()> {
        Some(())
    }
}
```

This PR fixed:

```rust
struct Foo;

trait NewTrait {
    fn a_func() -> Option<()>;
}

impl NewTrait for Foo {
    fn a_func() -> Option<()> {
        Some(())
    }
}
```
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions