]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #103851 - viandoxdev:103816_bootstrap_fix_json_doc, r=jyn514
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 6 Nov 2022 07:35:26 +0000 (08:35 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Nov 2022 07:35:26 +0000 (08:35 +0100)
commit131ef9580815329aa3647fa84d7c74769fefbccf
tree64f956acb4a1ed7ad9a41be773a62426a0b1fd7d
parent58f5d57b5d622c87af4aaba45ab434ebcd867b20
parent900af414a3dfabab74357f5038371a08b1cb0db1
Rollup merge of #103851 - viandoxdev:103816_bootstrap_fix_json_doc, r=jyn514

Fix json flag in bootstrap doc

Fix the `--json` flag not working with x.py (Closes #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
src/bootstrap/doc.rs
src/bootstrap/test.rs