-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Ban custom inner attributes in expressions and statements #83488
Conversation
One more question - what happens with inner |
@petrochenkov: In PR #82608, I plan to implement your earlier suggestion of re-parsing with extra collection when we expand |
0353306
to
7504b9b
Compare
@petrochenkov: I've addressed your comments. |
@bors r+ |
📌 Commit 7504b9b has been approved by |
☀️ Test successful - checks-actions |
This ICE'd in perf: https://perf.rust-lang.org/status.html scroll down to see. Perf runner don't report ICE's anywhere?
|
It looks like that ICE is actually coming from the current nightly. I thought that #83220 would have fixed that, but it's apparently a different issue (there are no lifetimes involved). |
Wait, perf runner started running this pr again. Last perf run ICE'd on syn too, so this is not this pr root if problem. |
Opened #83538 to track resolving the |
Split out from #82608
Custom inner attributes are unstable, so this won't break any stable users.
This allows us to speed up token collection, and avoid a redundant call to
collect_tokens_no_attrs
when parsing anExpr
that has outer attributes.r? @petrochenkov