[INFO] fetching crate gtk-macros 0.3.0... [INFO] testing gtk-macros-0.3.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate gtk-macros 0.3.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate gtk-macros 0.3.0 [INFO] finished tweaking crates.io crate gtk-macros 0.3.0 [INFO] tweaked toml for crates.io crate gtk-macros 0.3.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gtk-macros 0.3.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0562c2029957a2eb43d61387a4690e887a80883c170d146bb28a72c788c97798 [INFO] running `Command { std: "docker" "start" "-a" "0562c2029957a2eb43d61387a4690e887a80883c170d146bb28a72c788c97798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0562c2029957a2eb43d61387a4690e887a80883c170d146bb28a72c788c97798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0562c2029957a2eb43d61387a4690e887a80883c170d146bb28a72c788c97798", kill_on_drop: false }` [INFO] [stdout] 0562c2029957a2eb43d61387a4690e887a80883c170d146bb28a72c788c97798 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cfe566b5432dfd9a44cd987a66c3fc52ab72f076dc73529c4574785646e9a26 [INFO] running `Command { std: "docker" "start" "-a" "6cfe566b5432dfd9a44cd987a66c3fc52ab72f076dc73529c4574785646e9a26", kill_on_drop: false }` [INFO] [stderr] Compiling gtk-macros v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "6cfe566b5432dfd9a44cd987a66c3fc52ab72f076dc73529c4574785646e9a26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cfe566b5432dfd9a44cd987a66c3fc52ab72f076dc73529c4574785646e9a26", kill_on_drop: false }` [INFO] [stdout] 6cfe566b5432dfd9a44cd987a66c3fc52ab72f076dc73529c4574785646e9a26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a428c7370ec5775909369e4033fc3e8f43d6138084474a09b81e9a5d027e39c6 [INFO] running `Command { std: "docker" "start" "-a" "a428c7370ec5775909369e4033fc3e8f43d6138084474a09b81e9a5d027e39c6", kill_on_drop: false }` [INFO] [stderr] Compiling gtk-macros v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "a428c7370ec5775909369e4033fc3e8f43d6138084474a09b81e9a5d027e39c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a428c7370ec5775909369e4033fc3e8f43d6138084474a09b81e9a5d027e39c6", kill_on_drop: false }` [INFO] [stdout] a428c7370ec5775909369e4033fc3e8f43d6138084474a09b81e9a5d027e39c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3344eb610b2426bed9732c794e9b17f99541ecb34def3693ad47b8eceb31b92d [INFO] running `Command { std: "docker" "start" "-a" "3344eb610b2426bed9732c794e9b17f99541ecb34def3693ad47b8eceb31b92d", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/gtk_macros-ff5985503b4af8c0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests gtk_macros [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test src/lib.rs - add_style_class (line 261) - compile ... FAILED [INFO] [stdout] test src/lib.rs - get_action (line 224) - compile ... FAILED [INFO] [stdout] test src/lib.rs - action (line 107) - compile ... FAILED [INFO] [stdout] test src/lib.rs - add_style_class (line 280) - compile ... FAILED [INFO] [stdout] test src/lib.rs - add_style_class (line 287) - compile ... FAILED [INFO] [stdout] test src/lib.rs - get_action (line 204) - compile ... FAILED [INFO] [stdout] test src/lib.rs - add_style_class (line 269) - compile ... FAILED [INFO] [stdout] test src/lib.rs - action (line 123) - compile ... FAILED [INFO] [stdout] test src/lib.rs - get_widget (line 8) - compile ... FAILED [INFO] [stdout] test src/lib.rs - stateful_action (line 172) - compile ... FAILED [INFO] [stdout] test src/lib.rs - get_widget (line 19) - compile ... FAILED [INFO] [stdout] test src/lib.rs - spawn (line 51) - compile ... FAILED [INFO] [stdout] test src/lib.rs - send (line 89) - compile ... FAILED [INFO] [stdout] test src/lib.rs - get_widget (line 26) - compile ... FAILED [INFO] [stdout] test src/lib.rs - send (line 81) - compile ... FAILED [INFO] [stdout] test src/lib.rs - spawn (line 62) - compile ... FAILED [INFO] [stdout] test src/lib.rs - stateful_action (line 155) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - add_style_class (line 261) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gtk` [INFO] [stdout] --> src/lib.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 262 | let button = gtk::Button::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gtk` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gtk`, use `cargo add gtk` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_action (line 224) stdout ---- [INFO] [stdout] error: cannot find macro `get_action` in this scope [INFO] [stdout] --> src/lib.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 233 | get_action!(actions, @delete).set_enabled(false); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 224 + use gtk_macros::get_action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `action` in this scope [INFO] [stdout] --> src/lib.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | action!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 224 + use gtk_macros::action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:225:15 [INFO] [stdout] | [INFO] [stdout] 225 | let actions = gio::SimpleActionGroup::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - action (line 107) stdout ---- [INFO] [stdout] error: cannot find macro `get_widget` in this scope [INFO] [stdout] --> src/lib.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | let widget = get_widget!(builder, gtk::Window, widget); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 107 + use gtk_macros::get_widget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | let actions = gio::SimpleActionGroup::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | let action = gio::SimpleAction::new("do", None); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - add_style_class (line 280) stdout ---- [INFO] [stdout] error: cannot find macro `add_style_class` in this scope [INFO] [stdout] --> src/lib.rs:282:1 [INFO] [stdout] | [INFO] [stdout] 282 | add_style_class!(button, @foo); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 280 + use gtk_macros::add_style_class; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gtk` [INFO] [stdout] --> src/lib.rs:281:14 [INFO] [stdout] | [INFO] [stdout] 281 | let button = gtk::Button::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gtk` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gtk`, use `cargo add gtk` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - add_style_class (line 287) stdout ---- [INFO] [stdout] error: cannot find macro `add_style_class` in this scope [INFO] [stdout] --> src/lib.rs:289:1 [INFO] [stdout] | [INFO] [stdout] 289 | add_style_class!(button, &["foo", "bar"]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 287 + use gtk_macros::add_style_class; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gtk` [INFO] [stdout] --> src/lib.rs:288:14 [INFO] [stdout] | [INFO] [stdout] 288 | let button = gtk::Button::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gtk` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gtk`, use `cargo add gtk` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_action (line 204) stdout ---- [INFO] [stdout] error: cannot find macro `action` in this scope [INFO] [stdout] --> src/lib.rs:206:1 [INFO] [stdout] | [INFO] [stdout] 206 | action!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 204 + use gtk_macros::action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:205:15 [INFO] [stdout] | [INFO] [stdout] 205 | let actions = gio::SimpleActionGroup::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 215 | .downcast::() [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - add_style_class (line 269) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gtk` [INFO] [stdout] --> src/lib.rs:270:14 [INFO] [stdout] | [INFO] [stdout] 270 | let button = gtk::Button::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gtk` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gtk`, use `cargo add gtk` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - action (line 123) stdout ---- [INFO] [stdout] error: cannot find macro `action` in this scope [INFO] [stdout] --> src/lib.rs:127:1 [INFO] [stdout] | [INFO] [stdout] 127 | action!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 123 + use gtk_macros::action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `get_widget` in this scope [INFO] [stdout] --> src/lib.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | let widget = get_widget!(builder, gtk::Window, widget); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 123 + use gtk_macros::get_widget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | let actions = gio::SimpleActionGroup::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_widget (line 8) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gtk` [INFO] [stdout] --> src/lib.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | let builder = gtk::Builder::new_frm_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gtk` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gtk`, use `cargo add gtk` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 + use std::thread::Builder; [INFO] [stdout] | [INFO] [stdout] help: if you import `Builder`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 9 - let builder = gtk::Builder::new_frm_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] 9 + let builder = Builder::new_frm_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gtk` [INFO] [stdout] --> src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let widget: gtk::Label = builder.object("my_label").expect("Failed to find my_label object"); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gtk` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gtk`, use `cargo add gtk` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - stateful_action (line 172) stdout ---- [INFO] [stdout] error: cannot find macro `stateful_action` in this scope [INFO] [stdout] --> src/lib.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 175 | stateful_action!(actions, "dark-mode", is_dark_mode, move |action, _| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 172 + use gtk_macros::stateful_action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:173:15 [INFO] [stdout] | [INFO] [stdout] 173 | let actions = gio::SimpleActionGroup::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_widget (line 19) stdout ---- [INFO] [stdout] error: cannot find macro `get_widget` in this scope [INFO] [stdout] --> src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | get_widget!(builder, gtk::Label, my_label); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 19 + use gtk_macros::get_widget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gtk` [INFO] [stdout] --> src/lib.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | let builder = gtk::Builder::new_from_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gtk` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gtk`, use `cargo add gtk` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use std::thread::Builder; [INFO] [stdout] | [INFO] [stdout] help: if you import `Builder`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 20 - let builder = gtk::Builder::new_from_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] 20 + let builder = Builder::new_from_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_label` in this scope [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | my_label.set_text("Hello world!"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - spawn (line 51) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `glib` [INFO] [stdout] --> src/lib.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | let ctx = glib::MainContext::default(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `glib` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `glib`, use `cargo add glib` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `something` in this scope [INFO] [stdout] --> src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | something.await; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - send (line 89) stdout ---- [INFO] [stdout] error: cannot find macro `send` in this scope [INFO] [stdout] --> src/lib.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | send!(self.sender, Action::DoThing); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 89 + use gtk_macros::send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_widget (line 26) stdout ---- [INFO] [stdout] error: cannot find macro `get_widget` in this scope [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | get_widget!(builder, gtk::Label, @my_label).set_text("Hello world!"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 26 + use gtk_macros::get_widget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gtk` [INFO] [stdout] --> src/lib.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | let builder = gtk::Builder::new_from_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gtk` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gtk`, use `cargo add gtk` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 26 + use std::thread::Builder; [INFO] [stdout] | [INFO] [stdout] help: if you import `Builder`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 27 - let builder = gtk::Builder::new_from_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] 27 + let builder = Builder::new_from_resource("/org/gnome/App/ui/widget.ui"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - send (line 81) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `sender` in this scope [INFO] [stdout] --> src/lib.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | sender.send(Action::DoThing).expect("Failed to send DoThing through the glib channel?"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action` [INFO] [stdout] --> src/lib.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | sender.send(Action::DoThing).expect("Failed to send DoThing through the glib channel?"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Action` [INFO] [stdout] | help: an enum with a similar name exists: `Option` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - spawn (line 62) stdout ---- [INFO] [stdout] error: cannot find macro `spawn` in this scope [INFO] [stdout] --> src/lib.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | spawn!(async { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 62 + use gtk_macros::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - stateful_action (line 155) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 156 | let actions = gio::SimpleActionGroup::new(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gio` [INFO] [stdout] --> src/lib.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | let action = gio::SimpleAction::new_stateful("dark-mode", None, &is_dark_mode.to_variant()); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `gio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gio`, use `cargo add gio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_variant` found for type `bool` in the current scope [INFO] [stdout] --> src/lib.rs:159:79 [INFO] [stdout] | [INFO] [stdout] 159 | let action = gio::SimpleAction::new_stateful("dark-mode", None, &is_dark_mode.to_variant()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `bool` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:160:31 [INFO] [stdout] | [INFO] [stdout] 160 | action.connect_activate(move |action, _| { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 161 | let state = action.state().unwrap(); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 160 | action.connect_activate(move |action: /* Type */, _| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - action (line 107) [INFO] [stdout] src/lib.rs - action (line 123) [INFO] [stdout] src/lib.rs - add_style_class (line 261) [INFO] [stdout] src/lib.rs - add_style_class (line 269) [INFO] [stdout] src/lib.rs - add_style_class (line 280) [INFO] [stdout] src/lib.rs - add_style_class (line 287) [INFO] [stdout] src/lib.rs - get_action (line 204) [INFO] [stdout] src/lib.rs - get_action (line 224) [INFO] [stdout] src/lib.rs - get_widget (line 19) [INFO] [stdout] src/lib.rs - get_widget (line 26) [INFO] [stdout] src/lib.rs - get_widget (line 8) [INFO] [stdout] src/lib.rs - send (line 81) [INFO] [stdout] src/lib.rs - send (line 89) [INFO] [stdout] src/lib.rs - spawn (line 51) [INFO] [stdout] src/lib.rs - spawn (line 62) [INFO] [stdout] src/lib.rs - stateful_action (line 155) [INFO] [stdout] src/lib.rs - stateful_action (line 172) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 17 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.17s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3344eb610b2426bed9732c794e9b17f99541ecb34def3693ad47b8eceb31b92d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3344eb610b2426bed9732c794e9b17f99541ecb34def3693ad47b8eceb31b92d", kill_on_drop: false }` [INFO] [stdout] 3344eb610b2426bed9732c794e9b17f99541ecb34def3693ad47b8eceb31b92d