Skip to content

hitting type_length_limit with relatively few operations #671

@winstonewert

Description

@winstonewert

I'm running into the type_length_limit when using rayon.

As a simplified instance:

    Vec::<Result<(),()>>::new()
        .into_par_iter()
        .map(|x| x)
        .map(|x| x)
        .map(|x| x)
        .map(|x| x)
        .map(|x| x)
        .map(|x| x)
        .collect::<Result<(), ()>>();

It looks like there is some sort of exponential growth in type names for each additional operation.

Initially I just increased the type length limit, but this seems to result in very slow compiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions