mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
159 lines
4.2 KiB
Rust
159 lines
4.2 KiB
Rust
//@ run-rustfix
|
|
|
|
#![deny(rustdoc::redundant_explicit_links)]
|
|
|
|
pub fn dummy_target() {}
|
|
|
|
/// [dummy_target]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`dummy_target`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::vec::Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::vec::Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::vec::Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::vec::Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::primitive::usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::primitive::usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::primitive::usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::primitive::usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [dummy_target] TEXT
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`dummy_target`] TEXT
|
|
//~^ ERROR redundant explicit link target
|
|
pub fn should_warn_inline() {}
|
|
|
|
/// [`Vec<T>`](Vec)
|
|
/// [`Vec<T>`](std::vec::Vec)
|
|
pub fn should_not_warn_inline() {}
|
|
|
|
/// [dummy_target]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`dummy_target`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::vec::Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::vec::Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::vec::Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::vec::Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::primitive::usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::primitive::usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::primitive::usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::primitive::usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [dummy_target] TEXT
|
|
//~^ ERROR redundant explicit link 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]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`dummy_target`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::vec::Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::vec::Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::vec::Vec]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::vec::Vec`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::primitive::usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::primitive::usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [std::primitive::usize]
|
|
//~^ ERROR redundant explicit link target
|
|
/// [`std::primitive::usize`]
|
|
//~^ ERROR redundant explicit link target
|
|
///
|
|
/// [dummy_target] TEXT
|
|
//~^ ERROR redundant explicit link 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() {}
|