-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Rustdoc-Json: Add enum discriminant #101386
Conversation
rustdoc-json-types is a public (although nightly-only) API. If possible, consider changing cc @CraftSpider, @aDotInTheVoid, @Enselic Some changes occurred in src/librustdoc/clean/types.rs cc @camelid |
e6107dd
to
8ca6e9d
Compare
8ca6e9d
to
b76a012
Compare
Looks good to me. Let's make a perf run first. @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit b76a012 with merge 1d47f06959f0dd98dc00d4fcdf835a8791410ec9... |
☀️ Try build successful - checks-actions |
Queued 1d47f06959f0dd98dc00d4fcdf835a8791410ec9 with parent 84f0c3f, future comparison URL. |
Finished benchmarking commit (1d47f06959f0dd98dc00d4fcdf835a8791410ec9): 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.
CyclesResultsThis 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.
Footnotes |
It's a bit more than I expected. Considering it's only used for the JSON output, it seems to have a big impact on HTML output. Would it be possible to query this information on demand instead of storing it? |
@bors try @rust-timer queue |
@aDotInTheVoid: 🔑 Insufficient privileges: not in try users |
Insufficient permissions to issue commands to rust-timer. |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit efbd8f6 with merge 4296b71ebf7432355171670548dc32058a5e9f5d... |
☀️ Try build successful - checks-actions |
Queued 4296b71ebf7432355171670548dc32058a5e9f5d with parent 8521a8c, future comparison URL. |
Finished benchmarking commit (4296b71ebf7432355171670548dc32058a5e9f5d): 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. Footnotes |
Seems all good now. The impact on rss is expected unfortunately, but not much we can do. Thanks for working on this! @bors r+ rollup=iffy |
☀️ Test successful - checks-actions |
…GuillaumeGomez Rustdoc-Json: Store Variant Fields as their own item. Closes rust-lang#100587 Closes rust-lang#92945 Successor to rust-lang#100762 Unlike that one, we don't have merge `StructType` and `Variant`, as after rust-lang#101386 `Variant` stores enum specific information (discriminant). Resolves the naming discussion (rust-lang#100762 (comment)) by having seperate enums for struct and enum kinds Resolves `#[doc(hidden)]` on tuple structs (rust-lang#100762 (comment)) by storing as a `Vec<Option<Id>>` r? `@GuillaumeGomez`
Does the first part of #101337, by adding it to
clean
, but doesn't change HTML output, asJSON doesn't have either of these limitations.
r? @GuillaumeGomez