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

OSX cargo install - error type annotations needed for Box<_> #96

Closed
3 tasks done
shuther opened this issue Aug 6, 2024 · 1 comment · Fixed by #97
Closed
3 tasks done

OSX cargo install - error type annotations needed for Box<_> #96

shuther opened this issue Aug 6, 2024 · 1 comment · Fixed by #97
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@shuther
Copy link

shuther commented Aug 6, 2024

Description

cargo install --locked git-credential-keepassxc generates an error; maybe a lib should be changed?

Environment

  • OS: macOS
  • keepassxc --version output: 2.7.9
  • git-credential-keepassxc --version output:

Checklist

  • I've read the README
  • I've read the Wiki
  • This is an issue regarding the project itself (instead of linking, packaging, anti-virus, etc.)

Configuration

Logs

Updating crates.io index
Downloaded git-credential-keepassxc v0.14.0
Downloaded 1 crate (69.1 KB) in 0.19s
Installing git-credential-keepassxc v0.14.0
Updating crates.io index
Updating crates.io index
Downloaded aead v0.5.2
Downloaded atty v0.2.14
Downloaded equivalent v1.0.1
Downloaded num_threads v0.1.6
Downloaded time-core v0.1.2
Downloaded strum v0.25.0
Downloaded cfg-if v1.0.0
Downloaded autocfg v1.1.0
Downloaded cipher v0.4.4
Downloaded cpufeatures v0.2.10
Downloaded bitflags v1.3.2
Downloaded generic-array v0.14.7
Downloaded dirs-sys-next v0.1.2
Downloaded ghash v0.5.0
Downloaded clap_lex v0.2.4
Downloaded directories-next v2.0.0
Downloaded memoffset v0.9.0
Downloaded num_enum_derive v0.7.0
Downloaded powerfmt v0.2.0
Downloaded scopeguard v1.2.0
Downloaded crypto_secretbox v0.1.1
Downloaded strsim v0.10.0
Downloaded time-macros v0.2.15
Downloaded toml_datetime v0.6.5
Downloaded strum_macros v0.25.3
Downloaded home v0.5.5
Downloaded unicode-width v0.1.11
Downloaded rand_core v0.6.4
Downloaded proc-macro-crate v1.3.1
Downloaded crossbeam-deque v0.8.3
Downloaded ctr v0.9.2
Downloaded core-foundation-sys v0.8.4
Downloaded either v1.9.0
Downloaded dirs-next v2.0.0
Downloaded errno v0.3.5
Downloaded deranged v0.3.9
Downloaded itoa v1.0.9
Downloaded heck v0.4.1
Downloaded crypto_box v0.9.1
Downloaded rustc_version v0.4.0
Downloaded ppv-lite86 v0.2.17
Downloaded rand_chacha v0.3.1
Downloaded num_enum v0.7.0
Downloaded proc-macro-error-attr v1.0.4
Downloaded universal-hash v0.5.1
Downloaded subtle v2.4.1
Downloaded polyval v0.6.1
Downloaded rustversion v1.0.14
Downloaded salsa20 v0.10.2
Downloaded aes-gcm v0.10.3
Downloaded thread_local v1.1.7
Downloaded opaque-debug v0.3.0
Downloaded which v5.0.0
Downloaded zeroize v1.6.0
Downloaded bitflags v2.4.1
Downloaded platforms v3.1.2
Downloaded poly1305 v0.8.0
Downloaded once_cell v1.18.0
Downloaded version_check v0.9.4
Downloaded proc-macro-error v1.0.4
Downloaded getrandom v0.2.10
Downloaded clap_derive v3.2.25
Downloaded inout v0.1.3
Downloaded tabwriter v1.3.0
Downloaded quote v1.0.33
Downloaded slog-term v2.9.0
Downloaded termcolor v1.3.0
Downloaded proc-macro2 v1.0.69
Downloaded crypto-common v0.1.6
Downloaded semver v1.0.20
Downloaded crossbeam-utils v0.8.16
Downloaded os_str_bytes v6.6.1
Downloaded crossbeam-epoch v0.9.15
Downloaded slog v2.7.0
Downloaded ryu v1.0.15
Downloaded textwrap v0.16.0
Downloaded typenum v1.17.0
Downloaded indexmap v1.9.3
Downloaded unicode-ident v1.0.12
Downloaded anyhow v1.0.75
Downloaded indexmap v2.0.2
Downloaded serde_derive v1.0.189
Downloaded term v0.7.0
Downloaded winnow v0.5.17
Downloaded base64 v0.21.5
Downloaded rayon-core v1.12.0
Downloaded serde v1.0.189
Downloaded memchr v2.6.4
Downloaded rand v0.8.5
Downloaded hashbrown v0.12.3
Downloaded toml_edit v0.19.15
Downloaded time v0.3.30
Downloaded hashbrown v0.14.2
Downloaded sysinfo v0.29.10
Downloaded rayon v1.8.0
Downloaded serde_json v1.0.107
Downloaded clap v3.2.25
Downloaded syn v1.0.109
Downloaded syn v2.0.38
Downloaded curve25519-dalek v4.1.1
Downloaded rustix v0.38.20
Downloaded libc v0.2.149
Downloaded 102 crates (5.5 MB) in 4.02s
Compiling libc v0.2.149
Compiling cfg-if v1.0.0
Compiling version_check v0.9.4
Compiling typenum v1.17.0
Compiling proc-macro2 v1.0.69
Compiling zeroize v1.6.0
Compiling unicode-ident v1.0.12
Compiling autocfg v1.1.0
Compiling subtle v2.4.1
Compiling crossbeam-utils v0.8.16
Compiling semver v1.0.20
Compiling opaque-debug v0.3.0
Compiling generic-array v0.14.7
Compiling memoffset v0.9.0
Compiling crossbeam-epoch v0.9.15
Compiling proc-macro-error-attr v1.0.4
Compiling hashbrown v0.14.2
Compiling quote v1.0.33
Compiling getrandom v0.2.10
Compiling syn v2.0.38
Compiling rand_core v0.6.4
Compiling equivalent v1.0.1
Compiling syn v1.0.109
Compiling scopeguard v1.2.0
Compiling indexmap v2.0.2
Compiling dirs-sys-next v0.1.2
Compiling proc-macro-error v1.0.4
Compiling rustversion v1.0.14
Compiling toml_datetime v0.6.5
Compiling winnow v0.5.17
Compiling heck v0.4.1
Compiling rustc_version v0.4.0
Compiling rayon-core v1.12.0
Compiling platforms v3.1.2
Compiling curve25519-dalek v4.1.1
Compiling crossbeam-deque v0.8.3
Compiling cpufeatures v0.2.10
Compiling indexmap v1.9.3
Compiling crypto-common v0.1.6
Compiling universal-hash v0.5.1
Compiling inout v0.1.3
Compiling aead v0.5.2
Compiling cipher v0.4.4
Compiling once_cell v1.18.0
Compiling powerfmt v0.2.0
Compiling itoa v1.0.9
Compiling serde v1.0.189
Compiling rustix v0.38.20
Compiling slog v2.7.0
Compiling time-core v0.1.2
Compiling either v1.9.0
Compiling serde_derive v1.0.189
Compiling time-macros v0.2.15
Compiling deranged v0.3.9
Compiling toml_edit v0.19.15
Compiling salsa20 v0.10.2
Compiling poly1305 v0.8.0
Compiling polyval v0.6.1
Compiling dirs-next v2.0.0
Compiling num_threads v0.1.6
Compiling atty v0.2.14
Compiling errno v0.3.5
Compiling anyhow v1.0.75
Compiling bitflags v2.4.1
Compiling hashbrown v0.12.3
Compiling serde_json v1.0.107
Compiling os_str_bytes v6.6.1
Compiling ppv-lite86 v0.2.17
Compiling rand_chacha v0.3.1
Compiling clap_lex v0.2.4
Compiling proc-macro-crate v1.3.1
Compiling time v0.3.30
Compiling rayon v1.8.0
error[E0282]: type annotations needed for Box<_>
--> /.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.30/src/format_description/parse/mod.rs:83:9
|
83 | let items = format_items
| ^^^^^
...
86 | Ok(items.into())
| ---- type must be known at this point
|
help: consider giving items an explicit type, where the placeholders _ are specified
|
83 | let items: Box<_> = format_items
| ++++++++

Compiling num_enum_derive v0.7.0
For more information about this error, try rustc --explain E0282.
error: could not compile time (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile git-credential-keepassxc v0.14.0

@Frederick888 Frederick888 added bug Something isn't working good first issue Good for newcomers labels Aug 7, 2024
@Frederick888
Copy link
Owner

Can confirm. Thanks for the report! Looks like rust-lang/rust#125319.

Time to do a service release I guess. I should have some time this week. In the meanwhile you can rustup an older toolchain (or test your luck by cargo install without --locked?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants