-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix warnings when documenting with --document-private-items
#9903
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
- Use hyperlinks for URLs - Fix broken intra-doc links This doesn't fix the following warning, since I wasn't sure what change was appropriate: ``` warning: public documentation for `rustc_process` links to private item `self::core::compiler::Context::primary_packages` --> src/cargo/core/compiler/compilation.rs:164:22 | 164 | /// flag), see [`crate::core::compiler::Context::primary_packages`]. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private | = note: `#[warn(rustdoc::private_intra_doc_links)]` on by default = note: this link resolves only because you passed `--document-private-items`, but will break without ``` To avoid noise, this doesn't add an `allow` either.
@@ -259,15 +259,15 @@ struct SerializedTarget<'a> { | |||
/// Serialized as a list of strings for historical reasons. | |||
kind: &'a TargetKind, | |||
/// Corresponds to `--crate-type` compiler attribute. | |||
/// See https://doc.rust-lang.org/reference/linkage.html | |||
/// See <https://doc.rust-lang.org/reference/linkage.html> | |||
crate_types: Vec<CrateType>, | |||
name: &'a str, | |||
src_path: Option<&'a PathBuf>, | |||
edition: &'a str, | |||
#[serde(rename = "required-features", skip_serializing_if = "Option::is_none")] | |||
required_features: Option<Vec<&'a str>>, | |||
/// Whether docs should be built for the target via `cargo doc` |
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.
nit (unrelated to this change): Seems like a period is missing at the end of this line.
@bors: r+ |
📌 Commit bf62ae9 has been approved by |
⌛ Testing commit bf62ae9 with merge 1cf8c9d102385f80835414a1407b2c3efb6d9e92... |
💔 Test failed - checks-actions |
I think the warnings are from a new version of Rust being released last week?
|
That sounds right; I know Miri's tests had to be updated recently to account for the newly-increased precision of |
I'll see if I can fix the error :) Opened #9906. |
This can probably be retried now, since #9906 has been merged. |
@bors: retry |
☀️ Test successful - checks-actions |
Update cargo 13 commits in e515c3277bf0681bfc79a9e763861bfe26bb05db..33ee5f82edb50af87b952c5b28de0f5fb41ebf18 2021-09-08 14:32:15 +0000 to 2021-09-17 13:51:54 +0000 - Update curl-sys (rust-lang/cargo#9917) - Bump Cargo's curl requirement to 7.79.0 (rust-lang/cargo#9914) - Revert "When a dependency does not have a version, git or path, fails directly" (rust-lang/cargo#9911) - Add some contributor docs for debugging testsuite tests. (rust-lang/cargo#9904) - Fix warnings when documenting with `--document-private-items` (rust-lang/cargo#9903) - Improve "wrong output" error. (rust-lang/cargo#9905) - Fix warnings from better precision of `dead_code` lint (rust-lang/cargo#9906) - Bump to 0.58.0, update changelog (rust-lang/cargo#9900) - Fix rustc --profile=dev unstable check. (rust-lang/cargo#9898) - config.md: fix typo (rust-lang/cargo#9896) - Enable some tests on windows. (rust-lang/cargo#9893) - Enable strip test on macos. (rust-lang/cargo#9889) - Fix `cargo fix --edition` on stable. (rust-lang/cargo#9890)
This doesn't fix the following warning, since I wasn't sure what change
was appropriate:
To avoid noise, this doesn't add an
allow
either.