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 when calling Iterator::fold, error: cat_expr Errd #23966

Closed
bombless opened this issue Apr 2, 2015 · 0 comments · Fixed by #24367
Closed

ICE when calling Iterator::fold, error: cat_expr Errd #23966

bombless opened this issue Apr 2, 2015 · 0 comments · Fixed by #24367
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@bombless
Copy link
Contributor

bombless commented Apr 2, 2015

fn main() {"".chars().fold(|_, _| (), ());}
icea.rs:1:12: 1:42 error: internal compiler error: cat_expr Errd
icea.rs:1 fn main() {"".chars().fold(|_, _| (), ());}
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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>', C:/msys64/home/bombless/freshrustc/src/libsyntax\diagnostic.rs:130

stack backtrace:
   1:         0x7121cab3 - sys::backtrace::write::h65e8c3e2848bc8b9cQD
   2:         0x71231e3a - rt::unwind::register::h75c149df7638e28eonJ
   3:         0x71183210 - rt::unwind::begin_unwind_inner::h56069089577e9797ykJ
   4:           0x7c5fb9 - diagnostic::SpanHandler::span_bug::hd3a58a67988f3bb75cB
   5:           0x7c5f83 - diagnostic::SpanHandler::span_bug::hd3a58a67988f3bb75cB
   6:           0xdf24c2 - session::Session::span_bug::h5e300cd633c01cdfn2n
   7:          0x1778980 - check::regionck::Rcx<'a, 'tcx>.Visitor<'v>::visit_item::h864371e0b5e2bfcdhCd
   8:          0x1773a14 - check::regionck::Rcx<'a, 'tcx>.Visitor<'v>::visit_expr::h95e4b6b54e048f17wCd
   9:          0x18042f3 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_ty::h0e2bd0c28fcfea0bkin
  10:          0x17fc221 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'tcx>::visit_item::h40648275ef199a02Yhn
  11:          0x18d8d78 - check_crate::hbeb5b259fa92a914tlC
  12:          0x18d2fec - check_crate::hbeb5b259fa92a914tlC
  13:         0x652df75b - driver::phase_3_run_analysis_passes::hbf2e5a40425b2605oGa
  14:         0x652c2a45 - driver::compile_input::h7257ac3eadeade5aQba
  15:         0x65376d13 - run_compiler::h7927ca3bbb67862dp2b
  16:         0x65374be0 - run::hd85a769d156fbe5b51b
  17:         0x65373dea - run::hd85a769d156fbe5b51b
  18:         0x71269dec - rust_try
  19:         0x71269dc9 - rust_try
  20:         0x65374158 - run::hd85a769d156fbe5b51b
  21:         0x71225b04 - sys::tcp::TcpListener::bind::hb9cf5a229a477da7SLH
  22:     0x7ffda0f816ad - BaseThreadInitThunk
rustc 1.0.0-dev (14192d6df 2015-03-30) (built 2015-04-01)
binary: rustc
commit-hash: 14192d6df5cc714e5c9a3ca70b08f2514d977be2
commit-date: 2015-03-30
build-date: 2015-04-01
host: x86_64-pc-windows-gnu
release: 1.0.0-dev
@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Apr 3, 2015
ebfull added a commit to ebfull/rust that referenced this issue Apr 13, 2015
An actual typeck error is the cause of many failed compilations but an
unrelated bug is being reported instead. It is triggered because a typeck
error is presumably not yet identified during compiler execution, which
would normally bypass an invariant in the presence of other errors. In
this particular situation, we delay the reporting of the bug until
abort_if_errors().

Closes rust-lang#23827, closes rust-lang#24356, closes rust-lang#23041, closes rust-lang#22897, closes rust-lang#23966,
closes rust-lang#24013, and closes rust-lang#23729
bors added a commit that referenced this issue Apr 26, 2015
An actual typeck error is the cause of many failed compilations but an
unrelated bug is being reported instead. It is triggered because a typeck
error is presumably not yet identified during compiler execution, which
would normally bypass an invariant in the presence of other errors. In
this particular situation, we delay the reporting of the bug until
abort_if_errors().

Closes #23827, closes #24356, closes #23041, closes #22897, closes #23966,
closes #24013, and closes #23729

**There is at least one situation where this bug may still be genuinely
triggered (#23437).**
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