Skip to content

regression: mismatched types (panic info hook stuff) #128890

Closed
Lokathor/yacurses
#8
@BoxyUwU

Description

@BoxyUwU
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:122:36
[INFO] [stdout]     |
[INFO] [stdout] 122 |       std::panic::set_hook(replace(&mut self.old_hook, Box::new(|_| {})));
[INFO] [stdout]     |                            ------- ^^^^^^^^^^^^^^^^^^ expected `PanicHookInfo<'_>`, found `PanicInfo<'_>`
[INFO] [stdout]     |                            |
[INFO] [stdout]     |                            arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected mutable reference `&mut Box<dyn for<'a, 'b> std::ops::Fn(&'a PanicHookInfo<'b>) + Send + Sync>`
[INFO] [stdout]                found mutable reference `&mut Box<(dyn for<'a, 'b> std::ops::Fn(&'a PanicInfo<'b>) + Send + Sync + 'static)>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libsRelevant to the library team, which will review and decide on the PR/issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions