-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: use 4 spaces for indentation in macro expansion #16690
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
Conversation
c6c50ad
to
bab167f
Compare
body.syntax() | ||
.descendants_with_tokens() | ||
.filter_map(NodeOrToken::into_token) | ||
.filter(|tok| tok.kind() == SyntaxKind::SELF_KW) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That approach won't work, as self
can also refer to the current module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I forgot the other semantics of self
😱
I don't think we can do much about |
bab167f
to
4896626
Compare
I agree that replacement of |
@rustbot ready |
Thanks! |
☀️ Test successful - checks-actions |
Partial fix for #16471.
In the previous code, the indentation produced by macro expansion was set to 2 spaces. This PR modifies it to 4 spaces for the sake of consistency.