Uh oh!
There was an error while loading. Please reload this page.
Setup proc-macro metadata at encoding instead of decoding - #79353
Conversation
rust-highfive
commented
Nov 23, 2020
r? @lcnr (rust_highfive has picked a reviewer for you, use r? to override) |
jonas-schievink
commented
Nov 23, 2020
@bors try @rust-timer queue |
rust-timer
commented
Nov 23, 2020
Awaiting bors try build completion |
bors
commented
Nov 23, 2020
⌛ Trying commit d9d6b836427f03853ee316391ddff4ff815e4e18 with merge a7328d96f1234b84898788717e82a5d0762c05a6... |
bors
commented
Nov 23, 2020
☀️ Try build successful - checks-actions |
rust-timer
commented
Nov 23, 2020
Queued a7328d96f1234b84898788717e82a5d0762c05a6 with parent 40cf721, future comparison URL. |
rust-timer
commented
Nov 23, 2020
Finished benchmarking try commit (a7328d96f1234b84898788717e82a5d0762c05a6): 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 |
lcnr
left a comment
There was a problem hiding this comment.
lgtm
and it seems like a small perf improvement to me.
lcnr
commented
Nov 23, 2020
@petrochenkov assigned themselves, so leaving the final approval to them |
petrochenkov
commented
Nov 23, 2020
Hmm, looks like this PR basically reverts recently landed #76897. |
petrochenkov
commented
Nov 23, 2020
I'm not sure which side is more important to optimize here. |
cjgillot
commented
Nov 23, 2020
I was not aware of @Aaron1011's PR. |
petrochenkov
commented
Nov 24, 2020
@cjgillot |
Aaron1011
commented
Nov 24, 2020
Part of my motivation for #76897 was to stop encoding invalid metadata for proc macros (i.e. encoding I have no objection to this PR. |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
It would be nicer to pre-record macro kind and name into Crate::proc_macros, but seems ok as is.
petrochenkov
commented
Nov 26, 2020
Ok, I see what this PR does now, it's pretty different from #76897. |
petrochenkov
commented
Nov 27, 2020
r=me after squashing commits. |
Encode proc_macro name directly. Do not store None values.
cjgillot
commented
Nov 27, 2020
Squashed. |
petrochenkov
commented
Nov 27, 2020
Thanks! |
bors
commented
Nov 27, 2020
📌 Commit 9dd32e1 has been approved by |
bors
commented
Nov 28, 2020
bors
commented
Nov 28, 2020
☀️ Test successful - checks-actions |
This should improve the common non-proc-macro case for metadata decoding.