-
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
rustc_metadata: Fix encode_attrs
#107171
rustc_metadata: Fix encode_attrs
#107171
Conversation
r? @nagisa (rustbot has picked a reviewer for you, use r? to override) |
This comment was marked as resolved.
This comment was marked as resolved.
df5a1f1
to
1cc2c93
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 1cc2c93ae174a5da0712bd1c39248318e16f1582 with merge 2b3ab0d6f93e28450e0fcdd532e13c409502225e... |
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (2b3ab0d6f93e28450e0fcdd532e13c409502225e): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
r? @cjgillot since they seem to have looked at this already. |
Let's test the single bool alternative. |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit f3dd9b1fab6213d1c14b15b4377f7a11720f1e83 with merge cfdc1c649d2589c4f473d3ae183e9aa37365a426... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (cfdc1c649d2589c4f473d3ae183e9aa37365a426): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
I understand even less now. |
Probably. Query dependency tracking deduplicates dependencies. So having all def-ids in metadata depend on @bors r+ |
📌 Commit f3dd9b1fab6213d1c14b15b4377f7a11720f1e83 has been approved by It is now in the queue for this repository. |
This function didn't do what the authors intended it to do. - Due to `move` in the closure `is_public` wasn't captured by mutalbe reference and wasn't used as a cache. - Due to iterator cloning all the `should_encode_attr` logic run for the second time to calculate `may_have_doc_links` This PR fixes these issues, and calculates all the needed attribute flags in one go.
f3dd9b1
to
c70b7aa
Compare
Removed [WIP] and squashed. |
@bors rollup=maybe |
Rollup of 8 pull requests Successful merges: - rust-lang#105784 (update stdarch) - rust-lang#106856 (core: Support variety of atomic widths in width-agnostic functions) - rust-lang#107171 (rustc_metadata: Fix `encode_attrs`) - rust-lang#107242 (rustdoc: make item links consistently use `title="{shortty} {path}"`) - rust-lang#107279 (Use new solver during selection) - rust-lang#107284 (rustdoc: use smarter encoding for playground URL) - rust-lang#107325 (rustdoc: Stop using `HirId`s) - rust-lang#107336 (rustdoc: remove mostly-unused CSS classes `import-item` and `module-item`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This function didn't do what the authors intended it to do.
move
in the closureis_public
wasn't captured by mutalbe reference and wasn't used as a cache.should_encode_attr
logic run for the second time to calculatemay_have_doc_links
This PR fixes these issues, and calculates all the needed attribute flags in one go.
(Noticed while implementing #107136.)