Created
July 26, 2014 17:56
-
-
Save allan-simon/5a689088c8c46e2843d0 to your computer and use it in GitHub Desktop.
Trying to compile this code with `rustc lib.rs` generate a internal compiler error with rust-nightly (4e7c5e5c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![crate_name = "xmpp"] | |
#![crate_type = "lib"] | |
pub fn handle() { | |
loop { } | |
println!("we close"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib.rs:6:14: 6:24 warning: unreachable statement, #[warn(unreachable_code)] on by default | |
lib.rs:6 println!("we close"); | |
^~~~~~~~~~ | |
note: in expansion of format_args! | |
<std macros>:2:23: 2:77 note: expansion site | |
<std macros>:1:1: 3:2 note: in expansion of println! | |
lib.rs:6:5: 6:26 note: expansion site | |
error: internal compiler error: encode_symbol: id not found 16 | |
note: the compiler hit an unexpected failure path. 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 | |
task 'rustc' failed at 'Box<Any>', /build/buildd/rust-nightly-201407260406~cf1381c~trusty/src/libsyntax/ast_util.rs:784 | |
stack backtrace: | |
1: 0xb60fc9d0 - rt::backtrace::imp::write::h3040a1eb3d8746c9DUp | |
2: 0xb60ffc80 - <unknown> | |
3: 0xb6493e00 - unwind::begin_unwind_inner::h4b04aff3334f5af9lTd | |
4: 0xb5992cf0 - <unknown> | |
5: 0xb59936f0 - diagnostic::Handler::bug::h35d70ea01410d57duZC | |
6: 0xb6e8ec60 - <unknown> | |
7: 0xb6e97ac0 - <unknown> | |
8: 0xb6ea0500 - <unknown> | |
9: 0xb68a3f60 - <unknown> | |
10: 0xb68a3f60 - <unknown> | |
11: 0xb68a3f60 - <unknown> | |
12: 0xb6ea23a0 - metadata::encoder::EncodeVisitor<'a, 'b>.visit..Visitor<(*>::visit_item::h06ca236bacc1bfab0Dn | |
13: 0xb6ea1dd0 - <unknown> | |
14: 0xb6ea1100 - <unknown> | |
15: 0xb6ea2ae0 - <unknown> | |
16: 0xb6ea1100 - <unknown> | |
17: 0xb6ea1dd0 - <unknown> | |
18: 0xb6ea2bc0 - <unknown> | |
19: 0xb6ea23a0 - metadata::encoder::EncodeVisitor<'a, 'b>.visit..Visitor<(*>::visit_item::h06ca236bacc1bfab0Dn | |
20: 0xb6ea7320 - <unknown> | |
21: 0xb6aab940 - metadata::encoder::encode_metadata::hb175f11a376ff96aIao | |
22: 0xb6aab050 - middle::trans::base::write_metadata::hd85593953b447d47wZc | |
23: 0xb6aabd50 - middle::trans::base::trans_crate::hbd0a950de76d8b7cU3c | |
24: 0xb6ef0d10 - driver::driver::phase_4_translate_to_llvm::h4055dc084f3750d27eu | |
25: 0xb6ee7860 - driver::driver::compile_input::h2df17e4f5ce48cc2NRt | |
26: 0xb6f90330 - <unknown> | |
27: 0xb6f90230 - <unknown> | |
28: 0xb6fa2c30 - <unknown> | |
29: 0xb6fa2a10 - <unknown> | |
30: 0xb77528b0 - <unknown> | |
31: 0xb6493800 - <unknown> | |
32: 0xb64f1ab0 - rust_try | |
33: 0xb6491040 - unwind::try::h05ac48a0b667539bqHd | |
34: 0xb6490dd0 - task::Task::run::had6d6b44a110950bgSc | |
35: 0xb77526b0 - <unknown> | |
36: 0xb6492e00 - <unknown> | |
37: 0xb5fa1ea0 - start_thread | |
38: 0xb638a702 - clone | |
39: 0x0 - <unknown> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment