Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0277]: the trait bound `dyn for<'a> Fn(&'a revm::revm_primitives::Env) -> std::result::Result<u64, EVMError<std::string::String>>: Ungil` is not satisfied in `{closure@src/dummy.rs:14:22: 14:29}`
- --> src/dummy.rs:14:22
- |
- 14 | py.allow_threads(move || {
- | ------------- ^------
- | | |
- | ________|_____________within this `{closure@src/dummy.rs:14:22: 14:29}`
- | | |
- | | required by a bound introduced by this call
- 15 | | evm.transact()
- 16 | | });
- | |_____^ within `{closure@src/dummy.rs:14:22: 14:29}`, the trait `Ungil` is not implemented for `dyn for<'a> Fn(&'a revm::revm_primitives::Env) -> std::result::Result<u64, EVMError<std::string::String>>`, which is required by `{closure@src/dummy.rs:14:22: 14:29}: Ungil`
- |
- note: required because it appears within the type `alloc::sync::ArcInner<dyn for<'a> Fn(&'a revm::revm_primitives::Env) -> std::result::Result<u64, EVMError<std::string::String>>>`
- --> /Users/michal/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/sync.rs:348:8
- |
- 348 | struct ArcInner<T: ?Sized> {
- | ^^^^^^^^
- note: required because it appears within the type `PhantomData<ArcInner<dyn Fn(&Env) -> Result<u64, EVMError<String>>>>`
- --> /Users/michal/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/marker.rs:741:12
- |
- 741 | pub struct PhantomData<T: ?Sized>;
- | ^^^^^^^^^^^
- note: required because it appears within the type `Arc<dyn for<'a> Fn(&'a revm::revm_primitives::Env) -> std::result::Result<u64, EVMError<std::string::String>>>`
- --> /Users/michal/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/sync.rs:240:12
- |
- 240 | pub struct Arc<
- | ^^^
- note: required because it appears within the type `ValidationHandler<'_, (), DB>`
- --> /Users/michal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/revm-12.1.0/src/handler/handle_types/validation.rs:22:12
- |
- 22 | pub struct ValidationHandler<'a, EXT, DB: Database> {
- | ^^^^^^^^^^^^^^^^^
- note: required because it appears within the type `Handler<'_, revm::Context<(), DB>, (), DB>`
- --> /Users/michal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/revm-12.1.0/src/handler.rs:24:12
- |
- 24 | pub struct Handler<'a, H: Host + 'a, EXT, DB: Database> {
- | ^^^^^^^
- note: required because it appears within the type `Evm<'_, (), DB>`
- --> /Users/michal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/revm-12.1.0/src/evm.rs:22:12
- |
- 22 | pub struct Evm<'a, EXT, DB: Database> {
- | ^^^
- note: required because it appears within the type `UnsafeCell<Evm<'_, (), DB>>`
- --> /Users/michal/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cell.rs:2058:12
- |
- 2058 | pub struct UnsafeCell<T: ?Sized> {
- | ^^^^^^^^^^
- note: required because it appears within the type `std::sync::Mutex<Evm<'_, (), DB>>`
- --> /Users/michal/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/sync/mutex.rs:178:12
- |
- 178 | pub struct Mutex<T: ?Sized> {
- | ^^^^^
- = note: required because it appears within the type `&std::sync::Mutex<Evm<'_, (), DB>>`
- note: required because it appears within the type `std::sync::MutexGuard<'_, Evm<'_, (), DB>>`
- --> /Users/michal/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/sync/mutex.rs:209:12
- |
- 209 | pub struct MutexGuard<'a, T: ?Sized + 'a> {
- | ^^^^^^^^^^
- note: required because it's used within this closure
- --> src/dummy.rs:14:22
- |
- 14 | py.allow_threads(move || {
- | ^^^^^^^
- note: required by a bound in `pyo3::Python::<'py>::allow_threads`
- --> /Users/michal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.21.2/src/marker.rs:544:12
- |
- 542 | pub fn allow_threads<T, F>(self, f: F) -> T
- | ------------- required by a bound in this associated function
- 543 | where
- 544 | F: Ungil + FnOnce() -> T,
- | ^^^^^ required by this bound in `Python::<'py>::allow_threads`
- = note: the full name for the type has been written to '/Users/michal/git/wake-rust/target/debug/deps/wakers-041ff76975a61328.long-type-11614340160126360247.txt'
- = note: consider using `--verbose` to print the full type name to the console
- help: use parentheses to call this trait object
- |
- 16 | }(/* &revm::revm_primitives::Env */));
- | +++++++++++++++++++++++++++++++++++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement