diff options
| author | A4-Tacks <wdsjxhno1001@163.com> | 2025-07-24 15:05:28 +0800 |
|---|---|---|
| committer | A4-Tacks <wdsjxhno1001@163.com> | 2025-07-24 15:06:56 +0800 |
| commit | abddbc5bcab8e731d07c2bfbeae966ed28a33efd (patch) | |
| tree | e24eb6b6d69749fa22496e79dcfd1a7832cc40f9 /compiler/rustc_mir_transform/src | |
| parent | cf886546fc6e58075dfef0100a16ac94c927c455 (diff) | |
| download | rust-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
