diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-09-13 20:56:33 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-09-13 21:31:26 -0400 |
| commit | f7983cae7008b8f86d927ddcd83a0b4785307b24 (patch) | |
| tree | a9f396c1b9f1f792693285cc710701f95e8b44e1 /src/test/rustdoc-ui | |
| parent | e4c28bf61a0631b6bf4bd9e53da53611399c1129 (diff) | |
| download | rust-f7983cae7008b8f86d927ddcd83a0b4785307b24.tar.gz rust-f7983cae7008b8f86d927ddcd83a0b4785307b24.zip | |
Don't use `link.span` yet
This shows the span of the _whole_ link, including the brackets. But rustdoc only wants to warn about the link text.
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/intra-link-double-anchor.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc-ui/intra-link-double-anchor.stderr b/src/test/rustdoc-ui/intra-link-double-anchor.stderr index 55636d5c2f4..3282ec8b793 100644 --- a/src/test/rustdoc-ui/intra-link-double-anchor.stderr +++ b/src/test/rustdoc-ui/intra-link-double-anchor.stderr @@ -1,8 +1,8 @@ warning: `with#anchor#error` contains multiple anchors - --> $DIR/intra-link-double-anchor.rs:5:10 + --> $DIR/intra-link-double-anchor.rs:5:18 | LL | /// docs [label][with#anchor#error] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ contains invalid anchor + | ^^^^^^^^^^^^^^^^^ contains invalid anchor | = note: `#[warn(broken_intra_doc_links)]` on by default |
