Skip to content

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

Closed
@msiemens

Description

@msiemens

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions