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

Cannot build octocrab - move occurs because unrecognized has type xxx #446

Closed
iamjpotts opened this issue Aug 21, 2023 · 5 comments
Closed

Comments

@iamjpotts
Copy link
Contributor

Using rustc 1.70 on a Mac, and rustc 1.68 on Ubuntu 20.04, and cloning main of this repo, I cannot get the project to build with cargo b or cargo t - there's a proliferation of errors like this one (almost 100 instances of this error):

error[E0507]: cannot move out of `*self` which is behind a shared reference
  --> src/models/activity.rs:16:35
   |
16 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
   |                                   ^^^^^^^^^
   |                                   |
   |                                   data moved here
   |                                   move occurs because `unrecognized` has type `Reason`, 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 more info)
help: consider borrowing here
   |
16 | #[derive(Debug, Clone, PartialEq, &Serialize, Deserialize)]
   |                                   +


What am I doing wrong with building octocrab ?

What additional information do you need to help me work thru this?

@BCNelson
Copy link

BCNelson commented Aug 21, 2023

I'm having this same issue Nixos rustc 1.71.0 (8ede3aae2 2023-07-12)

@BCNelson
Copy link

This appears to happen on older versions as well. So far i have tested

  • 0.29.3
  • 0.29.2
  • 0.29.1
  • 0.29.0
  • 0.28.0
  • 0.27.0

@BCNelson
Copy link

This appears to be a problem with serde v1.0.184 released two hours ago. Locking serde to version 1.0.183 allows it to compile

@BCNelson
Copy link

it has been fixed in verison 1.0.185 #serde-rs/serde#2591

@iamjpotts
Copy link
Contributor Author

I was able to get octocrab to build after running cargo update this morning.

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