Skip to content

Comments at beginning of arguments list are swallowed #3198

Closed
@bddap

Description

@bddap

The function:

fn foo( // Important comment
    self,
) {
}

gets transformed to:

fn foo(self) {}

Note: this only occurs when the first argument is self.

The following works as expected:

fn foo( // Important comment
    bar: usize,
) {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-commentsbugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions