Closed
Description
We should see if conditions can suit our purposes; we may not be able to get rid of every fail!
invocation that rustc
can reach, but it would not hurt to try.
Original title: Replace fail with session.bug in rustc
When possible rustc should be using session.bug
or session.span_bug
instead of fail
because that prints out proper error messages.