1
Fork 0

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:
Camelid 2021-04-04 15:31:43 -07:00
parent 8ad6a443cf
commit 45ccd50d0e
4 changed files with 51 additions and 4 deletions

View file

@ -0,0 +1,6 @@
#![deny(warnings)]
//! Email me at <hello@localhost>.
//~^ ERROR unknown disambiguator `hello`
//! This should *not* warn: <hello@example.com>.