$ cargo run
warning: anonymous parameters are deprecated and will be removed in the next edition
--> src/main.rs:110:25
|
110 | fn fromable(x: &Id, PhantomData<Self>) -> bool;
| ^^^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: PhantomData<Self>`
|
= note: `#[warn(anonymous_parameters)]` on by default
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
warning: `batterybar` (bin "batterybar") generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
Running `target/debug/batterybar`
2022-02-25 12:47:17.531 batterybar[28878:1107184] This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0 CoreAutoLayout 0x00000001cdb909f4 _AssertAutoLayoutOnAllowedThreadsOnly + 192
1 CoreAutoLayout 0x00000001cdb907ac -[NSISEngine _optimizeWithoutRebuilding] + 72
2 CoreAutoLayout 0x00000001cdb90284 -[NSISEngine optimize] + 108
3 CoreAutoLayout 0x00000001cdb8b920 -[NSISEngine performPendingChangeNotifications] + 116
4 AppKit 0x00000001c93665d8 -[NSWindow(NSConstraintBasedLayout) updateConstraintsIfNeeded] + 88
5 AppKit 0x00000001c93671f4 -[NSWindow(NSConstraintBasedLayout) layoutIfNeeded] + 116
6 AppKit 0x00000001c952d554 -[NSStatusBarWindow setStatusBarView:] + 48
7 AppKit 0x00000001c952d060 -[NSStatusBar(NSStatusBar_Appearance) _createStatusItemControlInWindow:] + 148
8 AppKit 0x00000001c952cf88 -[NSSystemStatusBar _createStatusItemControlInWindow:] + 48
9 AppKit 0x00000001c952cf04 -[NSStatusItem _button] + 56
10 AppKit 0x00000001c99fb88c -[NSStatusItem setTitle:] + 36
11 batterybar 0x0000000104886c70 _ZN64_$LT$$LP$A$C$$RP$$u20$as$u20$objc..message..MessageArguments$GT$6invoke17h0ffd7158a9052662E + 116
12 batterybar 0x00000001048861e8 _ZN4objc7message8platform15send_unverified17h91435361a9c09c43E + 112
13 batterybar 0x0000000104885568 _ZN77_$LT$$BP$mut$u20$objc..runtime..Object$u20$as$u20$cocoa..appkit..NSWindow$GT$9setTitle_17h155ca35ad596e6cbE + 280
14 batterybar 0x000000010487b458 _ZN10batterybar32application_did_finish_launching28_$u7b$$u7b$closure$u7d$$u7d$28_$u7b$$u7b$closure$u7d$$u7d$17h450ba5c9c63c2bcdE + 192
15 batterybar 0x0000000104881d4c _ZN4objc2rc11autorelease15autoreleasepool17hac3f7585f4424814E + 72
16 batterybar 0x000000010487b34c _ZN10batterybar32application_did_finish_launching28_$u7b$$u7b$closure$u7d$$u7d$17h38c730414e557ca7E + 48
17 batterybar 0x000000010487ebb8 _ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17ha0ae866442c56bd9E + 24
18 batterybar 0x000000010487ce60 _ZN3std6thread7Builder15spawn_unchecked28_$u7b$$u7b$closure$u7d$$u7d$28_$u7b$$u7b$closure$u7d$$u7d$17h977ea8d0097ecec3E + 24
19 batterybar 0x0000000104881cd0 _ZN115_$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$9call_once17h0aa904691bad0f52E + 24
20 batterybar 0x000000010487eefc _ZN3std9panicking3try7do_call17h87e414f60137d640E + 56
21 batterybar 0x000000010487f180 __rust_try + 32
22 batterybar 0x000000010487ee60 _ZN3std9panicking3try17h71380998a821499dE + 80
23 batterybar 0x0000000104881fcc _ZN3std5panic12catch_unwind17h16dd69a9805d22afE + 24
24 batterybar 0x000000010487cd00 _ZN3std6thread7Builder15spawn_unchecked28_$u7b$$u7b$closure$u7d$$u7d$17h4cb49dd3bf7ac1f2E + 256
25 batterybar 0x0000000104883014 _ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17ha6fa772f94e73614E + 24
26 batterybar 0x00000001048ab8c4 _ZN3std3sys4unix6thread6Thread3new12thread_start17ha92b558f2b29b4ccE + 48
27 libsystem_pthread.dylib 0x00000001c6679240 _pthread_start + 148
28 libsystem_pthread.dylib 0x00000001c6674024 thread_start + 8
)
fatal runtime error: Rust cannot catch foreign exceptions
zsh: abort cargo run