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

cargo install failure.. error[E0282]: type annotations needed for Box<_> --> /Users/admin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.20/src/format_description/parse/mod.rs:83:9 #11

Closed
johnda98 opened this issue Aug 13, 2024 · 3 comments

Comments

@johnda98
Copy link

admin@Admins-MacBook-Pro-2 ~ % rustc --version
rustc 1.80.1 (3f5fd8dd4 2024-08-06) (Homebrew)
admin@Admins-MacBook-Pro-2 ~ %

Compiling serde_urlencoded v0.7.1
error[E0282]: type annotations needed for Box<_>
--> /Users/admin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.20/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 blake2b_simd v1.0.1
Compiling blake2s_simd v1.0.1
Compiling hyper v0.14.25
Compiling core2 v0.4.0
Compiling instant v0.1.12
Compiling encoding_rs v0.8.32
Compiling base64 v0.13.1
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 minting-tool v0.1.0 (https://github.com/dfinity/experimental-minting-tool#88dc52a6), intermediate artifacts can be found at /var/folders/47/5tsmnq915q9_49m_cd2436500000gn/T/cargo-install3TZcny.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Screenshot 2024-08-13 at 3 10 43 PM
@johnda98 johnda98 changed the title cargo install failure.. cargo install failure.. error[E0282]: type annotations needed for Box<_> --> /Users/admin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.20/src/format_description/parse/mod.rs:83:9 Aug 13, 2024
@johnda98
Copy link
Author

related zed-industries/zed#12264

@johnda98
Copy link
Author

resolved..

first clone local .. to build

remove Cargo.lock

update tokio dependency in Cargo.toml... tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] } ie add rt-multi-thread

get rid of authors unused import - warning. in types.rs

warning: unused import: MetadataVal::*
--> src/types.rs:31:9
|
31 | pub use MetadataVal::*;
| ^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

Screenshot 2024-08-14 at 9 55 58 AM Screenshot 2024-08-14 at 9 34 27 AM

now it builds !

admin@Admins-MacBook-Pro-2 experimental-minting-tool % cargo build
Compiling minting-tool v0.1.0 (/Users/admin/experimental-minting-tool)
Finished dev profile [unoptimized + debuginfo] target(s) in 2.01s
admin@Admins-MacBook-Pro-2 experimental-minting-tool %

Screenshot 2024-08-14 at 10 05 16 AM

bingo !

@johnda98
Copy link
Author

what a palarva to get installed..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant