-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUST_RECURSION_COUNT: error: infinite recursion detected #447
Comments
cargo make runs commands which are sub processes so they can't update each other or share env vars. feels like a clippy issue. |
Oh, you can unset the variable inside |
And it is not a clippy issue... [env]
RUST_RECURSION_COUNT = 0 |
ya, I'm sure it fixes things, but doesn't explain the root cause. i always use all features, including clippy in both crate and workspace projects, and i rum the ci flow before push and never got that. so the only difference i see it, is different rust/clippy versions. |
We use the current versions for stable and nightly. And in only occurs on fresh projects, without |
The root cause is, that Running |
so it is a clippy issue if it maxes it out. |
Well, it's a Will affect also:
|
ya, so i did unset on global level. i never ran into this, but cant harm anything i guess... |
this is now released in the new cargo-make version 0.32.2 |
Thanks! |
Describe the bug
rustup
keeps track of recursion via theRUST_RECURSION_COUNT
environment variable.
Since
cargo make
uses up one increment, a chain ofcargo clippy
->
cargo check
->
rustc -vV
-> ...
Uses up to
rustup::env_var::RUST_RECURSION_COUNT_MAX
and we get theerror message:
To Reproduce
cargo clippy
enabled onstable
cargo make ci
Fix
Clear or set
RUST_RECURSION_COUNT = 0
The text was updated successfully, but these errors were encountered: