Skip to content

ICE: no type for node 443: expr FullRange (id=443) in fcx 0x53f4d60 #20970

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

Closed
msiemens opened this issue Jan 11, 2015 · 0 comments · Fixed by #20897
Closed

ICE: no type for node 443: expr FullRange (id=443) in fcx 0x53f4d60 #20970

msiemens opened this issue Jan 11, 2015 · 0 comments · Fixed by #20897
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@msiemens
Copy link
Contributor

Sample code:

fn foo(s: &str) {
    let _ = s.to_ascii_upper()[];
}

fn main() {
}

ICE:

error: internal compiler error: no type for node 443: expr FullRange (id=443) in fcx 0x53f4d60
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 'Box<Any>', F:\Dokumente\Coding\rust\rust-lang\src\libsyntax\diagnostic.rs:182

stack backtrace:
   1: 0x62f43e0f - rt::unwind::register::hdf22bae283a28fceaEz
   2: 0x62ec365c - rt::unwind::begin_unwind_inner::h1073880e8b19f257IBz
   3: 0x658e670d - diagnostic::SpanHandler::span_bug::hdd3a9f1a09dde735xSF
   4: 0x658e6fbc - diagnostic::Handler::bug::h2be837499db22cc2DYF
   5:  0x179607d - session::Session::bug::hbb847ea2013db9bazQq
   6:  0x21fd1b4 - check::FnCtxt<'a, 'tcx>.ty..UnboxedClosureTyper<'tcx>::unboxed_closure_upvars::hf82afbbbe64c6240vXj
   7:  0x220f353 - check::writeback::WritebackCx<'cx, 'tcx>.Visitor<'v>::visit_block::he0eaa1370dc969c6qvb
   8:  0x220d8cf - check::writeback::WritebackCx<'cx, 'tcx>.Visitor<'v>::visit_expr::hf2dec40cdb6cc076bub
   9:  0x220ddc1 - check::writeback::WritebackCx<'cx, 'tcx>.Visitor<'v>::visit_expr::hf2dec40cdb6cc076bub
  10:  0x220dd0f - check::writeback::WritebackCx<'cx, 'tcx>.Visitor<'v>::visit_expr::hf2dec40cdb6cc076bub
  11:  0x220f0dc - check::writeback::WritebackCx<'cx, 'tcx>.Visitor<'v>::visit_block::he0eaa1370dc969c6qvb
  12:  0x227ab4d - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'v>::visit_ty::h03025cde1bfb073c21j
  13:  0x227d91d - check::GatherLocalsVisitor<'a, 'tcx>.Visitor<'v>::visit_item::he571934aa875c02eZdk
  14:  0x2275f35 - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'v>::visit_item::hbe1c1e130041e4c8F1j
  15:  0x227a3bf - check::CheckItemTypesVisitor<'a, 'tcx>.Visitor<'v>::visit_ty::h03025cde1bfb073c21j
  16:  0x552a200
  17:  0x552ce80
  18:  0x551f300
  19:  0x552aa80

On Windows 7, 64 bit, Rust version rustc 1.0.0-dev (71a71ce4f 2015-01-11 09:01:00 +0000)

@Aatch Aatch added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Jan 12, 2015
bors added a commit that referenced this issue Jan 12, 2015
If the type of a node cannot be determined due to a previous type error, a `no type for node` ICE occurs. This commit makes it return `ty_err` instead in such a case.

Fixes #20401.
Fixes #20506.
Fixes #20614.
Fixes #20752.
Fixes #20829.
Fixes #20846.
Fixes #20885.
Fixes #20886.
Fixes #20952.
Fixes #20970.
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