Don't report disambiguator error if link would have been ignored
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.
This commit is contained in:
parent
8ad6a443cf
commit
45ccd50d0e
4 changed files with 51 additions and 4 deletions
6
src/test/rustdoc-ui/intra-doc/email-address-localhost.rs
Normal file
6
src/test/rustdoc-ui/intra-doc/email-address-localhost.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
#![deny(warnings)]
|
||||
|
||||
//! Email me at <hello@localhost>.
|
||||
//~^ ERROR unknown disambiguator `hello`
|
||||
|
||||
//! This should *not* warn: <hello@example.com>.
|
Loading…
Add table
Add a link
Reference in a new issue