Skip to content

Conversation

@A4-Tacks
Copy link
Member

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

Insert explicit method call referece and dereferences.

Example

struct Foo;
impl Foo { fn foo(&self) {} }
fn test() {
    Foo$0.$0foo();
}

->

struct Foo;
impl Foo { fn foo(&self) {} }
fn test() {
    (&Foo).foo();
}

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 8, 2025
@A4-Tacks A4-Tacks force-pushed the explicit-dot-call-deref branch from 0f45a33 to bed31e0 Compare November 8, 2025 13:40
Insert explicit method call reference and dereferences.

Example
---
```rust
struct Foo;
impl Foo { fn foo(&self) {} }
fn test() {
    Foo$0.$0foo();
}
```

->

```rust
struct Foo;
impl Foo { fn foo(&self) {} }
fn test() {
    (&Foo).foo();
}
```
@A4-Tacks A4-Tacks force-pushed the explicit-dot-call-deref branch from bed31e0 to d53146a Compare November 8, 2025 13:56
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