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 { |
.
Currently we can not get the span of
mutkeyword.Example:-
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.rust/compiler/rustc_ast/src/ast.rs
Line 752 in 7bade6e