Skip to content

fix(home): rustdoc lint - #17394

Merged
epage merged 1 commit into
rust-lang:masterfrom
weihanglo:rustdoc
Aug 26, 2026
Merged

fix(home): rustdoc lint#17394
epage merged 1 commit into
rust-lang:masterfrom
weihanglo:rustdoc

Conversation

@weihanglo

Copy link
Copy Markdown
Member

See https://github.com/rust-lang/cargo/actions/runs/32992508559/job/98253339881

warning: redundant explicit link target
  --> crates/home/src/lib.rs:81:42
   |
81 | /// For more details, see [`cargo_home`](fn.cargo_home.html).
   |                            ------------  ^^^^^^^^^^^^^^^^^^ explicit target is redundant
   |                            |
   |                            because label contains path that resolves to same destination
   |
   = note: when a link's destination is not specified,
           the label is used to resolve intra-doc links
   = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default
help: remove explicit link target
   |
81 - /// For more details, see [`cargo_home`](fn.cargo_home.html).
81 + /// For more details, see [`cargo_home`].
   |

warning: redundant explicit link target
   --> crates/home/src/lib.rs:118:43
    |
118 | /// For more details, see [`rustup_home`](fn.rustup_home.html).
    |                            -------------  ^^^^^^^^^^^^^^^^^^^ explicit target is redundant
    |                            |
    |                            because label contains path that resolves to same destination
    |
    = note: when a link's destination is not specified,
            the label is used to resolve intra-doc links
help: remove explicit link target
    |
118 - /// For more details, see [`rustup_home`](fn.rustup_home.html).
118 + /// For more details, see [`rustup_home`].
    |

error: `home` (lib doc) generated 2 warnings

See <https://github.com/rust-lang/cargo/actions/runs/32992508559/job/98253339881>

```
warning: redundant explicit link target
  --> crates/home/src/lib.rs:81:42
   |
81 | /// For more details, see [`cargo_home`](fn.cargo_home.html).
   |                            ------------  ^^^^^^^^^^^^^^^^^^ explicit target is redundant
   |                            |
   |                            because label contains path that resolves to same destination
   |
   = note: when a link's destination is not specified,
           the label is used to resolve intra-doc links
   = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default
help: remove explicit link target
   |
81 - /// For more details, see [`cargo_home`](fn.cargo_home.html).
81 + /// For more details, see [`cargo_home`].
   |

warning: redundant explicit link target
   --> crates/home/src/lib.rs:118:43
    |
118 | /// For more details, see [`rustup_home`](fn.rustup_home.html).
    |                            -------------  ^^^^^^^^^^^^^^^^^^^ explicit target is redundant
    |                            |
    |                            because label contains path that resolves to same destination
    |
    = note: when a link's destination is not specified,
            the label is used to resolve intra-doc links
help: remove explicit link target
    |
118 - /// For more details, see [`rustup_home`](fn.rustup_home.html).
118 + /// For more details, see [`rustup_home`].
    |

error: `home` (lib doc) generated 2 warnings
```
@rustbot rustbot added A-environment-variables Area: environment variables A-home Area: the `home` crate labels Aug 26, 2026
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 26, 2026
@rustbot

rustbot commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

r? @epage

rustbot has assigned @epage.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @epage, @weihanglo
  • @epage, @weihanglo expanded to epage, weihanglo

@epage
epage enabled auto-merge August 26, 2026 18:31
@epage
epage added this pull request to the merge queue Aug 26, 2026
Merged via the queue into rust-lang:master with commit 3bb5bfd Aug 26, 2026
31 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 26, 2026
@weihanglo
weihanglo deleted the rustdoc branch August 27, 2026 04:07
epage added a commit that referenced this pull request Aug 28, 2026
Beta backports

- #17366
- #17401

In order to make CI pass, the following PRs are also cherry-picked:

- #17378
- #17385
- #17394
- 1d0bb37 to use MSRV-compat API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-environment-variables Area: environment variables A-home Area: the `home` crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants