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

error[E0432]: unresolved import thiserror (in latest cargo version) #18

Open
Konard opened this issue Jun 9, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Konard
Copy link
Member

Konard commented Jun 9, 2024

IMG_2831

gitpod /workspace/Solver (main) $ cargo add doublets
    Updating crates.io index
      Adding doublets v0.1.0-pre to dependencies.
             Features:
             + data
             + mem
             + num
             + platform
             - full
             - smallvec
             - smallvec-optimization
gitpod /workspace/Solver (main) $ cargo watch -x run
[Running 'cargo run']
   Compiling ppv-lite86 v0.2.17
   Compiling static_assertions v1.1.0
   Compiling getrandom v0.2.15
   Compiling num-traits v0.2.19
   Compiling platform-data v0.1.0-beta.3
error[E0432]: unresolved import `thiserror`
 --> /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/platform-data-0.1.0-beta.3/src/links.rs:4:10
  |
4 | #[derive(thiserror::Error, Debug)]
  |          ^^^^^^^^^^^^^^^^ no `ThiserrorProvide` in `__private`
  |
  = note: this error originates in the derive macro `thiserror::Error` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0412]: cannot find type `Request` in module `std::error`
 --> /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/platform-data-0.1.0-beta.3/src/links.rs:4:10
  |
4 | #[derive(thiserror::Error, Debug)]
  |          ^^^^^^^^^^^^^^^^ not found in `std::error`
  |
  = note: this error originates in the derive macro `thiserror::Error` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: use of unstable library feature 'error_generic_member_access'
 --> /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/platform-data-0.1.0-beta.3/src/links.rs:4:10
  |
4 | #[derive(thiserror::Error, Debug)]
  |          ^^^^^^^^^^^^^^^^
  |
  = note: see issue #99301 <https://github.com/rust-lang/rust/issues/99301> for more information
  = help: add `#![feature(error_generic_member_access)]` to the crate attributes to enable
  = note: this error originates in the derive macro `thiserror::Error` (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling rand_core v0.6.4
error[E0599]: no method named `thiserror_provide` found for reference `&std::io::Error` in the current scope
  --> /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/platform-data-0.1.0-beta.3/src/links.rs:18:13
   |
18 |     #[error("unable to allocate memory for links storage: `{0}`")]
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&std::io::Error`

Some errors have detailed explanations: E0412, E0432, E0599, E0658.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `platform-data` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
[Finished running. Exit status: 101]
@Konard Konard added the bug Something isn't working label Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant