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

Support packed remote struct without destructuring #2080

Merged
merged 2 commits into from
Aug 23, 2021

Commits on Aug 23, 2021

  1. Add test of packed struct that cannot be destructured

    Currently fails:
    
        error[E0509]: cannot move out of type `RemotePackedNonCopyDef`, which implements the `Drop` trait
           --> test_suite/tests/test_gen.rs:876:10
            |
        876 | #[derive(Deserialize)]
            |          ^^^^^^^^^^^
            |          |
            |          cannot move out of here
            |          data moved here
            |          move occurs because `__v1` has type `std::string::String`, which does not implement the `Copy` trait
            |
            = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
    dtolnay committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    714c8a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a66c5f View commit details
    Browse the repository at this point in the history