-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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: Add struct and variant constructors to module children at encoding time #103524
Conversation
instead of decoding time.
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 2283a5e with merge f64bf814c3bd0699e606747c02b721d3b60477ee... |
☀️ Try build successful - checks-actions |
Queued f64bf814c3bd0699e606747c02b721d3b60477ee with parent c6bd7e2, future comparison URL. |
Finished benchmarking commit (f64bf814c3bd0699e606747c02b721d3b60477ee): comparison URL. Overall result: ❌ regressions - 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 is a highly reliable metric that was used to determine the overall result at the top of this comment.
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. Footnotes |
// For non-reexport variants add their fictive constructors to children. | ||
// Braced variants, unlike structs, generate unusable names in value namespace, | ||
// they are reserved for possible future use. It's ok to use the variant's id as | ||
// a ctor id since an error will be reported on any use of such resolution anyway. |
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.
Could we get rid of this special case by giving a dedicated NodeId
and LocalDefId
to the ctor of struct variants that is different from the struct variant itself?
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.
I have something better in the pipeline - removing all this stuff entirely petrochenkov@be00274.
UPD: PR submitted in #103578.
@bors r+ |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#103110 (remove redundant Send impl for references) - rust-lang#103255 (Clean up hidden type registration) - rust-lang#103394 (Clarify documentation about the memory layout of `UnsafeCell`) - rust-lang#103408 (Clean return-position `impl Trait` in traits correctly in rustdoc) - rust-lang#103505 (rustdoc: parse self-closing tags and attributes in `invalid_html_tags`) - rust-lang#103524 (rustc_metadata: Add struct and variant constructors to module children at encoding time) - rust-lang#103544 (Add flag to forbid recovery in the parser) - rust-lang#103616 (rustdoc: remove CSS workaround for Firefox 29) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
rustc_metadata: Switch module children decoding to an iterator Previously rust-lang#103578, rust-lang#103524 and previous PRs simplified it as much as possible. A couple of cleanup commits is also added. r? `@cjgillot`
rustc_metadata: Switch module children decoding to an iterator Previously rust-lang/rust#103578, rust-lang/rust#103524 and previous PRs simplified it as much as possible. A couple of cleanup commits is also added. r? `@cjgillot`
rustc_metadata: Switch module children decoding to an iterator Previously rust-lang/rust#103578, rust-lang/rust#103524 and previous PRs simplified it as much as possible. A couple of cleanup commits is also added. r? `@cjgillot`
instead of decoding time.
Continuation of #95899.
The last time it caused some ICEs from generator use, but not everything seems ok.