-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot use non-literal expressions for name
attribute
#5407
Closed
2 tasks done
Labels
C-bug
Category: Updating dependencies
Comments
mergify bot
pushed a commit
to enso-org/enso
that referenced
this issue
Mar 24, 2024
This PR updates the Rust toolchain to recent nightly. Most of the changes are related to fixing newly added warnings and adjusting the feature flags. Also the formatter changed its behavior slightly, causing some whitespace changes. Other points: * Changed debug level of the `buildscript` profile to `lint-tables-only` — this should improve the build times and space usage somewhat. * Moved lint configuration to the worksppace `Cargo.toml` definition. Adjusted the formatter appropriately. * Removed auto-generated IntelliJ run configurations, as they are not useful anymore. * Added a few trivial stdlib nightly functions that were removed to our codebase. * Bumped many dependencies but still not all: * `clap` bump encountered clap-rs/clap#5407 — for now the warnings were silenced by the lint config. * `octocrab` — our forked diverged to far with the original, needs more refactoring. * `derivative` — is unmaintained and has no updated version, despite introducing warnings in the generated code. There is no direct replacement.
This was broken in #4947. Looking to see if we can better detect when to use one or the other. |
epage
added a commit
to epage/clap
that referenced
this issue
Mar 25, 2024
mergify bot
pushed a commit
to enso-org/enso
that referenced
this issue
Apr 3, 2024
Now that the clap has fixed [issue](clap-rs/clap#5407) that blocked us, we can bump it across all our crates. Fixes #5168.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please complete the following tasks
Rust Version
rustc 1.76.0 (07dca489a 2024-02-04)
Clap Version
4.5.3
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo build
Actual Behaviour
Build error:
Expected Behaviour
This code worked in clap
3.2.25
and was not documented as a change, so I think it still should work.Also, the documentation says that the
name
attribute argument is an expression, so I would expect it to work. Especially since there is no restriction on the Command::name API. I don't think there are similar restrictions on other attributes.Additional Context
This blocks me from migrating to clap v4. I relied on this pattern to reuse the same structure definition, while avoiding the name collisions.
Debug Output
No response
The text was updated successfully, but these errors were encountered: