lkml.org 
[lkml]   [2023]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 1/3] rust: task: remove redundant explicit link
    From
    On 10/5/23 18:05, Miguel Ojeda wrote:
    > 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]
    > Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
    > ---
    > [...]
    Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>

    \
     
     \ /
      Last update: 2023-10-05 23:31    [W:3.616 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site