diff options
| author | Kyle Lin <minecraft.kyle.train@gmail.com> | 2023-07-01 01:20:33 +0800 |
|---|---|---|
| committer | Kyle Lin <minecraft.kyle.train@gmail.com> | 2023-08-18 15:19:18 +0800 |
| commit | 0e2f2cccd748028a39603e46afc56d7c20bcc7c8 (patch) | |
| tree | ce40aa9a56712f40bdb52497b7a148bd9a3aefe3 /tests/rustdoc | |
| parent | 5ce6cc7df3175519219c091059dd663313438c97 (diff) | |
Add check-pass tests and fix test behavior
Diffstat (limited to 'tests/rustdoc')
| -rw-r--r-- | tests/rustdoc/description.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rustdoc/description.rs b/tests/rustdoc/description.rs index 918ccd63968..aabbb4c4c8f 100644 --- a/tests/rustdoc/description.rs +++ b/tests/rustdoc/description.rs @@ -1,4 +1,5 @@ #![crate_name = "foo"] +#![allow(rustdoc::redundant_explicit_links)] //! # Description test crate //! //! This is the contents of the test crate docstring. @@ -26,5 +27,5 @@ 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]. +/// Description with intra-doc link to [foo_fn] and [nonexistent_item] and [foo_fn](self::foo_fn). pub fn bar_fn() {} |
