Skip to content

error: redundant explicit link target on cargo_docs CI job #847

Closed
@nsipplswezey

Description

@nsipplswezey

After syncing with latest changes on main branch CI fails on my fork on cargo_docs with linting errors:

https://github.com/nsipplswezey/scylla-rust-driver/actions/runs/6567434306/job/17840129362

error: redundant explicit link target
  --> scylla/src/lib.rs:16:55
   |
16 | //! All driver activity revolves around the [Session](crate::Session)\
   |                                              -------  ^^^^^^^^^^^^^^ 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: `-D rustdoc::redundant-explicit-links` implied by `-D warnings`
help: remove explicit link target
   |
16 | //! All driver activity revolves around the [Session]\
   |                                             ~~~~~~~~~

Some research highlighted that this linting was added in 1.73
rust-lang/rust#113167
rust-lang/rust#87799

Confirmed same linting errors on my local up-to-date main branch as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions