Skip to content

Can not get the span of Mutability from ast #78315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
whizsid opened this issue Oct 24, 2020 · 1 comment
Closed

Can not get the span of Mutability from ast #78315

whizsid opened this issue Oct 24, 2020 · 1 comment

Comments

@whizsid
Copy link
Contributor

whizsid commented Oct 24, 2020

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 {
.

@jyn514
Copy link
Member

jyn514 commented Oct 24, 2020

@whizsid for questions about compiler internals, I recommend asking on the Zulip instead: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp. This isn't really a bug in rustc, and the issue tracker isn't checked as frequently as the Zulip.

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

No branches or pull requests

2 participants