-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: Fix Immovable generator syntax (static ||) not recognized #11448 #11458
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
| async || {}; | ||
| move || {}; | ||
| async move || {}; | ||
| static || {}; |
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.
Can you also include static move || {};?
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.
And also static async move ?
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 am going to had it too
|
|
||
| T![const] if (la == IDENT || la == T![_] || la == T![mut]) => consts::konst(p, m), | ||
| T![static] => consts::static_(p, m), | ||
| T![static] if (la == IDENT || la == T![_] || la == T![mut]) => consts::static_(p, m), |
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.
| T![static] if (la == IDENT || la == T![_] || la == T![mut]) => consts::static_(p, m), | |
| T![static] if (la == IDENT || la == T![mut]) => consts::static_(p, m), |
underscore as name is not valid for statics
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.
Without test '_' i have a regression on tests :
tests::parse_inline_err for the file 0013_anonymous_static.rs
the error is not the expected one
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.
Ah we recover in static_ from this, ye I guess this is fine then.
|
Thanks! |
No description provided.