Closed
Description
#![feature(inclusive_range_syntax)]
fn main() {
...;
}
$ RUST_BACKTRACE=1 rustc lone-incl-range.rs
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'impossible range in AST', src/librustc_front/lowering.rs:1291
stack backtrace:
1: 0x7f355e9a7080 - sys::backtrace::tracing::imp::write::h6cb2e6cc562f1157ajv
2: 0x7f355e9b127f - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.44459
3: 0x7f355e9b0df3 - panicking::default_handler::h60d5c200be7610ffr7z
4: 0x7f355e9791dc - sys_common::unwind::begin_unwind_inner::h97e84635bfe5e882t7t
5: 0x7f355b13787f - sys_common::unwind::begin_unwind::h8452793534382620991
6: 0x7f355b1510f0 - lowering::lower_expr::_$u7b$$u7b$closure$u7d$$u7d$::closure.31555
7: 0x7f355b13be50 - lowering::lower_expr::h65bdcc84b4cf88da2vr
8: 0x7f355b142dd4 - vec::Vec<T>.FromIterator<T>::from_iter::h12825153023271112045
9: 0x7f355b142bc4 - lowering::lower_block::h8dc738a2417bb8b6Mar
10: 0x7f355b143adb - lowering::lower_item_kind::hc3b0928913e39eb6Dbr
11: 0x7f355b148dce - lowering::lower_item::h92bd16a94ad331ab3mr
12: 0x7f355b145e8e - lowering::ItemLowerer<'lcx, 'interner>.Visitor<'lcx>::visit_item::h5af224959762239erkr
13: 0x7f355b14a46b - lowering::lower_crate::ha58482b99d537c2e0kr
14: 0x7f355eeb9176 - driver::compile_input::hbe58952840e9fa26Pca
15: 0x7f355eea81b6 - run_compiler::h43154ab0ccc9972aJPc
16: 0x7f355eea5931 - sys_common::unwind::try::try_fn::h13700893182557476600
17: 0x7f355e9a48fb - __rust_try
18: 0x7f355e9a488d - sys_common::unwind::inner_try::h602712f93ad93b38v4t
19: 0x7f355eea617a - boxed::F.FnBox<A>::call_box::h17985710921385728096
20: 0x7f355e9af389 - sys::thread::Thread::new::thread_start::hc6901d1da7801591h4y
21: 0x7f3557d7d9d0 - start_thread
22: 0x7f355e6398fc - clone
23: 0x0 - <unknown>
$ rustc --version --verbose
rustc 1.9.0-dev (211296dda 2016-03-13)
binary: rustc
commit-hash: 211296ddabb6a307a0f60af1cb93f39b85ba5bbd
commit-date: 2016-03-13
host: x86_64-unknown-linux-gnu
release: 1.9.0-dev