fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3#![deny(rustdoc::redundant_explicit_links)] 4 5pub fn dummy_target() {} 6 7/// [dummy_target] 8//~^ ERROR redundant explicit link target 9/// [`dummy_target`] 10//~^ ERROR redundant explicit link target 11/// 12/// [Vec] 13//~^ ERROR redundant explicit link target 14/// [`Vec`] 15//~^ ERROR redundant explicit link target 16/// [Vec] 17//~^ ERROR redundant explicit link target 18/// [`Vec`] 19//~^ ERROR redundant explicit link target 20/// [std::vec::Vec] 21//~^ ERROR redundant explicit link target 22/// [`std::vec::Vec`] 23//~^ ERROR redundant explicit link target 24/// [std::vec::Vec] 25//~^ ERROR redundant explicit link target 26/// [`std::vec::Vec`] 27//~^ ERROR redundant explicit link target 28/// 29/// [usize] 30//~^ ERROR redundant explicit link target 31/// [`usize`] 32//~^ ERROR redundant explicit link target 33/// [usize] 34//~^ ERROR redundant explicit link target 35/// [`usize`] 36//~^ ERROR redundant explicit link target 37/// [std::primitive::usize] 38//~^ ERROR redundant explicit link target 39/// [`std::primitive::usize`] 40//~^ ERROR redundant explicit link target 41/// [std::primitive::usize] 42//~^ ERROR redundant explicit link target 43/// [`std::primitive::usize`] 44//~^ ERROR redundant explicit link target 45/// 46/// [dummy_target] TEXT 47//~^ ERROR redundant explicit link target 48/// [`dummy_target`] TEXT 49//~^ ERROR redundant explicit link target 50pub fn should_warn_inline() {} 51 52/// [`Vec<T>`](Vec) 53/// [`Vec<T>`](std::vec::Vec) 54pub fn should_not_warn_inline() {} 55 56/// [dummy_target] 57//~^ ERROR redundant explicit link target 58/// [`dummy_target`] 59//~^ ERROR redundant explicit link target 60/// 61/// [Vec] 62//~^ ERROR redundant explicit link target 63/// [`Vec`] 64//~^ ERROR redundant explicit link target 65/// [Vec] 66//~^ ERROR redundant explicit link target 67/// [`Vec`] 68//~^ ERROR redundant explicit link target 69/// [std::vec::Vec] 70//~^ ERROR redundant explicit link target 71/// [`std::vec::Vec`] 72//~^ ERROR redundant explicit link target 73/// [std::vec::Vec] 74//~^ ERROR redundant explicit link target 75/// [`std::vec::Vec`] 76//~^ ERROR redundant explicit link target 77/// 78/// [usize] 79//~^ ERROR redundant explicit link target 80/// [`usize`] 81//~^ ERROR redundant explicit link target 82/// [usize] 83//~^ ERROR redundant explicit link target 84/// [`usize`] 85//~^ ERROR redundant explicit link target 86/// [std::primitive::usize] 87//~^ ERROR redundant explicit link target 88/// [`std::primitive::usize`] 89//~^ ERROR redundant explicit link target 90/// [std::primitive::usize] 91//~^ ERROR redundant explicit link target 92/// [`std::primitive::usize`] 93//~^ ERROR redundant explicit link target 94/// 95/// [dummy_target] TEXT 96//~^ ERROR redundant explicit link target 97/// [`dummy_target`] TEXT 98//~^ ERROR redundant explicit link target 99pub fn should_warn_reference_unknown() {} 100 101/// [`Vec<T>`][Vec] 102/// [`Vec<T>`][std::vec::Vec] 103pub fn should_not_warn_reference_unknown() {} 104 105/// [dummy_target] 106//~^ ERROR redundant explicit link target 107/// [`dummy_target`] 108//~^ ERROR redundant explicit link target 109/// 110/// [Vec] 111//~^ ERROR redundant explicit link target 112/// [`Vec`] 113//~^ ERROR redundant explicit link target 114/// [Vec] 115//~^ ERROR redundant explicit link target 116/// [`Vec`] 117//~^ ERROR redundant explicit link target 118/// [std::vec::Vec] 119//~^ ERROR redundant explicit link target 120/// [`std::vec::Vec`] 121//~^ ERROR redundant explicit link target 122/// [std::vec::Vec] 123//~^ ERROR redundant explicit link target 124/// [`std::vec::Vec`] 125//~^ ERROR redundant explicit link target 126/// 127/// [usize] 128//~^ ERROR redundant explicit link target 129/// [`usize`] 130//~^ ERROR redundant explicit link target 131/// [usize] 132//~^ ERROR redundant explicit link target 133/// [`usize`] 134//~^ ERROR redundant explicit link target 135/// [std::primitive::usize] 136//~^ ERROR redundant explicit link target 137/// [`std::primitive::usize`] 138//~^ ERROR redundant explicit link target 139/// [std::primitive::usize] 140//~^ ERROR redundant explicit link target 141/// [`std::primitive::usize`] 142//~^ ERROR redundant explicit link target 143/// 144/// [dummy_target] TEXT 145//~^ ERROR redundant explicit link target 146/// [`dummy_target`] TEXT 147//~^ ERROR redundant explicit link target 148/// 149/// [dummy_target]: dummy_target 150/// [Vec]: Vec 151/// [std::vec::Vec]: Vec 152/// [usize]: usize 153/// [std::primitive::usize]: usize 154pub fn should_warn_reference() {} 155 156/// [`Vec<T>`]: Vec 157/// [`Vec<T>`]: std::vec::Vec 158pub fn should_not_warn_reference() {}