Skip to content

Conversation

A4-Tacks
Copy link
Contributor

Example

trait Foo {
}
impl Foo for () {
    $0fn foo<T: Copy>(&self);
}

Before this PR:

trait Foo {
    fn foo<T>(&self)
where
    T: Copy,;
}
impl Foo for () {
    fn foo<T: Copy>(&self);
}

After this PR:

trait Foo {
    fn foo<T>(&self)
    where
        T: Copy,;
}
impl Foo for () {
    fn foo<T: Copy>(&self);
}

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 17, 2025
Example
---
```rust
trait Foo {
}
impl Foo for () {
    $0fn foo<T: Copy>(&self);
}
```

**Before this PR**:

```rust
trait Foo {
    fn foo<T>(&self)
where
    T: Copy,;
}
impl Foo for () {
    fn foo<T: Copy>(&self);
}
```

**After this PR**:

```rust
trait Foo {
    fn foo<T>(&self)
    where
        T: Copy,;
}
impl Foo for () {
    fn foo<T: Copy>(&self);
}
```
@A4-Tacks A4-Tacks force-pushed the indent-diag-reduanted-trait-assoc branch from c1ec09f to 471c41a Compare September 17, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants