Skip to content

Commit d7122e6

Browse files
committed
Remove rustdoc warnings for core::features
Link `CliUnstable::add` just to `CliUnstable` instead. Signed-off-by: Paul Mabileau <[email protected]>
1 parent db741ac commit d7122e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/core/features.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
//!
6363
//! 1. Add the option to the [`CliUnstable`] struct below. Flags can take an
6464
//! optional value if you want.
65-
//! 2. Update the [`CliUnstable::add`] function to parse the flag.
65+
//! 2. Update the [`CliUnstable::add`][CliUnstable] function to parse the flag.
6666
//! 3. Wherever the new functionality is implemented, call
6767
//! [`Config::cli_unstable`][crate::util::config::Config::cli_unstable] to
6868
//! get an instance of `CliUnstable` and check if the option has been
@@ -81,8 +81,8 @@
8181
//! macro below.
8282
//! 2. `-Z unstable-options`: Find the call to `fail_if_stable_opt` and
8383
//! remove it. Be sure to update the man pages if necessary.
84-
//! 3. `-Z` flag: Change the parsing code in [`CliUnstable::add`] to call
85-
//! `stabilized_warn` or `stabilized_err` and remove the field from
84+
//! 3. `-Z` flag: Change the parsing code in [`CliUnstable::add`][CliUnstable]
85+
//! to call `stabilized_warn` or `stabilized_err` and remove the field from
8686
//! `CliUnstable. Remove the `(unstable)` note in the clap help text if
8787
//! necessary.
8888
//! 2. Remove `masquerade_as_nightly_cargo` from any tests, and remove

0 commit comments

Comments
 (0)