-
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
Fix json flag in bootstrap doc #103851
Fix json flag in bootstrap doc #103851
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. |
@viandoxdev I think 9791b9f is a more principled fix than your second commit, I would prefer to use that. |
9791b9f9826adea1078775afbaf66545b319b78d doesn't really fix the issue, I still need a way to not run the JsonStd steps when the flag isn't set. Currently just applying the changes of that commit makes it do both html and json regardless. Looking at the code, from the get go if |
Hmm, ok. In that case maybe we should make it the same Step as Std and call |
did that |
@jyn514 thoughts? |
@viandoxdev I don't have time to look at this right now, I'll make sure I let you know after I have a change to look. |
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 very well done :) I hadn't thought to make format
part of the Std struct itself, that's absolutely the right thing to do since it avoids breaking RustdocJSStd tests.
@bors r+ rollup |
…on_doc, r=jyn514 Fix json flag in bootstrap doc Fix the `--json` flag not working with x.py (Closes rust-lang#103816) While this works I'm not sure about the `should_run` of `JsonStd`, had to change it because https://github.com/rust-lang/rust/blob/ab5a2bc7316012ee9b2a4a4f3821673f2677f3d5/src/bootstrap/builder.rs#L334 would match with JsonStd and remove the paths that Std matched. So I did [this](https://github.com/viandoxdev/rust/blob/ffd4078264c4892b5098d6191e0adfe3564d62ca/src/bootstrap/doc.rs#L526-L534) but that looks more like a hack/workaround than anything. I'm guessing there's something to do with the default condition thing but idk how it works
probably failed in #104010 (comment) but I'm not entierly sure |
Should be fixed by 900af41, but not sure how to test @matthiaskrgr |
@bors r+ |
@bors rollup=maybe |
…on_doc, r=jyn514 Fix json flag in bootstrap doc Fix the `--json` flag not working with x.py (Closes rust-lang#103816) While this works I'm not sure about the `should_run` of `JsonStd`, had to change it because https://github.com/rust-lang/rust/blob/ab5a2bc7316012ee9b2a4a4f3821673f2677f3d5/src/bootstrap/builder.rs#L334 would match with JsonStd and remove the paths that Std matched. So I did [this](https://github.com/viandoxdev/rust/blob/ffd4078264c4892b5098d6191e0adfe3564d62ca/src/bootstrap/doc.rs#L526-L534) but that looks more like a hack/workaround than anything. I'm guessing there's something to do with the default condition thing but idk how it works
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#103012 (Suggest use .. to fill in the rest of the fields of Struct) - rust-lang#103851 (Fix json flag in bootstrap doc) - rust-lang#103990 (rustdoc: clean up `.logo-container` layout CSS) - rust-lang#104002 (fix a comment in UnsafeCell::new) - rust-lang#104014 (Migrate test-arrow to CSS variables) - rust-lang#104016 (Add internal descriptions to a few queries) - rust-lang#104035 (Add 'closure match' test to weird-exprs.rs.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fix the
--json
flag not working with x.py (Closes #103816)While this works I'm not sure about the
should_run
ofJsonStd
, had to change it becauserust/src/bootstrap/builder.rs
Line 334 in ab5a2bc