Closed
Description
I am consistently getting a panic when compiling a particular project. It does not appear to occur when compiling one of libraries that project depends on: https://github.com/retep998/winapi-rs. The project being compiled is a library. The panic appears to chronologically occur after the compiler generates dead code warnings. Here is my backtrace:
Compiling win32_experiment v0.0.1 (file:///PATH_HERE)
thread 'rustc' panicked at 'assertion failed: f.abi == Rust || f.abi == RustCall', C:\bot\slave\nightly-dist-rustc-win-64\build\src\librustc_trans\trans\base.rs:2418
stack backtrace:
1: 0x69bee9cd - sys::backtrace::write::hd40c6de25ef01e0bfjt
2: 0x69c01a32 - rt::unwind::register::hcb202fda23aef97aw7y
3: 0x69b834a7 - rt::unwind::begin_unwind_inner::h43ca250f1ae88b3e64y
4: 0x1423d4c - trans::context::CrateContext<'b, 'tcx>::link_meta::ha7fe491c1a9e61d23qm
5: 0x1540ee7 - trans::cleanup::FunctionContext<'blk, 'tcx>.CleanupMethods<'blk, 'tcx>::push_custom_cleanup_scope_with_debug_loc::hc8a6918f1c87a4b9ngK
6: 0x1542dce - trans::cleanup::FunctionContext<'blk, 'tcx>.CleanupMethods<'blk, 'tcx>::push_custom_cleanup_scope_with_debug_loc::hc8a6918f1c87a4b9ngK
7: 0x145dcad - trans::context::CrateContext<'b, 'tcx>::sess::h0c92734bae2bfb65wmm
8: 0x145c390 - trans::context::CrateContext<'b, 'tcx>::stats::hfdf50b198e5f7592qzm
9: 0x153fc48 - trans::cleanup::FunctionContext<'blk, 'tcx>.CleanupMethods<'blk, 'tcx>::push_custom_cleanup_scope_with_debug_loc::hc8a6918f1c87a4b9ngK
10: 0x145b857 - trans::context::CrateContext<'b, 'tcx>::stats::hfdf50b198e5f7592qzm
11: 0x1544728 - trans::base::trans_crate::ha9ad2d2ee040c191Udv
12: 0x70b2543a - driver::phase_4_translate_to_llvm::h9dcbc7c0b9c8c65bJFa
13: 0x70b03243 - driver::compile_input::h45b30318e07c4cf6vba
14: 0x70bcaa1e - run::heefafb1ff7869308B4b
15: 0x70bc786a - run::heefafb1ff7869308B4b
16: 0x69c288fc - rust_try
17: 0x69c288d9 - rust_try
18: 0x70bc7fa9 - run::heefafb1ff7869308B4b
19: 0x69bf3457 - sys::tcp::TcpListener::bind::hfcf283b88d14d24bfTv
20: 0x7ffd5c43a6e2 - BaseThreadInitThunk
This is the output of rustc --version --verbose
rustc 1.0.0-nightly (ea6f65c5f 2015-01-06 19:47:08 +0000)
binary: rustc
commit-hash: ea6f65c5f1a3f84e010d2cef02a0160804e9567a
commit-date: 2015-01-06 19:47:08 +0000
host: x86_64-pc-windows-gnu
release: 1.0.0-nightly