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

Do not require the thiserror to be explicitly imported. #3

Open
drahnr opened this issue Feb 23, 2022 · 0 comments
Open

Do not require the thiserror to be explicitly imported. #3

drahnr opened this issue Feb 23, 2022 · 0 comments
Assignees

Comments

@drahnr
Copy link
Owner

drahnr commented Feb 23, 2022

error[E0433]: failed to resolve: use of undeclared crate or module `thiserror`
  --> node/network/statement-distribution/src/error.rs:38:1
   |
38 | #[fatality::fatality(splitable)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `thiserror`
   |
   = note: this error originates in the derive macro `::fatality::thiserror::Error` (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling polkadot-rpc v0.9.17 (/media/supersonic1t/projects/parity/polkadot-bernhard-fatality/rpc)
   Compiling pallet-treasury v4.0.0-dev (https://github.com/paritytech/substrate?branch=master#42b2d623)
   Compiling pallet-offences v4.0.0-dev (https://github.com/paritytech/substrate?branch=master#42b2d623)
error[E0599]: no method named `as_dyn_error` found for reference `&SubsystemError` in the current scope
  --> node/network/statement-distribution/src/error.rs:49:10
   |
49 |     #[error("Spawning subsystem task failed")]
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&SubsystemError`
   |
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
20 | use fatality::thiserror::private::AsDynError;
   |

error[E0599]: no method named `as_dyn_error` found for reference `&SubsystemError` in the current scope
  --> node/network/statement-distribution/src/error.rs:53:10
   |
53 |     #[error("Receiving message from overseer failed")]
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&SubsystemError`
   |
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
20 | use fatality::thiserror::private::AsDynError;
   |

error[E0599]: no method named `as_dyn_error` found for reference `&polkadot_node_subsystem_util::runtime::Error` in the current scope
  --> node/network/statement-distribution/src/error.rs:57:10
   |
57 |     #[error("Error while accessing runtime information")]
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&polkadot_node_subsystem_util::runtime::Error`
   |
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
20 | use fatality::thiserror::private::AsDynError;
   |

Some errors have detailed explanations: E0433, E0599.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `polkadot-statement-distribution` due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
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

1 participant