]> git.lizzy.rs Git - rust.git/commit
deduplicate one-time diagnostics on lint ID as well as span and message
authorZack M. Davis <code@zackmdavis.net>
Thu, 27 Oct 2016 06:07:38 +0000 (23:07 -0700)
committerZack M. Davis <code@zackmdavis.net>
Thu, 27 Oct 2016 06:24:59 +0000 (23:24 -0700)
commitef6a07221d66bff1ef8edac4f9ffc39013abf256
tree4f31e856d4106c9de191f03e8e7c8bd6009d54ce
parent8d1da8452cc725443c43c44e0f4ec64a73944cdf
deduplicate one-time diagnostics on lint ID as well as span and message

Some lint-level attributes (like `bad-style`, or, more dramatically,
`warnings`) can affect more than one lint; it seems fairer to point out
the attribute once for each distinct lint affected. Also, a UI test is
added. This remains in the matter of #24690.
src/librustc/lint/context.rs
src/librustc/session/mod.rs
src/test/ui/span/issue-24690.rs [new file with mode: 0644]
src/test/ui/span/issue-24690.stderr [new file with mode: 0644]