jD91mZM2/xidlehook

Build failure due to attributes on if expressions

brianclinkenbeard opened this issue · 2 comments

Compiling xidlehook-core v0.2.0 (/home/brian/documents/projects/xidlehook/xidlehook-core)
error: attributes are not yet allowed on `if` expressions
   --> xidlehook-core/src/lib.rs:474:21
    |
474 |                     #[cfg(feature = "tokio")]
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: attributes are not yet allowed on `if` expressions
   --> xidlehook-core/src/lib.rs:484:21
    |
484 |                     #[cfg(feature = "tokio")]
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

error: could not compile `xidlehook-core`.

rustc version: 1.42.0
Perhaps rust-lang/rust#69201 has something to do with this?

Try updating rust?

rustc 1.43 solved the issue. 🎉