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

derive_arbitrary build failure with with generate-lockfile -Z minimal-versions #136

Closed
tarcieri opened this issue Jan 3, 2023 · 0 comments · Fixed by #142 or RustCrypto/formats#961

Comments

@tarcieri
Copy link
Contributor

tarcieri commented Jan 3, 2023

It seems like I may not have understood the actual problem in #134.

I think the actual issue is that derive_arbitrary is not specifying the minimal syn version it can build with.

I'm encountering the same problem (and a new one) on the latest release:

https://github.com/RustCrypto/formats/actions/runs/3832620440/jobs/6523151884

error[E0599]: no function or associated item named `into_compile_error` found for struct `Error` in the current scope
  --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/derive_arbitrary-1.2.2/src/lib.rs:16:37
   |
16 |         .unwrap_or_else(syn::Error::into_compile_error)
   |                                     ^^^^^^^^^^^^^^^^^^
   |                                     |
   |                                     function or associated item not found in `Error`
   |                                     help: there is a method with a similar name: `to_compile_error`

error[E05[99](https://github.com/RustCrypto/formats/actions/runs/3832620440/jobs/6523151884#step:9:100)]: no method named `len` found for reference `&Fields` in the current scope
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/derive_arbitrary-1.2.2/src/lib.rs:260:38
    |
260 |                 if idx + 1 == fields.len() {
    |                                      ^^^ method not found in `&Fields`
@nagisa nagisa closed this as completed in 11a42f7 Jan 24, 2023
baloo added a commit to baloo/formats that referenced this issue Mar 30, 2023
baloo added a commit to baloo/formats that referenced this issue Mar 30, 2023
baloo added a commit to baloo/formats that referenced this issue Mar 30, 2023
tarcieri pushed a commit to RustCrypto/formats that referenced this issue Mar 31, 2023
…til rust-fuzz/arbitrary#134 is fixed" (#961)

This reverts commit 517adb7.

The issue in `arbitrary` has been fixed: rust-fuzz/arbitrary#136

See #837
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant