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
[package]
name = "serde_184_error"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
sentry = "0.31.5"
#The compile error not occured on serde = "= 1.0.183"
serde = "1.0.184"
Error message
Updating crates.io index
Checking sentry-types v0.31.5
error[E0507]: cannot move out of `*self` which is behind a shared reference
--> /g/cargo/registry/src/index.crates.io-6f17d22bba15001f/sentry-types-0.31.5/src/protocol/v7.rs:1083:10
|
1083 | #[derive(Serialize, Deserialize, Debug, Clone, Parti...
| ^^^^^^^^^
| |
| data moved here
| move occurs because `unrecognized` has type `v7::Context`, which does not implement the `Copy` trait
|
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for moreinfo)
help: consider borrowing here
|
1083 | #[derive(&Serialize, Deserialize, Debug, Clone, PartialEq)]
| +
For more information about this error, try `rustc --explain E0507`.
error: could not compile `sentry-types` (lib) due to previouserror
The text was updated successfully, but these errors were encountered:
I got a compilation error which doesn't occur with
serde 1.0.183
. Is it a some breaking change?example project
Cargo.toml
Error message
The text was updated successfully, but these errors were encountered: