diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-05 13:03:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 13:03:44 +0200 |
| commit | 3ca197e89c9affc76e79f0421e1bb9d65a8ec855 (patch) | |
| tree | e930e86d52114de16148de08b917c974cb874669 /src/test/rustdoc | |
| parent | 98e7a4e7844f5099ec7e15228a42440931072e53 (diff) | |
| parent | 45ccd50d0e52e006fdd81f854b4cd711ac439e85 (diff) | |
| download | rust-3ca197e89c9affc76e79f0421e1bb9d65a8ec855.tar.gz rust-3ca197e89c9affc76e79f0421e1bb9d65a8ec855.zip | |
Rollup merge of #83865 - camelid:disamb-err-fix, r=jyn514
Don't report disambiguator error if link would have been ignored Fixes #83859. This prevents us from warning on links such as `<hello@example.com>`. Note that we still warn on links such as `<hello@localhost>` because they have no dots in them. However, the links will still work, even though a warning is reported. r? ````@jyn514````
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/intra-doc/email-address.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-doc/email-address.rs b/src/test/rustdoc/intra-doc/email-address.rs new file mode 100644 index 00000000000..c407eb80da2 --- /dev/null +++ b/src/test/rustdoc/intra-doc/email-address.rs @@ -0,0 +1,6 @@ +//! Email me at <hello@example.com>. +//! Email me at <hello-world@example.com>. +//! Email me at <hello@localhost> (this warns but will still become a link). +// @has email_address/index.html '//a[@href="mailto:hello@example.com"]' 'hello@example.com' +// @has email_address/index.html '//a[@href="mailto:hello-world@example.com"]' 'hello-world@example.com' +// @has email_address/index.html '//a[@href="mailto:hello@localhost"]' 'hello@localhost' |
