Skip to content
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

Deprecated arg_enum depends on removed _clap_count_exprs #3717

Closed
2 tasks done
bgilbert opened this issue May 10, 2022 · 0 comments · Fixed by #3718
Closed
2 tasks done

Deprecated arg_enum depends on removed _clap_count_exprs #3717

bgilbert opened this issue May 10, 2022 · 0 comments · Fixed by #3718
Labels
C-bug Category: Updating dependencies

Comments

@bgilbert
Copy link
Contributor

Please complete the following tasks

Rust Version

rustc 1.60.0 (Fedora 1.60.0-1.fc35)

Clap Version

3.1.17

Minimal reproducible code

use clap::arg_enum;

arg_enum! {
    pub enum Column {
        A,
        B,
        C,
    }
}

fn main() {}

Steps to reproduce the bug with the above code

cargo build

Actual Behaviour

error[E0433]: failed to resolve: could not find `_clap_count_exprs` in `$crate`
 --> src/main.rs:3:1  |
3 | / arg_enum! {
4 | |     pub enum Column {
5 | |         A,
6 | |         B,
7 | |         C,
8 | |     }
9 | | }
  | |_^ could not find `_clap_count_exprs` in `$crate`
  |
  = note: this error originates in the macro `$crate::arg_enum` (in Nightly builds, run with -Z macro-backtrace for more info)

Expected Behaviour

Code compiles.

Additional Context

c825491 re-added arg_enum, which uses _clap_count_exprs, but in the meantime _clap_count_exprs had been removed by #1970.

Debug Output

Same as above.

@bgilbert bgilbert added the C-bug Category: Updating dependencies label May 10, 2022
epage added a commit to epage/clap that referenced this issue May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Updating dependencies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant