Closed
Description
I'm not sure whether this is the right repo, but: When running rust-fmt on a special line of code, I get a panic from syntex_syntax.
Code:
use something;; // two semicolons!
Error message + backtrace:
C:\Users\markus\Documents\Coding\rust\archer\src\model.rs:1:15: 1:16 error: expected item, found `;`
C:\Users\markus\Documents\Coding\rust\archer\src\model.rs:1 use something;;
^
thread '<main>' panicked at 'Box<Any>', C:/Users/markus/.multirust/toolchains/nightly/cargo\registry\src\github.com-88ac128001ac3a9a\syntex_syntax-0.23.0\src\parse/mod.rs:76
stack backtrace:
0: 0x8cc88b - sys::backtrace::write::hf2d10e81df3aa926vhu
1: 0x8d4d87 - panicking::default_handler::hd510b953de0f6c64kTy
2: 0x8963f8 - sys_common::unwind::begin_unwind_inner::h6ed14856f3079d19S4s
3: 0x53cb0a - sys_common::unwind::begin_unwind::h4979745220048331745
4: 0x5a44de - parse::parse_crate_from_file::h18d39f10bbdb16322EV
5: 0x42169f - format::hdf0dc7f44e863157Kom
6: 0x4223d0 - run::ha2489810762bf588Qpm
7: 0x40842e - main::hdc3f62eb7f8632afwha
8: 0x8d4488 - sys_common::unwind::try::try_fn::h4279873565337993947
9: 0x8bf84f - sys_common::unwind::try::inner_try::h5376f22191deffccq1s
10: 0x8d438d - rt::lang_start::h311db593fb8707c7yLy
11: 0x4013b4 - _tmainCRTStartup
12: 0x4014e7 - mainCRTStartup
13: 0x77965a4c - je_arena_alloc_junk_small.part.25
Versions:
rustfmt -V: 0.2.1
rustc -V: rustc 1.7.0-nightly (d5e229057 2016-01-04)
cargo -V: cargo 0.8.0-nightly (08da2f5 2015-12-21)
On Windows 7 64 bit with msys2