Skip to content

Conversation

@A4-Tacks
Copy link
Member

@A4-Tacks A4-Tacks commented Nov 2, 2025

  • And migrate edit_in_place::Indent to edit::AstNodeEdit,
    because edit_in_place use ted

Example

trait $0Foo<T: Send> {
    type X: Sync;

    fn foo(&self, x: Self::X) -> T;

    fn print_foo(&self) {
        println!("{}", self.foo());
    }
}

Before this PR

impl<T: Send, T1: ?Sized> Foo<T> for $0T1 {
    fn foo(&self, x: Self::X) -> T {
        todo!()
    }
}

After this PR

impl<T: Send, T1: ?Sized> Foo<T> for $0T1 {
    type X: Sync;

    fn foo(&self, x: Self::X) -> T {
        todo!()
    }
}

- And migrate `edit_in_place::Indent` to `edit::AstNodeEdit`,
  because edit_in_place use ted

Example
---
```rust
trait $0Foo<T: Send> {
    type X: Sync;

    fn foo(&self, x: Self::X) -> T;

    fn print_foo(&self) {
        println!("{}", self.foo());
    }
}
```

**Before this PR**

```rust
impl<T: Send, T1: ?Sized> Foo<T> for $0T1 {
    fn foo(&self, x: Self::X) -> T {
        todo!()
    }
}
```

**After this PR**

```rust
impl<T: Send, T1: ?Sized> Foo<T> for $0T1 {
    type X: Sync;

    fn foo(&self, x: Self::X) -> T {
        todo!()
    }
}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 2, 2025
@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Nov 3, 2025
Merged via the queue into rust-lang:master with commit 00b627d Nov 3, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 3, 2025
@A4-Tacks A4-Tacks deleted the blanket-assoc-items branch November 3, 2025 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants