Skip to content

Deprecated arg_enum depends on removed _clap_count_exprs #3717

Closed
@bgilbert

Description

@bgilbert

Please complete the following tasks

  • I have searched the discussions
    I have searched the open and rejected issues

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.

Activity

added a commit that references this issue on May 10, 2022
52f6939
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @bgilbert

      Issue actions

        Deprecated `arg_enum` depends on removed `_clap_count_exprs` · Issue #3717 · clap-rs/clap