File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change
1
+ // check-pass
2
+
3
+ /// [Vec][std::vec::Vec#examples] should not warn, because it's not actually redundant!
4
+ pub fn func ( ) { }
Original file line number Diff line number Diff line change 1
1
#![ crate_name = "foo" ]
2
+ #![ allow( rustdoc:: redundant_explicit_links) ]
2
3
//! # Description test crate
3
4
//!
4
5
//! This is the contents of the test crate docstring.
@@ -26,5 +27,5 @@ pub fn foo_fn() {}
26
27
// @has 'foo/fn.bar_fn.html' '//meta[@name="description"]/@content' \
27
28
// 'Description with intra-doc link to foo_fn and [nonexistent_item] and foo_fn.'
28
29
#[ 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) .
30
31
pub fn bar_fn ( ) { }
You can’t perform that action at this time.
0 commit comments