2023-06-30 05:10:01 -05:00
|
|
|
//@ run-rustfix
|
|
|
|
|
2023-06-29 00:24:09 -05:00
|
|
|
#![deny(rustdoc::redundant_explicit_links)]
|
|
|
|
|
|
|
|
pub fn dummy_target() {}
|
|
|
|
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [dummy_target](dummy_target)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [`dummy_target`](dummy_target)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:35:44 -05:00
|
|
|
///
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [Vec](Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [`Vec`](Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [Vec](std::vec::Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 00:24:09 -05:00
|
|
|
/// [`Vec`](std::vec::Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:08:37 -05:00
|
|
|
/// [std::vec::Vec](Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:08:37 -05:00
|
|
|
/// [`std::vec::Vec`](Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [std::vec::Vec](std::vec::Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [`std::vec::Vec`](std::vec::Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:35:44 -05:00
|
|
|
///
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [usize](usize)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [`usize`](usize)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:08:37 -05:00
|
|
|
/// [usize](std::primitive::usize)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:08:37 -05:00
|
|
|
/// [`usize`](std::primitive::usize)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [std::primitive::usize](usize)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:01:21 -05:00
|
|
|
/// [`std::primitive::usize`](usize)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:08:37 -05:00
|
|
|
/// [std::primitive::usize](std::primitive::usize)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-29 13:08:37 -05:00
|
|
|
/// [`std::primitive::usize`](std::primitive::usize)
|
2023-06-30 05:10:01 -05:00
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-30 11:55:37 -05:00
|
|
|
///
|
2023-06-30 05:10:01 -05:00
|
|
|
/// [dummy_target](dummy_target) TEXT
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`dummy_target`](dummy_target) TEXT
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
pub fn should_warn_inline() {}
|
2023-06-29 13:01:21 -05:00
|
|
|
|
|
|
|
/// [`Vec<T>`](Vec)
|
|
|
|
/// [`Vec<T>`](std::vec::Vec)
|
2023-06-30 05:10:01 -05:00
|
|
|
pub fn should_not_warn_inline() {}
|
2023-06-30 09:48:20 -05:00
|
|
|
|
|
|
|
/// [dummy_target][dummy_target]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`dummy_target`][dummy_target]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
///
|
|
|
|
/// [Vec][Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`Vec`][Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [Vec][std::vec::Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`Vec`][std::vec::Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [std::vec::Vec][Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`std::vec::Vec`][Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [std::vec::Vec][std::vec::Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`std::vec::Vec`][std::vec::Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
///
|
|
|
|
/// [usize][usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`usize`][usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [usize][std::primitive::usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`usize`][std::primitive::usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [std::primitive::usize][usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`std::primitive::usize`][usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [std::primitive::usize][std::primitive::usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`std::primitive::usize`][std::primitive::usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-30 11:55:37 -05:00
|
|
|
///
|
2023-06-30 09:48:20 -05:00
|
|
|
/// [dummy_target][dummy_target] TEXT
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`dummy_target`][dummy_target] TEXT
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
pub fn should_warn_reference_unknown() {}
|
|
|
|
|
|
|
|
/// [`Vec<T>`][Vec]
|
|
|
|
/// [`Vec<T>`][std::vec::Vec]
|
|
|
|
pub fn should_not_warn_reference_unknown() {}
|
|
|
|
|
|
|
|
/// [dummy_target][dummy_target]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`dummy_target`][dummy_target]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
///
|
|
|
|
/// [Vec][Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`Vec`][Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [Vec][std::vec::Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`Vec`][std::vec::Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [std::vec::Vec][Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`std::vec::Vec`][Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [std::vec::Vec][std::vec::Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`std::vec::Vec`][std::vec::Vec]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
///
|
|
|
|
/// [usize][usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`usize`][usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [usize][std::primitive::usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`usize`][std::primitive::usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [std::primitive::usize][usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`std::primitive::usize`][usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [std::primitive::usize][std::primitive::usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`std::primitive::usize`][std::primitive::usize]
|
|
|
|
//~^ ERROR redundant explicit link target
|
2023-06-30 11:55:37 -05:00
|
|
|
///
|
2023-06-30 09:48:20 -05:00
|
|
|
/// [dummy_target][dummy_target] TEXT
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
/// [`dummy_target`][dummy_target] TEXT
|
|
|
|
//~^ ERROR redundant explicit link target
|
|
|
|
///
|
|
|
|
/// [dummy_target]: dummy_target
|
|
|
|
/// [Vec]: Vec
|
|
|
|
/// [std::vec::Vec]: Vec
|
|
|
|
/// [usize]: usize
|
|
|
|
/// [std::primitive::usize]: usize
|
|
|
|
pub fn should_warn_reference() {}
|
|
|
|
|
|
|
|
/// [`Vec<T>`]: Vec
|
|
|
|
/// [`Vec<T>`]: std::vec::Vec
|
|
|
|
pub fn should_not_warn_reference() {}
|