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();
}
```
@Veykril Veykril added this pull request to the merge queue Dec 21, 2025
Merged via the queue into rust-lang:master with commit 3aecf08 Dec 21, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 21, 2025
@A4-Tacks A4-Tacks deleted the explicit-dot-call-deref branch December 26, 2025 11:00
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