mozilla/rust — Issue #1853: break/cont outside loop is checked poorly
Author: marijnh
Created: 2012-02-16 11:56:55+00:00
State: open
Labels: A-diagnostics, E-easy, I-papercut

We have some code deep in trans calling `sess.bug` without a span when a `break` or `cont` happens outside of a loop. In general, I think trans shouldn't be doing error-checking, and this should be caught by an earlier pass and reported with a span.