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

error[E0658]: arbitrary expressions in key-value attributes are unstable #2741

Closed
2 tasks done
happysalada opened this issue Aug 28, 2021 · 2 comments
Closed
2 tasks done
Labels
C-bug Category: Updating dependencies

Comments

@happysalada
Copy link

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Rust Version

1.54

Clap Version

3.0.0-beta-4

Minimal reproducible code

There is a compilation error on darwin and linux
the pueue crate which has a dependency on clap, will fail compiling from source with the following error

pueue> error[E0658]: arbitrary expressions in key-value attributes are unstable
pueue> --> /private/tmp/nix-build-pueue-1.0.1.drv-0/pueue-1.0.1-vendor.tar.gz/clap/src/lib.rs:8:10
pueue> |
pueue> 8 | #![doc = include_str!("../README.md")]
pueue> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pueue> |
pueue> = note: see issue #78835 rust-lang/rust#78835 for more information
pueue> error: aborting due to previous error
pueue> For more information about this error, try rustc --explain E0658.
pueue> error: could not compile clap
pueue> To learn more, run the command again with --verbose.
pueue> warning: build failed, waiting for other jobs to finish...
pueue> error: build failed

Steps to reproduce the bug with the above code

Here is the link to the crate https://github.com/Nukesor/pueue
running cargo build from the src will trigger the error

Actual Behaviour

compilation error

Expected Behaviour

no compilation error

Additional Context

This is for packaging for the NixOS distribution.

Debug Output

No response

@happysalada happysalada added the C-bug Category: Updating dependencies label Aug 28, 2021
@epage
Copy link
Member

epage commented Aug 28, 2021

Thats strange. In beta4, we bumped MSRV to 1.54 which stablized this feature but your report mentions using 1.54.

@happysalada
Copy link
Author

My bad, I was actually on version 1.53, sorry for the bother!

gburgessiv added a commit to gburgessiv/prjoxide that referenced this issue Sep 24, 2022
Clap was fixed to `<=3.0.0-beta.2` in gatecat#14. Upon further investigation,
`beta.4` was functioning as intended; it simply bumped clap's MSRV to
1.54 (see clap-rs/clap#2741).

Clap 3.1 supports Rust as early as 1.54. Upgrade to that (with a few
fixes for a rename that happened in `3.0.0-beta.5`).
gburgessiv added a commit to gburgessiv/prjoxide that referenced this issue Sep 24, 2022
Clap was fixed to `<=3.0.0-beta.2` in gatecat#12. Upon further investigation,
`beta.4` was functioning as intended; it simply bumped clap's MSRV to
1.54 (see clap-rs/clap#2741).

Clap 3.1 supports Rust as early as 1.54. Upgrade to that (with a few
fixes for a rename that happened in `3.0.0-beta.5`).
gburgessiv added a commit to gburgessiv/prjoxide that referenced this issue Sep 24, 2022
Clap was fixed to `<=3.0.0-beta.2` in gatecat#12. Upon further investigation,
`beta.4` was functioning as intended; it simply bumped clap's MSRV to
1.54 (see clap-rs/clap#2741).

Clap 3.1 supports Rust as early as 1.54. Upgrade to that (with a few
fixes for a rename that happened in `3.0.0-beta.5`), since it's been out
for well over a year now.
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

No branches or pull requests

2 participants