-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Refactor token collection to capture trailing token immediately #81017
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
collect_tokens
@bors try @rust-timer queue |
Awaiting bors try build completion. |
⌛ Trying commit c0d77f1c76c8d324c77755cd99908860d4c3eec0 with merge 125fb95a2bc8697595e30ef058c5cc82b2222284... |
☀️ Try build successful - checks-actions |
Queued 125fb95a2bc8697595e30ef058c5cc82b2222284 with parent d03fe84, future comparison URL. @rustbot label: +S-waiting-on-perf |
Finished benchmarking try commit (125fb95a2bc8697595e30ef058c5cc82b2222284): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
c0d77f1
to
73a976f
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. |
⌛ Trying commit 73a976ffd206a284f6485baf7a37545ef6cc6343 with merge df2eeabc93790b4803c40f482839a38c56301e3b... |
This comment has been minimized.
This comment has been minimized.
Something like this was my first thought when you introduced the semicolon token collection - "you just need to refactor statement parsing carefully, so the parsed statements already contain semicolons". The end goal for statement parsing is to use it basically everywhere - for parsing statements not only in blocks, but also in all contexts where items can be written (so e.g. |
☀️ Try build successful - checks-actions |
Queued df2eeabc93790b4803c40f482839a38c56301e3b with parent 4275ef6, future comparison URL. @rustbot label: +S-waiting-on-perf |
Finished benchmarking try commit (df2eeabc93790b4803c40f482839a38c56301e3b): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
73a976f
to
b8b7901
Compare
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion. |
⌛ Trying commit f5acaa1f663e5f0979aad348b2bf1e081c1ef520 with merge 48d68b3b8d788525a0310668dfae564f7edf7e09... |
☀️ Try build successful - checks-actions |
@petrochenkov: The |
Blocked on #81177. |
5522328
to
c901b42
Compare
c901b42
to
ccfc292
Compare
@petrochenkov: I've rebased this PR against master. The content is almost the same as before - a small adjustment to |
@bors try @rust-timer queue |
Awaiting bors try build completion. |
⌛ Trying commit ccfc292 with merge 134fdeae99435ada2f12fd43c12f277914f9a9f7... |
☀️ Try build successful - checks-actions |
Queued 134fdeae99435ada2f12fd43c12f277914f9a9f7 with parent dc1eee2, future comparison URL. @rustbot label: +S-waiting-on-perf |
Finished benchmarking try commit (134fdeae99435ada2f12fd43c12f277914f9a9f7): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@bors r+ |
📌 Commit ccfc292 has been approved by |
☀️ Test successful - checks-actions |
Split out from #80689 - when we start capturing more information about attribute targets, we'll need to know in advance if we're capturing a trailing token or not.
r? @ghost