Skip to content

ide: insert whitespace between 'mut' and 'self' in macro expansion #12262

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

Merged

Conversation

jhgg
Copy link
Contributor

@jhgg jhgg commented May 15, 2022

fixes #12260

@lnicola
Copy link
Member

lnicola commented May 15, 2022

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented May 15, 2022

📌 Commit 4efc2a9 has been approved by lnicola

@bors
Copy link
Contributor

bors commented May 15, 2022

⌛ Testing commit 4efc2a9 with merge 5ae9847...

@bors
Copy link
Contributor

bors commented May 15, 2022

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 5ae9847 to master...

@tamaroning
Copy link

@lnicola
Are unnecessary whitespaces fixed in this PR?

@jhgg jhgg deleted the fix-whitespace-between-mut-self-in-macro-expansion branch May 15, 2022 17:19
Comment on lines +91 to 96
MUT_KW if is_next(|it| it == SELF_KW, false) => {
mods.push(do_ws(after, tok));
}
AS_KW | DYN_KW | IMPL_KW | CONST_KW => {
mods.push(do_ws(after, tok));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just insert a space after mut in general? #12278

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.

Extra space before lifetime apostrophe in macro expansion
5 participants