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-oudated installation fails: error[E0283]: type annotations needed #252

Closed
Darleev opened this issue Jan 25, 2021 · 2 comments
Closed

Comments

@Darleev
Copy link

Darleev commented Jan 25, 2021

Hello,

There is an issue during the cargo-outdated installation using these two ways. The following issue appears during the installation:

2021-01-25T12:29:09.3660856Z error[E0283]: type annotations needed
2021-01-25T12:29:09.3662485Z    --> /home/vsts/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.50.0/src/cargo/util/config/de.rs:530:63
2021-01-25T12:29:09.3663348Z     |
2021-01-25T12:29:09.3663785Z 530 |                 seed.deserialize(Tuple2Deserializer(1i32, env.as_ref()))
2021-01-25T12:29:09.3664576Z     |                                                           ----^^^^^^--
2021-01-25T12:29:09.3665129Z     |                                                           |   |
2021-01-25T12:29:09.3665719Z     |                                                           |   cannot infer type for type parameter `T` declared on the trait `AsRef`
2021-01-25T12:29:09.3666558Z     |                                                           this method call resolves to `&T`
2021-01-25T12:29:09.3667021Z     |
2021-01-25T12:29:09.3667552Z     = note: cannot satisfy `std::string::String: AsRef<_>`
2021-01-25T12:29:09.3668130Z 
2021-01-25T12:29:10.2540507Z error: aborting due to previous error
2021-01-25T12:29:10.2540830Z 
2021-01-25T12:29:10.2541849Z For more information about this error, try `rustc --explain E0283`.
2021-01-25T12:29:10.2866992Z error: failed to compile `cargo-outdated v0.9.14`, intermediate artifacts can be found at `/tmp/cargo-install3s0tel`
2021-01-25T12:29:10.2867539Z 
2021-01-25T12:29:10.2867706Z Caused by:
2021-01-25T12:29:10.2867935Z   could not compile `cargo`
2021-01-25T12:29:10.2868092Z 
2021-01-25T12:29:10.2868242Z Caused by:
2021-01-25T12:29:10.3034632Z   process didn't exit successfully: `rustc --crate-name cargo --edition=2018 /home/vsts/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.50.0/src/cargo/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C metadata=270d47ebe06749c5 -C extra-filename=-270d47ebe06749c5 --out-dir /tmp/cargo-install3s0tel/release/deps -L dependency=/tmp/cargo-install3s0tel/release/deps --extern anyhow=/tmp/cargo-install3s0tel/release/deps/libanyhow-5c280190a2f8901a.rmeta --extern atty=/tmp/cargo-install3s0tel/release/deps/libatty-ba32aef2724ea9dd.rmeta --extern bytesize=/tmp/cargo-install3s0tel/release/deps/libbytesize-d85866a993a7236e.rmeta --extern cargo_platform=/tmp/cargo-install3s0tel/release/deps/libcargo_platform-072f7ef99d83365b.rmeta --extern clap=/tmp/cargo-install3s0tel/release/deps/libclap-735faae04a7bbaca.rmeta --extern crates_io=/tmp/cargo-install3s0tel/release/deps/libcrates_io-4fdf3b94cb9f768e.rmeta --extern crossbeam_utils=/tmp/cargo-install3s0tel/release/deps/libcrossbeam_utils-4b28f5c7e3feba94.rmeta --extern crypto_hash=/tmp/cargo-install3s0tel/release/deps/libcrypto_hash-0d2a368a916f4f52.rmeta --extern curl=/tmp/cargo-install3s0tel/release/deps/libcurl-acc299eca5eb5e3e.rmeta --extern curl_sys=/tmp/cargo-install3s0tel/release/deps/libcurl_sys-19891feecd52d376.rmeta --extern env_logger=/tmp/cargo-install3s0tel/release/deps/libenv_logger-4c0f03b99d3a177c.rmeta --extern filetime=/tmp/cargo-install3s0tel/release/deps/libfiletime-fd16256630be9042.rmeta --extern flate2=/tmp/cargo-install3s0tel/release/deps/libflate2-37012884735a2965.rmeta --extern git2=/tmp/cargo-install3s0tel/release/deps/libgit2-66882e40cd7a54c5.rmeta --extern git2_curl=/tmp/cargo-install3s0tel/release/deps/libgit2_curl-89b14f26bf8d8551.rmeta --extern glob=/tmp/cargo-install3s0tel/release/deps/libglob-7ed38de39fa7fbbc.rmeta --extern hex=/tmp/cargo-install3s0tel/release/deps/libhex-c8178b3285e3a8e5.rmeta --extern home=/tmp/cargo-install3s0tel/release/deps/libhome-2b69613113f0f4b0.rmeta --extern humantime=/tmp/cargo-install3s0tel/release/deps/libhumantime-7fa07c3eb7e16606.rmeta --extern ignore=/tmp/cargo-install3s0tel/release/deps/libignore-aeed6f328665a4cf.rmeta --extern im_rc=/tmp/cargo-install3s0tel/release/deps/libim_rc-10cc080552bdab6e.rmeta --extern jobserver=/tmp/cargo-install3s0tel/release/deps/libjobserver-7a50169cdb8dc981.rmeta --extern lazy_static=/tmp/cargo-install3s0tel/release/deps/liblazy_static-48de660e3bcc26be.rmeta --extern lazycell=/tmp/cargo-install3s0tel/release/deps/liblazycell-70c935efec874551.rmeta --extern libc=/tmp/cargo-install3s0tel/release/deps/liblibc-96558c0b1186b7e9.rmeta --extern libgit2_sys=/tmp/cargo-install3s0tel/release/deps/liblibgit2_sys-604edae1efe57efb.rmeta --extern log=/tmp/cargo-install3s0tel/release/deps/liblog-2a6c4fcc09293842.rmeta --extern memchr=/tmp/cargo-install3s0tel/release/deps/libmemchr-28806996c300a7d7.rmeta --extern num_cpus=/tmp/cargo-install3s0tel/release/deps/libnum_cpus-3437e86ceb0ad185.rmeta --extern opener=/tmp/cargo-install3s0tel/release/deps/libopener-38ec61bbc3c973e8.rmeta --extern percent_encoding=/tmp/cargo-install3s0tel/release/deps/libpercent_encoding-639ad3a052466fa5.rmeta --extern rustc_workspace_hack=/tmp/cargo-install3s0tel/release/deps/librustc_workspace_hack-265f4084201cdf54.rmeta --extern rustfix=/tmp/cargo-install3s0tel/release/deps/librustfix-e4a4a948e12f2fd5.rmeta --extern same_file=/tmp/cargo-install3s0tel/release/deps/libsame_file-3b1239ca8e22c1f5.rmeta --extern semver=/tmp/cargo-install3s0tel/release/deps/libsemver-485e69e6e81ca3f6.rmeta --extern serde=/tmp/cargo-install3s0tel/release/deps/libserde-4449cbd335012ae3.rmeta --extern serde_ignored=/tmp/cargo-install3s0tel/release/deps/libserde_ignored-93a7213a76f51295.rmeta --extern serde_json=/tmp/cargo-install3s0tel/release/deps/libserde_json-0245a8dee5e91fda.rmeta --extern shell_escape=/tmp/cargo-install3s0tel/release/deps/libshell_escape-d636c0ad78d777b6.rmeta --extern strip_ansi_escapes=/tmp/cargo-install3s0tel/release/deps/libstrip_ansi_escapes-71e225cbe02c3592.rmeta --extern tar=/tmp/cargo-install3s0tel/release/deps/libtar-df8ef2b0f247ad5f.rmeta --extern tempfile=/tmp/cargo-install3s0tel/release/deps/libtempfile-333a9f90062d37fd.rmeta --extern termcolor=/tmp/cargo-install3s0tel/release/deps/libtermcolor-f13f851e4312325c.rmeta --extern toml=/tmp/cargo-install3s0tel/release/deps/libtoml-86b43022705cb80b.rmeta --extern unicode_width=/tmp/cargo-install3s0tel/release/deps/libunicode_width-177b176287c0d6e8.rmeta --extern unicode_xid=/tmp/cargo-install3s0tel/release/deps/libunicode_xid-9b4937596b97921b.rmeta --extern url=/tmp/cargo-install3s0tel/release/deps/liburl-a71be491d9a569c8.rmeta --extern walkdir=/tmp/cargo-install3s0tel/release/deps/libwalkdir-107f000ad06cc20f.rmeta --cap-lints allow -L native=/tmp/cargo-install3s0tel/release/build/curl-sys-15860113a542570c/out/build -L native=/tmp/cargo-install3s0tel/release/build/libnghttp2-sys-b2801b730686a6ff/out/i/lib -L native=/tmp/cargo-install3s0tel/release/build/libgit2-sys-d6137d9a820f7f30/out/build -L native=/tmp/cargo-install3s0tel/release/build/libssh2-sys-b50a459ff93300bb/out/build` (exit code: 1)

The issue is actual for all platforms: Windows, Ubuntu, macOS
The first time the error appeared - yesterday( 24.01.2021 )

However, in case of install from sources, everything looks okay.

I tried to downgrade cargo-outdated to previous releases in my forked repo , but with no luck, the issue persists.

Could you please check the issue?

@miketimofeev
Copy link

Looks like the issue is related to cargo
rust-lang/cargo#9101

@Darleev
Copy link
Author

Darleev commented Jan 25, 2021

Please check the comment above, the issue was fixed using --locked option for cargo install.

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

2 participants