-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Document clippy on nightly-rustc #90354
Conversation
This comment has been minimized.
This comment has been minimized.
1d20487
to
17350f8
Compare
@xFrednet doc --stage 0 doesn't work for the compiler or compiler tools, I expect the error is unrelated to your change. Try |
@jyn514 Thanks, that did the trick, well got me a bit further. Now it's complaining, that it can't find error[E0463]: can't find crate for `std`
For more information about this error, try `rustc --explain E0463`.
error: could not compile `serde_derive` due to previous error
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`
error: build failed
command did not execute successfully: ".../build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "doc" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--manifest-path" ".../src/tools/clippy/Cargo.toml" "-Zskip-rustdoc-fingerprint" "--no-deps" "-p" "clippy_lints" "-p" "clippy_utils"
expected success, got: exit status: 101 The executed command is already looking good IMO :) |
Looks like a bug in x.py. When documenting a single tool, you need to have The |
17350f8
to
01e441f
Compare
Thank you @ehuss, that did the trick! Everything seems to be working now! |
|
Hm, so the PR discussion seems to indicate that the was_explicitly_invoked call should be removed, but I do not see that in the diff. Did it perhaps forget to get pushed? FWIW, I don't think that's quite the right fix. The exact way we do defaults here is a bit iffy, as @jyn514 mentions, and we don't have a great story around it, but just dropping the was-explicitly-invoked will break compiler-docs=false builds. I think the appropriate fix is a little more expansive:
|
My intention with this PR was only to add Clippy to the I haven't really looked at the inner workings of the bootstrapping and docs building process. Most of the things you mentioned is new territory for me. I can try my hand on it with some guidance if you'd like. @Mark-Simulacrum |
So this PR works as-is today? |
Yes! I can locally build the documentation, and it includes the I only needed help to figure out the comment and changes to the |
@bors r+ rollup Ok, seems good enough for now then. |
📌 Commit 01e441f has been approved by |
…ocs, r=Mark-Simulacrum Document clippy on nightly-rustc Adding Clippy's docs to nightly-rustc, based on commit 01cf0bd. This PR only adds `clippy_utils` to the documentation. I've decided to only document one crate for now, as `clippy_lints` etc. contain very specific and undocumented functions which aren't really reusable. I'm guessing that they would mostly clutter up the search results with little benefit. `./x.py --stage 1 doc src/tools/clippy` if working fine now after the help that ``@jyn514`` and ``@ehuss`` have provided. A big THANK YOU to them!
…ocs, r=Mark-Simulacrum Document clippy on nightly-rustc Adding Clippy's docs to nightly-rustc, based on commit 01cf0bd. This PR only adds `clippy_utils` to the documentation. I've decided to only document one crate for now, as `clippy_lints` etc. contain very specific and undocumented functions which aren't really reusable. I'm guessing that they would mostly clutter up the search results with little benefit. `./x.py --stage 1 doc src/tools/clippy` if working fine now after the help that ```@jyn514``` and ```@ehuss``` have provided. A big THANK YOU to them!
…ocs, r=Mark-Simulacrum Document clippy on nightly-rustc Adding Clippy's docs to nightly-rustc, based on commit 01cf0bd. This PR only adds `clippy_utils` to the documentation. I've decided to only document one crate for now, as `clippy_lints` etc. contain very specific and undocumented functions which aren't really reusable. I'm guessing that they would mostly clutter up the search results with little benefit. `./x.py --stage 1 doc src/tools/clippy` if working fine now after the help that ````@jyn514```` and ````@ehuss```` have provided. A big THANK YOU to them!
…ocs, r=Mark-Simulacrum Document clippy on nightly-rustc Adding Clippy's docs to nightly-rustc, based on commit 01cf0bd. This PR only adds `clippy_utils` to the documentation. I've decided to only document one crate for now, as `clippy_lints` etc. contain very specific and undocumented functions which aren't really reusable. I'm guessing that they would mostly clutter up the search results with little benefit. `./x.py --stage 1 doc src/tools/clippy` if working fine now after the help that `````@jyn514````` and `````@ehuss````` have provided. A big THANK YOU to them!
…ocs, r=Mark-Simulacrum Document clippy on nightly-rustc Adding Clippy's docs to nightly-rustc, based on commit 01cf0bd. This PR only adds `clippy_utils` to the documentation. I've decided to only document one crate for now, as `clippy_lints` etc. contain very specific and undocumented functions which aren't really reusable. I'm guessing that they would mostly clutter up the search results with little benefit. `./x.py --stage 1 doc src/tools/clippy` if working fine now after the help that ``````@jyn514`````` and ``````@ehuss`````` have provided. A big THANK YOU to them!
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#90084 (Make printed message match the code comment) - rust-lang#90354 (Document clippy on nightly-rustc) - rust-lang#90417 (stabilize `relaxed_struct_unsize`) - rust-lang#90472 (Clarify what to do with accepted feature gates) - rust-lang#90500 (Update Clippy dependencies) - rust-lang#90502 (Split doc_cfg and doc_auto_cfg features) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…crum Make `compiler-docs` only control the default instead of being a hard off-switch This also fixes `x doc src/tools/clippy` when compiler-docs is disabled. See rust-lang#90354 (comment). r? `@Mark-Simulacrum`
…crum Make `compiler-docs` only control the default instead of being a hard off-switch This also fixes `x doc src/tools/clippy` when compiler-docs is disabled. See rust-lang#90354 (comment). r? ``@Mark-Simulacrum``
Adding Clippy's docs to nightly-rustc, based on commit 01cf0bd. This PR only adds
clippy_utils
to the documentation. I've decided to only document one crate for now, asclippy_lints
etc. contain very specific and undocumented functions which aren't really reusable. I'm guessing that they would mostly clutter up the search results with little benefit../x.py --stage 1 doc src/tools/clippy
if working fine now after the help that@jyn514
and@ehuss
have provided. A big THANK YOU to them!