Skip to content

Commit 0e2f2cc

Browse files
committed
Add check-pass tests and fix test behavior
1 parent 5ce6cc7 commit 0e2f2cc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// check-pass
2+
3+
/// [Vec][std::vec::Vec#examples] should not warn, because it's not actually redundant!
4+
pub fn func() {}

tests/rustdoc/description.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![crate_name = "foo"]
2+
#![allow(rustdoc::redundant_explicit_links)]
23
//! # Description test crate
34
//!
45
//! This is the contents of the test crate docstring.
@@ -26,5 +27,5 @@ pub fn foo_fn() {}
2627
// @has 'foo/fn.bar_fn.html' '//meta[@name="description"]/@content' \
2728
// 'Description with intra-doc link to foo_fn and [nonexistent_item] and foo_fn.'
2829
#[allow(rustdoc::broken_intra_doc_links)]
29-
/// Description with intra-doc link to [foo_fn] and [nonexistent_item] and [foo_fn].
30+
/// Description with intra-doc link to [foo_fn] and [nonexistent_item] and [foo_fn](self::foo_fn).
3031
pub fn bar_fn() {}

0 commit comments

Comments
 (0)