Skip to content

type mismatch in function arguments --> /home/hello/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tezos-smart-rollup-entrypoint-0.2.2/src/lib.rs:22:26 #18

@shruti-gitm

Description

@shruti-gitm

std::panic::set_hook(Box::new(tezos_smart_rollup_panic_hook::panic_handler));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected due to this
| found signature defined here
|
= note: expected function signature for<'a, 'b> fn(&'a PanicHookInfo<'b>) -> _
found function signature fn(&core::panic::panic_info::PanicInfo<'_>) -> _
= note: required for the cast from Box<for<'a, 'b> fn(&'a core::panic::panic_info::PanicInfo<'b>) {panic_handler}> to Box<(dyn for<'a, 'b> Fn(&'a PanicHookInfo<'b>) + Send + Sync + 'static)>

For more information about this error, try rustc --explain E0631.
error: could not compile tezos-smart-rollup-entrypoint (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
make[2]: *** [Makefile:20: build-kernel] Error 101
make[2]: Leaving directory '/home/hello/Downloads/sequencer-master'
make[1]: *** [Makefile:36: build-operator] Error 2
make[1]: Leaving directory '/home/hello/Downloads/sequencer-master'
make: *** [Makefile:56: run-operator] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions