]> git.lizzy.rs Git - rust.git/commit
fatal error instead of ICE for impossible range during HIR lowering
authorAlex Burka <aburka@seas.upenn.edu>
Tue, 15 Mar 2016 17:03:42 +0000 (13:03 -0400)
committerAlex Burka <aburka@seas.upenn.edu>
Thu, 24 Mar 2016 05:33:31 +0000 (01:33 -0400)
commit9799cacba3042420cc7b49d555289241cf0456e1
tree7a08fce357b03fc4e9b5a53949dd52348c1aaddb
parentcd80c1bb5540fa2610a8f3d8a25560d1f0981400
fatal error instead of ICE for impossible range during HIR lowering

End-less ranges (`a...`) don't parse but bad syntax extensions could
conceivably produce them. Unbounded ranges (`...`) do parse and are
caught here.

The other panics in HIR lowering are all for unexpanded macros, which
cannot be constructed by bad syntax extensions.
src/librustc/session/mod.rs
src/librustc_front/lowering.rs
src/libsyntax/ast.rs
src/test/parse-fail/range_inclusive.rs