Skip to content

add a way to increase the recursion limit for downstream crates #268

@lcnr

Description

@lcnr

Most crater runs with the new solver rust-lang/rust#133502 used double the recursion limit.

The last one without a doubled recursion limit was rust-lang/rust#133502 (comment). Looking at its report there are a bunch of crates which now hit the recursion limit. I think this is mainly because normalization now adds additional recursion steps, increasing the reached depth.

As a good way to alleviate this issue, we should allow users to increase the recursion limit of their dependencies without having to update their code.

For this, I would like us to add a flag --recursion-limit=<number> to rustc (and maybe to cargo) which overwrites the recursion limit specified in the crate itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions