-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Scrape code examples from examples/ directory for Rustdoc #85833
Conversation
Some changes occurred in HTML/CSS/JS. |
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
20044cd
to
2d0b8a6
Compare
☔ The latest upstream changes (presumably #86966) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #87269) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please rebase over upstream changes instead of merging since rust-lang/rust has a "No-Merge Policy". Thanks! |
@jyn514 I've done a significant cleanup of the PR and addressed some issues raised in the RFC. Notably:
I also tweaked the UI to make it more visually consistent and easier to use. I'll try to maintain a live demo here as I make changes: https://willcrichton.net/example-analyzer/warp/trait.Filter.html#method.and I think it's ready for review, unless you (or others) have any big feature requests outstanding. |
A couple more UI comments:
|
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.
This is great, I'm really excited for it to land :) thank you @willcrichton for sticking with this so long! ❤️
I gave the code a quick look over to see if anything caught my eye. The main thing I'd like changed if possible is #85833 (comment). Other than that, I didn't notice anything major. Like Joshua said, thank you for sticking with this! |
scrape-examples options
I haven't looked at the code in detail, but Guillaume and Joshua have, so I don't have any more comments :) |
@bors r+ rollup=iffy |
📌 Commit fd5d614 has been approved by |
…n514 Scrape code examples from examples/ directory for Rustdoc Adds support for the functionality described in rust-lang/rfcs#3123 Matching changes to Cargo are here: rust-lang/cargo#9525 Live demo here: https://willcrichton.net/example-analyzer/warp/trait.Filter.html#method.and
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#85833 (Scrape code examples from examples/ directory for Rustdoc) - rust-lang#88041 (Make all proc-macro back-compat lints deny-by-default) - rust-lang#89829 (Consider types appearing in const expressions to be invariant) - rust-lang#90168 (Reset qualifs when a storage of a local ends) - rust-lang#90198 (Add caveat about changing parallelism and function call overhead) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
It looks like this was probably the cause of the regression in https://perf.rust-lang.org/compare.html?start=aa5740c715001f981515ed46faaddebf67cb9539&end=91b931926fd49fc97d1e39f2b8206abf1d77ce7d&stat=instructions:u, though it's a fairly minor one. May not be worth investigating too deeply, but marking as a perf-regression for the time being. |
@Mark-Simulacrum this change does not trigger by default -- the examples have to be designed to pass in specific flags. I don't think this would affect existing benchmarks. |
@willcrichton the benchmarks are using the default settings, so the regression is real. It pointed to That said, I agree this is probably not worth looking into, everything I saw was a one-time cost that should only matter for really tiny crates. |
Scrape code examples from examples/ directory for Rustdoc Adds support for the functionality described in rust-lang/rfcs#3123 Matching changes to rustdoc are here: rust-lang/rust#85833
Adds support for the functionality described in rust-lang/rfcs#3123
Matching changes to Cargo are here: rust-lang/cargo#9525
Live demo here: https://willcrichton.net/example-analyzer/warp/trait.Filter.html#method.and