Issue 1:
Sorry, since I don't know what causes this, can't be more specific, and don't know if the other bug reports (currently 4 others) are related or have distinct causes.

Other issues with the same error:

#6000

#5959

#6102

#6440

This is as small as I can get the code:

use core::num::Zero;

pub trait MyTrait {
pub fn method(&mut self);
}

pub struct MyStruct<U> {
pub attr: U,
}

pub impl<U: Num> MyStruct<U> {
pub fn other_method(&mut self) {
self.attr += Zero::zero();
}
}

impl MyTrait for MyStruct<f64> {
pub fn method(&mut self) {
self.other_method();
}
}

fn main() {
let x = MyStruct {attr: 0.0f64};
let _ = ~x as ~MyTrait;
}

Issue 2:
To reproduce:

https://github.com/zwizwa/lars

d0a9cae2d174c181f80a3e2716118dd59945be78 bug compiling la.elf

( make la.elf )

This is on Debian wheezy/jessie/sid cocktail.

rustc 1.0.0-nightly (1d00c54 2015-01-30 19:56:34 +0000)

binary: rustc

commit-hash: 1d00c54

commit-date: 2015-01-30 19:56:34 +0000

host: x86_64-unknown-linux-gnu

release: 1.0.0-nightly

[master] tom@zoo:~/lars$ make la.elf

RUST_BACKTRACE=1 rustc la.rs -o la.elf

ERROR:rbml::reader: failed to find block with tag 7

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 'explicit panic', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librbml/lib.rs:266

stack backtrace:

1: 0x2b9353530870 - sys::backtrace::write::h26b40214a7757117H8t

2: 0x2b9353553be0 - failure::on_fail::h7a79bf921b6662fbzkB

3: 0x2b93534c01f0 - rt::unwind::begin_unwind_inner::hfe1c0e12f5e834cfAZA

4: 0x2b935a46b550 - rt::unwind::begin_unwind::h13771489483523584678

5: 0x2b935a46a2e0 - reader::get_doc::hca9c74691b431218nLa

6: 0x2b93553feac0 - metadata::decoder::item_type::h11e3fdce04437c2aTqh

7: 0x2b935540fa40 - metadata::decoder::get_type::h81f5136878596756uDh

8: 0x2b93553be9b0 - metadata::csearch::get_type::h9b0725336787e95fjuk

9: 0x2b9353fb38d0 - collect::CollectCtxt<'a, 'tcx>.AstConv<'tcx>::get_item_type_scheme::ha84927afd1cd11a416u

10: 0x2b9353fa2550 - astconv::ast_path_to_ty::h5eef35501e32996d3It

11: 0x2b9353fa3a40 - astconv::ast_ty_to_ty::closure.32670

12: 0x2b9353f3d7f0 - astconv::ast_ty_to_ty::hdfd5055274123a4bN9t

13: 0x2b9353f9c060 - vec::Vec.FromIterator::from_iter::h13503769950079175686

14: 0x2b9353f99cc0 - astconv::convert_angle_bracketed_parameters::h9025012b833df2f4Vit

15: 0x2b9353f3d260 - astconv::ast_path_substs_for_ty::hb223d380e0653eb777s

16: 0x2b9353fa2550 - astconv::ast_path_to_ty::h5eef35501e32996d3It

17: 0x2b9353fa3a40 - astconv::ast_ty_to_ty::closure.32670

18: 0x2b9353f3d7f0 - astconv::ast_ty_to_ty::hdfd5055274123a4bN9t

19: 0x2b9353f9cb70 - astconv::convert_ty_with_lifetime_elision::h6aef1296b36bbcec2mt

20: 0x2b9353fa78d0 - astconv::ty_of_method_or_bare_fn::hfbbddbe9dd8fd2d8Dtu

21: 0x2b9353fa7750 - astconv::ty_of_method::h90bdcfba9a641a98Zru

22: 0x2b9353fcba40 - collect::convert_methods::ty_of_method::h37cc71cdb4ced048svv

23: 0x2b9353fb94e0 - collect::convert::hbd254ededfa34065yyv

24: 0x2b9353ff3670 - check_crate::closure.33797

25: 0x2b9353ff15b0 - check_crate::hd5b0ce5ac42bd86cIEz

26: 0x2b935311bf50 - driver::phase_3_run_analysis_passes::h3a3da09b2eae9713NFa

27: 0x2b9353103330 - driver::compile_input::h802d2a6759ac022fBba

28: 0x2b93531c9230 - run_compiler::h4517938d3296cfc5l9b

29: 0x2b93531c78c0 - thunk::F.Invoke<A, R>::invoke::h5452441173088021345

30: 0x2b93531c67f0 - rt::unwind::try::try_fn::h8490101008730471441

31: 0x2b93535bef60 - rust_try_inner

32: 0x2b93535bef50 - rust_try

33: 0x2b93531c6aa0 - thunk::F.Invoke<A, R>::invoke::h13338196279056651375

34: 0x2b93535403b0 - sys:🧵:thread_start::h395b8c6815673c5cN3w

35: 0x2b935950bfe0 - start_thread

36: 0x2b9353b73c99 - __clone

37: 0x0 -

make: *** [la.elf] Error 101

http://doc.rust-lang.org/complement-bugreport.html