Skip to content

does not build with rust 1.69 #519

Closed
@selfisekai

Description

@selfisekai
error[E0507]: cannot move out of `self.version` which is behind a shared reference
   --> rust/attest/src/dcap/endorsements.rs:276:5
    |
270 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
276 |     version: UInt32LE,
    |     ^^^^^^^^^^^^^^^^^ move occurs because `self.version` has type `endian::UInt32LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.enclave_type` which is behind a shared reference
   --> rust/attest/src/dcap/endorsements.rs:279:5
    |
270 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
279 |     enclave_type: UInt32LE,
    |     ^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.enclave_type` has type `endian::UInt32LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.buffer_size` which is behind a shared reference
   --> rust/attest/src/dcap/endorsements.rs:282:5
    |
270 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
282 |     buffer_size: UInt32LE,
    |     ^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.buffer_size` has type `endian::UInt32LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.num_elements` which is behind a shared reference
   --> rust/attest/src/dcap/endorsements.rs:285:5
    |
270 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
285 |     num_elements: UInt32LE,
    |     ^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.num_elements` has type `endian::UInt32LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.version` which is behind a shared reference
   --> rust/attest/src/dcap/sgx_quote.rs:105:5
    |
100 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
105 |     version: UInt16LE,
    |     ^^^^^^^^^^^^^^^^^ move occurs because `self.version` has type `endian::UInt16LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.sign_type` which is behind a shared reference
   --> rust/attest/src/dcap/sgx_quote.rs:109:5
    |
100 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
109 |     sign_type: UInt16LE,
    |     ^^^^^^^^^^^^^^^^^^^ move occurs because `self.sign_type` has type `endian::UInt16LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.qe_svn` which is behind a shared reference
   --> rust/attest/src/dcap/sgx_quote.rs:117:5
    |
100 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
117 |     qe_svn: UInt16LE,
    |     ^^^^^^^^^^^^^^^^ move occurs because `self.qe_svn` has type `endian::UInt16LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.pce_svn` which is behind a shared reference
   --> rust/attest/src/dcap/sgx_quote.rs:121:5
    |
100 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
121 |     pce_svn: UInt16LE,
    |     ^^^^^^^^^^^^^^^^^ move occurs because `self.pce_svn` has type `endian::UInt16LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.report_body` which is behind a shared reference
   --> rust/attest/src/dcap/sgx_quote.rs:133:5
    |
100 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
133 |     pub report_body: SgxReportBody,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.report_body` has type `SgxReportBody`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.qe_report_body` which is behind a shared reference
   --> rust/attest/src/dcap/sgx_quote.rs:333:5
    |
328 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
333 |     qe_report_body: SgxReportBody,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.qe_report_body` has type `SgxReportBody`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.auth_data_size` which is behind a shared reference
   --> rust/attest/src/dcap/sgx_quote.rs:335:5
    |
328 | #[derive(Debug)]
    |          ----- in this derive macro expansion
...
335 |     auth_data_size: UInt16LE,
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.auth_data_size` has type `endian::UInt16LE`, which does not implement the `Copy` trait
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.miscselect` which is behind a shared reference
  --> rust/attest/src/dcap/sgx_report_body.rs:33:5
   |
23 | #[derive(Debug)]
   |          ----- in this derive macro expansion
...
33 |     pub miscselect: UInt32LE,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.miscselect` has type `endian::UInt32LE`, which does not implement the `Copy` trait
   |
   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.isvprodid` which is behind a shared reference
  --> rust/attest/src/dcap/sgx_report_body.rs:72:5
   |
23 | #[derive(Debug)]
   |          ----- in this derive macro expansion
...
72 |     pub isvprodid: UInt16LE,
   |     ^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.isvprodid` has type `endian::UInt16LE`, which does not implement the `Copy` trait
   |
   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self.isvsvn` which is behind a shared reference
  --> rust/attest/src/dcap/sgx_report_body.rs:76:5
   |
23 | #[derive(Debug)]
   |          ----- in this derive macro expansion
...
76 |     pub isvsvn: UInt16LE,
   |     ^^^^^^^^^^^^^^^^^^^^ move occurs because `self.isvsvn` has type `endian::UInt16LE`, which does not implement the `Copy` trait
   |
   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0507]: cannot move out of `self._configsvn` which is behind a shared reference
  --> rust/attest/src/dcap/sgx_report_body.rs:80:5
   |
23 | #[derive(Debug)]
   |          ----- in this derive macro expansion
...
80 |     _configsvn: UInt16LE,
   |     ^^^^^^^^^^^^^^^^^^^^ move occurs because `self._configsvn` has type `endian::UInt16LE`, which does not implement the `Copy` trait
   |
   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0507`.
warning: `attest` (lib) generated 2 warnings
error: could not compile `attest` due to 15 previous errors; 2 warnings emitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting releaseWill be in the next release of libsignal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions