Closed japaric closed 9 years ago
#![crate_type = "lib"] #![feature(lang_items)] #![no_std] #[lang = "sized"] trait Sized {} trait Iterator { type Item; }
$ RUST_BACKTRACE=1 RUST_LOG=debug rustc ice.rs DEBUG:rustc::middle::ty: Interned type: TyS { sty: ty_projection(ProjectionTy { trait_ref: TraitRef { def_id: DefId { krate: 0, node: 4 }, substs: Substs { types: VecPerParamSpace {TypeSpace: [], SelfSpace: [TyS { sty: ty_param(ParamTy { space: SelfSpace, idx: 0, name: "Self"(10) }), flags: 2, region_depth: 0 }], FnSpace: [], }, regions: NonerasedRegions(VecPerParamSpace {TypeSpace: [], SelfSpace: [], FnSpace: [], }) } }, item_name: "Item"(70) }), flags: 130, region_depth: 0 } Pointer: 0x7f194f878050 error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'assertion failed: did.krate != ast::LOCAL_CRATE', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/ty.rs:5368 stack backtrace: 1: 0x7f195843b130 - sys::backtrace::write::h34a8f70a4ca4ec0fy8t 2: 0x7f195845e860 - failure::on_fail::h88bfd016d2822c140jB 3: 0x7f19583cab20 - rt::unwind::begin_unwind_inner::haf8e45ff7ce022991YA 4: 0x7f1956337410 - rt::unwind::begin_unwind::h16725473154904784647 5: 0x7f1956680c80 - middle::ty::lookup_trait_def::hed45596af955d6a7oC6 6: 0x7f19565d6220 - util::ppaux::ty..TraitRef<'tcx>.UserString<'tcx>::user_string::h6bd29e8bd72bcd7fScv 7: 0x7f19564e5ea0 - util::ppaux::ty_to_string::h2a8303d81c12da29dFt 8: 0x7f19565c3ba0 - util::ppaux::ty..TraitRef<'tcx>.Repr<'tcx>::repr::h8467bbc0a1244cacApu 9: 0x7f1956678e60 - util::ppaux::ty..TraitPredicate<'tcx>.Repr<'tcx>::repr::hd148e3e6da406a03QBv 10: 0x7f1956678d90 - util::ppaux::ty..Binder<T>.Repr<'tcx>::repr::h11475834061777324121 11: 0x7f1956684770 - middle::ty::ty..Predicate<'tcx>.Repr<'tcx>::repr::hbe39caaf6b923358Om8 12: 0x7f1957b93520 - util::ppaux::repr_vec::h2614998610846117614 13: 0x7f1957c64710 - collect::trait_def_of_item::h7a113078899bdebds1u 14: 0x7f1957c63ce0 - collect::CollectTraitDefVisitor<'a, 'tcx>.visit..Visitor<'v>::visit_item::ha564254181b47ed5Vdu 15: 0x7f1957ca38d0 - check_crate::unboxed_closure.31907 16: 0x7f1957ca1810 - check_crate::h6d1618ed293ba6638My 17: 0x7f19589bf170 - driver::phase_3_run_analysis_passes::h422da505cbc39ffeVFa 18: 0x7f19589a71a0 - driver::compile_input::hf13f60662569b8edBba 19: 0x7f1958a6af60 - run_compiler::hb21c8df76397117cR8b 20: 0x7f1958a696d0 - thunk::F.Invoke<A, R>::invoke::h13774937598519192257 21: 0x7f1958a68630 - rt::unwind::try::try_fn::h9167027889745043865 22: 0x7f19584c9bc0 - rust_try_inner 23: 0x7f19584c9bb0 - rust_try 24: 0x7f1958a688e0 - thunk::F.Invoke<A, R>::invoke::h9295767165675113612 25: 0x7f195844b030 - sys::thread::thread_start::h3f192e5a493c4515E3w 26: 0x7f19526b8250 - start_thread 27: 0x7f195805d219 - clone 28: 0x0 - <unknown>
rustc 1.0.0-nightly (458a6a2f6 2015-01-25 21:20:37 +0000)
No longer ICEs.
STR
Backtrace
Version