Created
May 5, 2014 21:27
-
-
Save rainbow-alex/4f50ce8f4be22dc93a21 to your computer and use it in GitHub Desktop.
compiler failure: 'expected bare rust fn or an intrinsic' (cross-crate pub use of empty struct)
This file contains 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
extern crate foo; | |
fn main() { | |
foo::Bar; | |
} |
This file contains 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_type="lib"] | |
#![crate_id="foo"] | |
pub use self::bar::Bar; | |
mod bar { | |
pub struct Bar; | |
} |
This file contains 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
$ rustc libfoo.rs | |
$ RUST_BACKTRACE=1 rustc -L . foo.rs | |
foo.rs:4:2: 4:11 warning: path statement with no effect, #[warn(path_statement)] on by default | |
foo.rs:4 foo::Bar; | |
^~~~~~~~~ | |
error: internal compiler error: unexpected failure | |
note: the compiler hit an unexpected failure path. this is a bug. | |
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html | |
note: run with `RUST_BACKTRACE=1` for a backtrace | |
task 'rustc' failed at 'expected bare rust fn or an intrinsic', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/trans/base.rs:1720 | |
stack backtrace: | |
1: 0x7f8370f52ec0 - rt::backtrace::imp::write::hc98b15d8c291ce18Vwa::v0.11.pre | |
2: 0x7f8370ea4530 - rt::unwind::begin_unwind_inner::he19aef5afc5bdae7069::v0.11.pre | |
3: 0x7f8371b1d7e0 - rt::unwind::begin_unwind::h7903194064715478821::v0.11.pre | |
4: 0x7f8371c236b0 - middle::trans::base::register_fn::hd55b0fd239861367Otp::v0.11.pre | |
5: 0x7f8371b2b7f0 - middle::trans::base::get_item_val::h83c660af8fefc3c9YGp::v0.11.pre | |
6: 0x7f8371b8e200 - middle::trans::callee::trans_fn_ref_with_vtables::h1581f92db8ba813ejed::v0.11.pre | |
7: 0x7f8371b89ad0 - middle::trans::callee::trans_fn_ref::h21b7d08ffe420b4ey7c::v0.11.pre | |
8: 0x7f8371bac190 - middle::trans::expr::trans_def::h3d3f72c8d7fb02a4H1e::v0.11.pre | |
9: 0x7f8371ba0fa0 - middle::trans::expr::trans_unadjusted::h7eb04b0989b4c1e39He::v0.11.pre | |
10: 0x7f8371b63790 - middle::trans::expr::trans_into::h3a621dae798db578Rle::v0.11.pre | |
11: 0x7f8371b628e0 - middle::trans::controlflow::trans_stmt_semi::hda64a192370b5d7984a::v0.11.pre | |
12: 0x7f8371b61d20 - middle::trans::controlflow::trans_stmt::h2d2abdd00357b53050a::v0.11.pre | |
13: 0x7f8371b63cd0 - middle::trans::controlflow::trans_block::h33ec1bc495d9d33115a::v0.11.pre | |
14: 0x7f8371c1cc10 - middle::trans::base::trans_closure::h9e908588d56038e2g3o::v0.11.pre | |
15: 0x7f8371b2f830 - middle::trans::base::trans_fn::hf8a968e255e75f9dmbp::v0.11.pre | |
16: 0x7f8371b2a4c0 - middle::trans::base::trans_item::h7feba7b86e8310954mp::v0.11.pre | |
17: 0x7f8371c210c0 - middle::trans::base::trans_mod::h317799af5fdaf543asp::v0.11.pre | |
18: 0x7f8371c2aa70 - middle::trans::base::trans_crate::h46b98ca4d03a648aI7p::v0.11.pre | |
19: 0x7f837237b890 - driver::driver::phase_4_translate_to_llvm::h9ea228886c0128ebMAf::v0.11.pre | |
20: 0x7f837237de90 - driver::driver::compile_input::hc3f616849fdb5e293Rf::v0.11.pre | |
21: 0x7f83723a3360 - run_compiler::hcc78fe154df8c362akn::v0.11.pre | |
22: 0x7f83723bf7d0 - main_args::closure.91252 | |
23: 0x7f83723bdcd0 - monitor::closure.91127 | |
24: 0x7f83723b8540 - task::TaskBuilder::try::closure.90893 | |
25: 0x7f83715ec8d0 - task::spawn_opts::closure.7140 | |
26: 0x7f8370f48970 - rt::task::Task::run::closure.40321 | |
27: 0x7f8370f59240 - rust_try | |
28: 0x7f8370f487b0 - rt::task::Task::run::h8d4be746ef52ccf63W7::v0.11.pre | |
29: 0x7f83715ec6a0 - task::spawn_opts::closure.7113 | |
30: 0x7f8370f51a00 - rt::thread::thread_start::h8bb797ab191304afgC8::v0.11.pre | |
31: 0x7f836ec210c0 - start_thread | |
32: 0x7f8370b712d9 - __clone | |
33: 0x0 - <unknown> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment