Stream: t-compiler/wg-diagnostics

Topic: duplicate lint warning for span


varkor (Nov 08 2018 at 23:57, on Zulip):

can I check if a specific lint warning has already been made for a particular span?

varkor (Nov 08 2018 at 23:57, on Zulip):

to avoid duplicate warnings when recursively linting patterns

oli (Nov 09 2018 at 09:12, on Zulip):

Isn't that happening automatically?

oli (Nov 09 2018 at 09:12, on Zulip):

we do have some deduplication cache, not sure how extensive its coverage is

pnkfelix (Nov 09 2018 at 10:00, on Zulip):

its not automatic. Or at least, we rolled our own in rustc_mir::borrow_check

pnkfelix (Nov 09 2018 at 10:00, on Zulip):

in that case, it was coupled with the desire to sort the diagnostics by span

Esteban K├╝ber (Nov 15 2018 at 15:34, on Zulip):

Isn't that happening automatically?

I believe the only thing that happens automatically is to deduplicate the "defined here/[deny(lint)]" note

Last update: Nov 15 2019 at 10:45UTC