You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running cargo install sqlx-cli --no-default-features --features rustls,postgres fails with a strange error:
24.86 error[E0507]: cannot move out of `*self` which is behind a shared reference
24.86 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo_metadata-0.14.2/src/diagnostic.rs:95:24
24.86 |
24.86 95 | #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
24.86 | ^^^^^^^^^
24.86 | |
24.86 | data moved here
24.86 | move occurs because `unrecognized` has type `Applicability`, which does not implement the `Copy` trait
24.86 |
24.86 = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
24.86 help: consider borrowing here
24.86 |
24.86 95 | #[derive(Debug, Clone, &Serialize, Deserialize, PartialEq, Eq, Hash)]
24.86 | +
24.86
24.91 error[E0507]: cannot move out of `*self` which is behind a shared reference
24.91 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo_metadata-0.14.2/src/messages.rs:101:24
24.91 |
24.91 101 | #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
24.91 | ^^^^^^^^^
24.91 | |
24.91 | data moved here
24.91 | move occurs because `unrecognized` has type `Message`, which does not implement the `Copy` trait
24.91 |
24.91 = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
24.91 help: consider borrowing here
24.91 |
24.91 101 | #[derive(Debug, Clone, &Serialize, Deserialize, PartialEq, Eq, Hash)]
24.91 | +
24.91
25.06 For more information about this error, try `rustc --explain E0507`.
25.07 error: could not compile `cargo_metadata` (lib) due to 2 previous errors
All of this is on the
rust:1.71
docker image:Running
cargo install sqlx-cli --no-default-features --features rustls,postgres
fails with a strange error:full log: log.txt
But running
cargo install sqlx-cli --no-default-features --features rustls,postgres --git https://github.com/launchbadge/sqlx --locked
succeeds.full log: log-works.txt
The text was updated successfully, but these errors were encountered: