Skip to content

Can not get the span of Mutability from ast  #78315

@whizsid

Description

@whizsid

Currently we can not get the span of mut keyword.

Example:-

fn foo(file:`& /* Some comment */ mut /* Another Comment */ File`) {}

I like to work on this issue. But I need an advice. If I store the span in an enum field like Mutability::Mut(Span) I can not implement the invert function.

pub fn invert(self) -> Self {
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions