rust/tests/rustdoc-ui/lints/redundant_explicit_links.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
746 B
Rust
Raw Normal View History

#![deny(rustdoc::redundant_explicit_links)]
pub fn dummy_target() {}
2023-06-29 18:01:21 +00:00
/// [dummy_target](dummy_target)
/// [`dummy_target`](dummy_target)
2023-06-29 18:35:44 +00:00
///
2023-06-29 18:01:21 +00:00
/// [Vec](Vec)
/// [`Vec`](Vec)
/// [Vec](std::vec::Vec)
/// [`Vec`](std::vec::Vec)
2023-06-29 18:08:37 +00:00
/// [std::vec::Vec](Vec)
/// [`std::vec::Vec`](Vec)
2023-06-29 18:01:21 +00:00
/// [std::vec::Vec](std::vec::Vec)
/// [`std::vec::Vec`](std::vec::Vec)
2023-06-29 18:35:44 +00:00
///
2023-06-29 18:01:21 +00:00
/// [usize](usize)
/// [`usize`](usize)
2023-06-29 18:08:37 +00:00
/// [usize](std::primitive::usize)
/// [`usize`](std::primitive::usize)
2023-06-29 18:01:21 +00:00
/// [std::primitive::usize](usize)
/// [`std::primitive::usize`](usize)
2023-06-29 18:08:37 +00:00
/// [std::primitive::usize](std::primitive::usize)
/// [`std::primitive::usize`](std::primitive::usize)
2023-06-29 18:01:21 +00:00
pub fn should_warn() {}
/// [`Vec<T>`](Vec)
/// [`Vec<T>`](std::vec::Vec)
pub fn should_not_warn() {}