clap::parser::Values enters unreachable code if used inside zip and reversed #4870
Closed
2 tasks done
Labels
C-bug
Category: Updating dependencies
Please complete the following tasks
Rust Version
1.69.0
Clap Version
4.2.5
Minimal reproducible code
Steps to reproduce the bug with the above code
Actual Behaviour
thread 'main' panicked at 'internal error: entered unreachable code', /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/iter/adapters/zip.rs:206:5
Expected Behaviour
The application should not panic.
If you decomment the
.zip(matches.remove_many("Xopt"))
lines and decomment the.zip(matches.remove_many("Xopt").map(|m| m.collect::<Vec<_>>()))
lines, the application works correctly, but there should no be difference between the twoAdditional Context
I was trying to implement the solution suggested in #3399
Debug Output
The text was updated successfully, but these errors were encountered: