Skip to content

Fixed length array type with extremely high count causes excessive compile time #15918

Closed
@lilyball

Description

@lilyball

A local variable with a fixed-length array type with an excessively. This is true even if there's no initializer expression.

fn main() {
    let x: [uint, ..18446744073709551615];
}

I haven't profiled to figure out what the compiler is actually doing. I also have no idea how long this actually runs for; I ended up killing rustc after about 30 seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-compiletimeIssue: Problems and improvements with respect to compile times.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions