Skip to content

Most recent release fails to build on rustc 1.92.0 #37

@VorpalBlade

Description

@VorpalBlade

Using the most recent stable release (0.2.1) this fails to build on Rustc 1.92.0:

error: this function depends on never type fallback being `()`
   --> src/main.rs:390:1
    |
390 | fn main() -> anyhow::Result<()> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
    = help: specify the types explicitly
note: in edition 2024, the requirement `!: ReadAll` will fail
   --> src/main.rs:466:20
    |
466 |         kwin_proxy.method_call("org.kde.kwin.Scripting", "unloadScript", (context.name,))?;
    |                    ^^^^^^^^^^^
    = note: `#[deny(dependency_on_unit_never_type_fallback)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
help: use `()` annotations to avoid fallback changes
    |
466 ~         kwin_proxy.method_call::<(), _, _, _>("org.kde.kwin.Scripting", "unloadScript", (context.name,))?;
467 |         return Ok(());
...
518 |     // setup message receiver
519 ~     let _receiver_thread = std::thread::spawn::<_, ()>(move || {
520 |         let _receiver = receiver_conn.start_receive(
...
539 |     let start_time = chrono::Local::now();
540 ~     script_proxy.method_call::<(), _, _, _>("org.kde.kwin.Script", "run", ())?;
541 |     if context.shortcut.is_empty() {
542 ~         script_proxy.method_call::<(), _, _, _>("org.kde.kwin.Script", "stop", ())?;

This seems to be fixed since, it would be great to have a new release with the fix, so it can be packaged for Arch (https://aur.archlinux.org/packages/kdotool)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions