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 cargo-c error #266

Closed
PlopTheReal opened this issue Jun 30, 2022 · 3 comments
Closed

cargo install cargo-c error #266

PlopTheReal opened this issue Jun 30, 2022 · 3 comments
Labels
A-Cargo-problem A problem related to cargo itself

Comments

@PlopTheReal
Copy link

error[E0599]: no method named iter found for opaque type impl Iterator<Item = &OsString> in the current scope
--> /home/marc/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.62.0/src/cargo/core/compiler/build_plan.rs:81:35
|
81 | for arg in cmd.get_args().iter() {
| ^^^^ method not found in impl Iterator<Item = &OsString>

error[E0599]: no method named iter found for opaque type impl Iterator<Item = &OsString> in the current scope
--> /home/marc/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.62.0/src/cargo/core/compiler/mod.rs:757:24
|
757 | rustdoc.get_args().iter().any(|flag| {
| ^^^^ method not found in impl Iterator<Item = &OsString>

error[E0599]: no method named hash found for opaque type impl Iterator<Item = &OsString> in the current scope
--> /home/marc/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.62.0/src/cargo/util/rustc.rs:354:20
|
354 | cmd.get_args().hash(&mut hasher);
| ^^^^ method not found in impl Iterator<Item = &OsString>

For more information about this error, try rustc --explain E0599.
error: could not compile cargo due to 3 previous errors
error: failed to compile cargo-c v0.9.10+cargo-0.62, intermediate artifacts can be found at /tmp/cargo-install7gJenw

System: Ubuntu 22
Cargo version: cargo 1.62.0 (a748cf5a3 2022-06-08)

@sdroege
Copy link
Sponsor Contributor

sdroege commented Jul 1, 2022

See rust-lang/cargo#10803

@lu-zero
Copy link
Owner

lu-zero commented Jul 1, 2022

Lovely, luckily it should be already solved upstream. The version support 0.63 is pretty much ready.

@lu-zero lu-zero added the A-Cargo-problem A problem related to cargo itself label Jul 1, 2022
@PlopTheReal
Copy link
Author

great! Updated with cargo install cargo --force and then it worked well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Cargo-problem A problem related to cargo itself
Projects
None yet
Development

No branches or pull requests

3 participants