Skip to content

ICE with nightly on piston-examples #38790

Closed
@martinlindhe

Description

@martinlindhe

Details

OS: Windows 10 x64
rustc: rustc 1.16.0-nightly (4ecc85b 2016-12-28)
cargo: cargo 0.17.0-nightly (740f9c0 2016-12-29)

To reproduce

rustup default nightly
git clone https://github.com/PistonDevelopers/piston-examples
cd piston-examples
cargo build

Expected

With stable (rustc 1.14.0), the piston-examples does compile successfully.

Actual output

Running `rustc --crate-name deform src/deform.rs --crate-type bin -g -C metadata=6c9240b426d7b1af -C extra-filename=-6c9240b426d7b1af --out-dir C:\Users\name\dev\rs\piston-examples\target\debug\deps --emit=dep-info,link -L dependency=C:\Users\name\dev\rs\piston-examples\target\debug\deps --extern piston_window=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libpiston_window-0a1a60063703fb0e.rlib --extern shader_version=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libshader_version-6a60d77d44fb1501.rlib --extern find_folder=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libfind_folder-35f3d267b2482687.rlib --extern gfx=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libgfx-0410a72642285dd1.rlib --extern drag_controller=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libdrag_controller-b1828f35ec7eb32a.rlib --extern vecmath=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libvecmath-09f3ea6cbeda273e.rlib --extern camera_controllers=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libcamera_controllers-b9032432539dda45.rlib --extern sdl2_window=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libsdl2_window-ceb0a13f5a877d50.rlib --extern rand=C:\Users\name\dev\rs\piston-examples\target\debug\deps\librand-26cfd8d095643d5f.rlib --extern sprite=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libsprite-b68af5f2124a868d.rlib --extern image=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libimage-dacf166d5bac18b6.rlib --extern gfx_device_gl=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libgfx_device_gl-dc389d56cae94529.rlib --extern ai_behavior=C:\Users\name\dev\rs\piston-examples\target\debug\deps\libai_behavior-132db81e71637f11.rlib -L "native=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\lib\amd64" -L native=C:\Users\name\dev\rs\piston-examples\target\debug\build\miniz-sys-428121ff932ec089\out -L C:\Users\name\dev\rs\.cargo\sdl2-x64`
error: internal compiler error: C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\librustc\hir\map/mod.rs:395: node 605 is inlined but not present in map

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

note: run with `RUST_BACKTRACE=1` for a backtrace                                                                         

thread 'rustc' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\src\librustc_errors\lib.rs:423
stack backtrace:
0:     0x7ffe0eaafe3e - std::panicking::Location::line::h81feac86ecef9f31
1:     0x7ffe0eaaf2c2 - std::panicking::Location::line::h81feac86ecef9f31
2:     0x7ffe0eab2d1d - std::panicking::rust_panic_with_hook::h3d4a86898599a5a5
3:     0x7ffe15232900 - <unknown>
4:     0x7ffe1524d4de - rustc_errors::Handler::bug::h2f937f942ddca725
5:     0x7ffdfbd77385 - rustc::session::bug_fmt::h2aeb8933d35adaa0
6:     0x7ffdfbd771ba - rustc::session::bug_fmt::h2aeb8933d35adaa0
7:     0x7ffdfbd7692c - rustc::session::bug_fmt::h2aeb8933d35adaa0
8:     0x7ffdfbc697fc - rustc::hir::map::Map::read::h566f10c83992cae3
9:     0x7ffdfbc6a099 - rustc::hir::map::Map::body::h0c85c5740cc480e4
10:     0x7ffe11f9fa3c - rustc_const_eval::eval::eval_const_expr_partial::h4e21687640f52ea0
11:     0x7ffe11fa29b2 - rustc_const_eval::eval::eval_const_expr_partial::h4e21687640f52ea0
12:     0x7ffe15c0eae4 - <rustc_passes::consts::CheckCrateVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr::h073f7942a7c53bc0
13:     0x7ffe15c0e61e - <rustc_passes::consts::CheckCrateVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr::h073f7942a7c53bc0
14:     0x7ffe15c0e41e - <rustc_passes::consts::CheckCrateVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr::h073f7942a7c53bc0
15:     0x7ffe15c0be06 - <rustc_passes::consts::CheckCrateVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_nested_body::h6c88f222db58dfdf
16:     0x7ffe15c0e74d - <rustc_passes::consts::CheckCrateVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr::h073f7942a7c53bc0
17:     0x7ffe15c0e6ae - <rustc_passes::consts::CheckCrateVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr::h073f7942a7c53bc0
18:     0x7ffe15c0e41e - <rustc_passes::consts::CheckCrateVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr::h073f7942a7c53bc0
19:     0x7ffe15c0e7de - <rustc_passes::consts::CheckCrateVisitor<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr::h073f7942a7c53bc0

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions