rustdoc: account for intra-doc links in <meta name="description">

This commit is contained in:
Michael Howell 2023-02-11 12:36:55 -07:00
parent 8dabf5da9e
commit 72b3f46b43
4 changed files with 22 additions and 4 deletions

View file

@ -22,3 +22,9 @@ pub mod foo_mod {
// 'Only paragraph.'
/// Only paragraph.
pub fn foo_fn() {}
// @has 'foo/fn.bar_fn.html' '//meta[@name="description"]/@content' \
// 'Description with intra-doc link to foo_fn and [nonexistent_item] and foo_fn.'
#[allow(rustdoc::broken_intra_doc_links)]
/// Description with intra-doc link to [foo_fn] and [nonexistent_item] and [foo_fn](self::foo_fn).
pub fn bar_fn() {}