Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICE: ident only path for external function declaration #23044

Closed
mark3982 opened this issue Mar 4, 2015 · 0 comments · Fixed by #23930
Closed

ICE: ident only path for external function declaration #23044

mark3982 opened this issue Mar 4, 2015 · 0 comments · Fixed by #23930
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@mark3982
Copy link

mark3982 commented Mar 4, 2015

rustc 1.0.0-dev (f0f7ca27d 2015-02-23) (built 2015-02-23)
building application
   Compiling android_glue v0.0.1 (file:///mnt/host/kmcg3413.net/FireRoute/android-clui)
/mnt/host/kmcg3413.net/FireRoute/apk-builder/glue/src/lowglue/mod.rs:39:25: 39:28 error: internal compiler error: ident only path should have been covered already
/mnt/host/kmcg3413.net/FireRoute/apk-builder/glue/src/lowglue/mod.rs:39     pub fn android_main(Arc<ActivityState>);
                                                                                                ^~~
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>', /mnt/host/kmcg3413.net/rust/src/libsyntax/diagnostic.rs:129

stack backtrace:
   1:     0x7fd0ca974090 - sys::backtrace::write::h4e9a31aa2e8023179rC
   2:     0x7fd0ca99cca0 - panicking::on_panic::hc7167c0722a05a78b9L
   3:     0x7fd0ca8dc860 - rt::unwind::begin_unwind_inner::h8d46481699e3751fwNL
   4:     0x7fd0c7bd5430 - rt::unwind::begin_unwind::h14067791790174494748
   5:     0x7fd0c7bd53c0 - diagnostic::SpanHandler::span_bug::h85d108ba45cb62f281E
   6:     0x7fd0c7bf7e70 - parse::parser::Parser<'a>::parse_pat::h6d0073e3d8694344ZPL
   7:     0x7fd0c7bf08b0 - parse::parser::Parser<'a>::parse_arg_general::h8114594c0bc8a45ei9J
   8:     0x7fd0c7c1bde0 - parse::parser::Parser<'a>::parse_seq_to_before_end::h1598884596488876550
   9:     0x7fd0c7bef6c0 - parse::parser::Parser<'a>::parse_fn_args::h47c7163922b1aa1b1EM
  10:     0x7fd0c7c1c470 - parse::parser::Parser<'a>::parse_fn_decl::h2b34c90f31c289d7wHM
  11:     0x7fd0c7c2d020 - parse::parser::Parser<'a>::parse_foreign_item::hb5b9d02987c373a3rdO
  12:     0x7fd0c7c29880 - parse::parser::Parser<'a>::parse_foreign_mod_items::h608317c1fc7b75890JN
  13:     0x7fd0c7c11540 - parse::parser::Parser<'a>::parse_item_::h5342af3cfac016bc3YN
  14:     0x7fd0c7c22ab0 - parse::parser::Parser<'a>::parse_mod_items::hcf50c5d5eff08ba3ioN
  15:     0x7fd0c7c23e40 - parse::parser::Parser<'a>::eval_src_mod::hefec9279931acc91iwN
  16:     0x7fd0c7c11540 - parse::parser::Parser<'a>::parse_item_::h5342af3cfac016bc3YN
  17:     0x7fd0c7c22ab0 - parse::parser::Parser<'a>::parse_mod_items::hcf50c5d5eff08ba3ioN
  18:     0x7fd0c7c2dfe0 - parse::parser::Parser<'a>::parse_crate_mod::h3a386f4cf831334c9pO
  19:     0x7fd0c7c40d30 - parse::parse_crate_from_file::he93fe4d172bcd8ccjSV
  20:     0x7fd0caffe510 - driver::phase_1_parse_input::closure.15704
  21:     0x7fd0cafd8840 - driver::phase_1_parse_input::h4fb166827a2f9cbcYra
  22:     0x7fd0cafd5240 - driver::compile_input::h0bec8d7ff7428d7dGba
  23:     0x7fd0cb0a4330 - run_compiler::h71833f9bcc896daaWbc
  24:     0x7fd0cb0a2c30 - thunk::F.Invoke<A, R>::invoke::h14347372239080705007
  25:     0x7fd0cb0a1b20 - rt::unwind::try::try_fn::h10841254516551992180
  26:     0x7fd0caa0a280 - rust_try_inner
  27:     0x7fd0caa0a270 - rust_try
  28:     0x7fd0cb0a1e20 - thunk::F.Invoke<A, R>::invoke::h15709534366616734131
  29:     0x7fd0ca988a70 - sys::thread::thread_start::h15e840368764388fGdH
  30:     0x7fd0c49cda80 - start_thread
  31:                0x0 - <unknown>

Could not compile `android_glue`.

To learn more, run the command again with --verbose.
installing application
@jdm jdm added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Mar 4, 2015
bors added a commit that referenced this issue Apr 3, 2015
Fixes #22757
Fixes #22972
Fixes #23044
Fixes #23151
Fixes #23597
Fixes #23656
Fixes #23929
It also fixes some other corner cases in range patterns, like incorrect spans or not accepting global paths after `...`.

It passes `make check` but needs some additional tests (then it will fix #22546 as well), I'll write them today or tomorrow.
Manishearth added a commit to Manishearth/rust that referenced this issue Apr 3, 2015
Fixes rust-lang#22757
Fixes rust-lang#22972
Fixes rust-lang#23044
Fixes rust-lang#23151
Fixes rust-lang#23597
Fixes rust-lang#23656
Fixes rust-lang#23929
It also fixes some other corner cases in range patterns, like incorrect spans or not accepting global paths after `...`.

It passes `make check` but needs some additional tests (then it will fix rust-lang#22546 as well), I'll write them today or tomorrow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants