Skip to content

Compiler error: can't dereference const of type [int, .. 5] (fails in ast_util.rs:776) #16815

Closed
@mitchmindtree

Description

@mitchmindtree

I came across this just now when updating a large personal project to the latest nightly - The project seems to begin compiling successfully (it starts showing warnings) and then this occurs towards the end of the build:

error: internal compiler error: can't dereference const of type [int, .. 5]                        
note: the compiler hit an unexpected failure path. 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                                                  
task 'rustc' failed at 'Box<Any>', /Users/Mitch/Programming/Rust/rust/src/libsyntax/ast_util.rs:776

(I just checked master as well and it gives the same error)

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