Skip to content

Adding test for Toolchain::set_env()'s behavior during recursive rustup calls #4983

Description

@Cloud0310

Problem you are trying to solve

The Toolchain::set_env() function is a providing state sync upon cargo plugin calling rustup recursively.

However, when looking at the tests related to this mechanism, I found no direct test that sets RUST_RECURSION_COUNT to 20/21 and asserts either guard’s error. Thus normal nested recursion has integration coverage; the maximum-count termination behavior does not appear to have explicit coverage.

After I discussed with @rami3l, I think this should be tracked here.

Solution you'd like

Adding tests specifically triggering the maxium recursion crash, preventing further problems.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions