]> git.lizzy.rs Git - rust.git/commit
Duplicate lint specifications are always bug!
authorMark Rousskov <mark.simulacrum@gmail.com>
Tue, 24 Sep 2019 00:13:02 +0000 (20:13 -0400)
committerMark Rousskov <mark.simulacrum@gmail.com>
Thu, 17 Oct 2019 23:16:40 +0000 (19:16 -0400)
commit47a443c50dbeee88cadc78e5c938f3e6d04d6f6b
treeaa9f513c185bfe4f777e94bcdd2befbeb3ebbe33
parentfa0f7d0080d8e7e9eb20aa9cbf8013f96c81287f
Duplicate lint specifications are always bug!

Replace early_error and sess.err with bug!, in all cases. If the
compiler we're running with, including plugins, is registering something
twice, that's a (compiler/plugin) programmer error -- we should not try
to be nice at the cost of developer ergononomics (hiding the stacktrace
of the second registration is bad).

This also is basically a static bug in ~all cases so it should not be a
detriment to users, including with plugins.
src/librustc/lint/context.rs