Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • rust
  • kernel
  • task.rs
Find file BlameHistoryPermalink
  • Miguel Ojeda's avatar
    rust: task: remove redundant explicit link · c61bcc27
    Miguel Ojeda authored Oct 05, 2023
    Starting with Rust 1.73.0, `rustdoc` detects redundant explicit
    links with its new lint `redundant_explicit_links` [1]:
    
        error: redundant explicit link target
          --> rust/kernel/task.rs:85:21
           |
        85 |     /// [`current`](crate::current) macro because it is safe.
           |          ---------  ^^^^^^^^^^^^^^ 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
           |
        85 |     /// [`current`] macro because it is safe.
    
    In order to avoid the warning in the compiler upgrade commit,
    make it an intra-doc link as the tool suggests.
    
    Link: https://github.com/rust-lang/rust/pull/113167
    
     [1]
    Reviewed-by: default avatarFinn Behrens <me@kloenk.dev>
    Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
    Reviewed-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
    Reviewed-by: default avatarVincenzo Palazzo <vincenzopalazzodev@gmail.com>
    Link: https://lore.kernel.org/r/20231005210556.466856-2-ojeda@kernel.org
    
    
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    c61bcc27
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7