[INFO] cloning repository https://github.com/tamamu/penna-text-editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tamamu/penna-text-editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamamu%2Fpenna-text-editor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamamu%2Fpenna-text-editor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3c0a70c216755465e1d0cf65a1fa3be37cab65a [INFO] checking tamamu/penna-text-editor against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamamu%2Fpenna-text-editor" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tamamu/penna-text-editor on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tamamu/penna-text-editor [INFO] finished tweaking git repo https://github.com/tamamu/penna-text-editor [INFO] tweaked toml for git repo https://github.com/tamamu/penna-text-editor written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/tamamu/penna-text-editor already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-6/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/gdk.git` [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/gtk.git` [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/cairo` [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/gdk-pixbuf` [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/sys` [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/gio` [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/glib` [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/pango` [INFO] [stderr] Updating git repository `https://github.com/gtk-rs/atk` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 129e8cea4af285f1897eb4a365c725ee831f6ce2bd1c907a3e72ffe5f68a6737 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "129e8cea4af285f1897eb4a365c725ee831f6ce2bd1c907a3e72ffe5f68a6737", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "129e8cea4af285f1897eb4a365c725ee831f6ce2bd1c907a3e72ffe5f68a6737", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "129e8cea4af285f1897eb4a365c725ee831f6ce2bd1c907a3e72ffe5f68a6737", kill_on_drop: false }` [INFO] [stdout] 129e8cea4af285f1897eb4a365c725ee831f6ce2bd1c907a3e72ffe5f68a6737 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77239d01a422e44aa9a5cbefccb9d229bf95be11601ad318997df92e896fd688 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "77239d01a422e44aa9a5cbefccb9d229bf95be11601ad318997df92e896fd688", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling strum v0.18.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Compiling anyhow v1.0.37 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Checking smallvec v1.6.0 [INFO] [stderr] Compiling gio v0.9.0 (https://github.com/gtk-rs/gio#6c15125b) [INFO] [stderr] Compiling cairo-rs v0.9.0 (https://github.com/gtk-rs/cairo#7455304b) [INFO] [stderr] Compiling gdk-pixbuf v0.9.0 (https://github.com/gtk-rs/gdk-pixbuf#5ecc831f) [INFO] [stderr] Compiling pango v0.9.0 (https://github.com/gtk-rs/pango#a9fdf547) [INFO] [stderr] Compiling atk v0.9.0 (https://github.com/gtk-rs/atk#6d4d8c97) [INFO] [stderr] Compiling gdk v0.13.0 (https://github.com/gtk-rs/gdk.git#2a8f17dc) [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling gtk v0.9.0 (https://github.com/gtk-rs/gtk.git#59c38003) [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Checking freetype v0.7.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling strum_macros v0.18.0 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling glib-macros v0.10.0 (https://github.com/gtk-rs/glib#f53054c8) [INFO] [stderr] Compiling thiserror v1.0.23 [INFO] [stderr] Compiling system-deps v1.3.2 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Compiling glib-sys v0.10.0 (https://github.com/gtk-rs/sys#5f35e26c) [INFO] [stderr] Compiling gobject-sys v0.10.0 (https://github.com/gtk-rs/sys#5f35e26c) [INFO] [stderr] Compiling gio-sys v0.10.0 (https://github.com/gtk-rs/sys#5f35e26c) [INFO] [stderr] Compiling cairo-sys-rs v0.10.0 (https://github.com/gtk-rs/cairo#7455304b) [INFO] [stderr] Compiling pango-sys v0.10.0 (https://github.com/gtk-rs/sys#5f35e26c) [INFO] [stderr] Compiling gdk-pixbuf-sys v0.10.0 (https://github.com/gtk-rs/sys#5f35e26c) [INFO] [stderr] Compiling atk-sys v0.10.0 (https://github.com/gtk-rs/sys#5f35e26c) [INFO] [stderr] Compiling gdk-sys v0.10.0 (https://github.com/gtk-rs/sys#5f35e26c) [INFO] [stderr] Compiling gtk-sys v0.10.0 (https://github.com/gtk-rs/sys#5f35e26c) [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking glib v0.10.0 (https://github.com/gtk-rs/glib#f53054c8) [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking penna v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `gtk::ImageMenuItem` [INFO] [stdout] --> src/main.rs:11:70 [INFO] [stdout] | [INFO] [stdout] 11 | use gtk::{Window, WindowType, HeaderBar, Box, Orientation, TextView, ImageMenuItem, MenuButton, [INFO] [stdout] | ^^^^^^^^^^^^^ no `ImageMenuItem` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gtk::ImageMenuItem` [INFO] [stdout] --> src/main.rs:11:70 [INFO] [stdout] | [INFO] [stdout] 11 | use gtk::{Window, WindowType, HeaderBar, Box, Orientation, TextView, ImageMenuItem, MenuButton, [INFO] [stdout] | ^^^^^^^^^^^^^ no `ImageMenuItem` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AccelGroup` [INFO] [stdout] --> src/main.rs:12:49 [INFO] [stdout] | [INFO] [stdout] 12 | Image, Popover, TextBuffer, TextIter, AccelGroup, Button}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EventKey`, `ModifierType` [INFO] [stdout] --> src/main.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use gdk::{EventKey, ModifierType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AccelGroup` [INFO] [stdout] --> src/main.rs:12:49 [INFO] [stdout] | [INFO] [stdout] 12 | Image, Popover, TextBuffer, TextIter, AccelGroup, Button}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EventKey`, `ModifierType` [INFO] [stdout] --> src/main.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | use gdk::{EventKey, ModifierType}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/main.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | self.buffer.connect_insert_text(move |buf: &TextBuffer, [INFO] [stdout] | _____________________^^^^^^^^^^^^^^^^^^^_- [INFO] [stdout] | | | [INFO] [stdout] | | expected signature of `for<'r, 's, 't0> fn(&'r TextBuffer, &'s mut TextIter, &'t0 str) -> _` [INFO] [stdout] 71 | | iter: &TextIter, [INFO] [stdout] 72 | | new_text: &str| { [INFO] [stdout] 73 | | if ua_ptr3.get() == false { [INFO] [stdout] ... | [INFO] [stdout] 87 | | }); [INFO] [stdout] 88 | | }); [INFO] [stdout] | |_________- found signature of `for<'r, 's, 't0> fn(&'r TextBuffer, &'s TextIter, &'t0 str) -> _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/main.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | self.buffer.connect_insert_text(move |buf: &TextBuffer, [INFO] [stdout] | _____________________^^^^^^^^^^^^^^^^^^^_- [INFO] [stdout] | | | [INFO] [stdout] | | expected signature of `for<'r, 's, 't0> fn(&'r TextBuffer, &'s mut TextIter, &'t0 str) -> _` [INFO] [stdout] 71 | | iter: &TextIter, [INFO] [stdout] 72 | | new_text: &str| { [INFO] [stdout] 73 | | if ua_ptr3.get() == false { [INFO] [stdout] ... | [INFO] [stdout] 87 | | }); [INFO] [stdout] 88 | | }); [INFO] [stdout] | |_________- found signature of `for<'r, 's, 't0> fn(&'r TextBuffer, &'s TextIter, &'t0 str) -> _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 103 | text: text, [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found struct `glib::gstring::GString` [INFO] [stdout] | help: try using a conversion method: `text.to_string()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/main.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | .connect_delete_range(move |buf: &TextBuffer, start: &TextIter, end: &TextIter| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ --------------------------------------------------------- found signature of `for<'r, 's, 't0> fn(&'r TextBuffer, &'s TextIter, &'t0 TextIter) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `for<'r, 's, 't0> fn(&'r TextBuffer, &'s mut TextIter, &'t0 mut TextIter) -> _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_from_icon_name` found for struct `gtk::Button` in the current scope [INFO] [stdout] --> src/main.rs:181:31 [INFO] [stdout] | [INFO] [stdout] 181 | let undo_button = Button::new_from_icon_name("edit-undo", 24); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `gtk::Button` [INFO] [stdout] | help: there is an associated function with a similar name: `from_icon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_from_icon_name` found for struct `gtk::Button` in the current scope [INFO] [stdout] --> src/main.rs:186:31 [INFO] [stdout] | [INFO] [stdout] 186 | let redo_button = Button::new_from_icon_name("edit-redo", 24); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `gtk::Button` [INFO] [stdout] | help: there is an associated function with a similar name: `from_icon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_from_icon_name` found for struct `Image` in the current scope [INFO] [stdout] --> src/main.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | let gears_icon = Image::new_from_icon_name("open-menu", 24); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `Image` [INFO] [stdout] | help: there is an associated function with a similar name: `from_icon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_from_icon_name` found for struct `Image` in the current scope [INFO] [stdout] --> src/main.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | let open_icon = Image::new_from_icon_name("document-open", 24); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `Image` [INFO] [stdout] | help: there is an associated function with a similar name: `from_icon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:199:32 [INFO] [stdout] | [INFO] [stdout] 199 | file_menu_button.set_image(&gears_icon); [INFO] [stdout] | ^^^^^^^^^^^ expected enum `Option`, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&_>` [INFO] [stdout] found reference `&_` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 199 | file_menu_button.set_image(Some(&gears_icon)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 199 | file_menu_button.set_image(gears_icon); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0599, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `penna` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 103 | text: text, [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found struct `glib::gstring::GString` [INFO] [stdout] | help: try using a conversion method: `text.to_string()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/main.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | .connect_delete_range(move |buf: &TextBuffer, start: &TextIter, end: &TextIter| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ --------------------------------------------------------- found signature of `for<'r, 's, 't0> fn(&'r TextBuffer, &'s TextIter, &'t0 TextIter) -> _` [INFO] [stdout] | | [INFO] [stdout] | expected signature of `for<'r, 's, 't0> fn(&'r TextBuffer, &'s mut TextIter, &'t0 mut TextIter) -> _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_from_icon_name` found for struct `gtk::Button` in the current scope [INFO] [stdout] --> src/main.rs:181:31 [INFO] [stdout] | [INFO] [stdout] 181 | let undo_button = Button::new_from_icon_name("edit-undo", 24); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `gtk::Button` [INFO] [stdout] | help: there is an associated function with a similar name: `from_icon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_from_icon_name` found for struct `gtk::Button` in the current scope [INFO] [stdout] --> src/main.rs:186:31 [INFO] [stdout] | [INFO] [stdout] 186 | let redo_button = Button::new_from_icon_name("edit-redo", 24); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `gtk::Button` [INFO] [stdout] | help: there is an associated function with a similar name: `from_icon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_from_icon_name` found for struct `Image` in the current scope [INFO] [stdout] --> src/main.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | let gears_icon = Image::new_from_icon_name("open-menu", 24); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `Image` [INFO] [stdout] | help: there is an associated function with a similar name: `from_icon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_from_icon_name` found for struct `Image` in the current scope [INFO] [stdout] --> src/main.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | let open_icon = Image::new_from_icon_name("document-open", 24); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `Image` [INFO] [stdout] | help: there is an associated function with a similar name: `from_icon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:199:32 [INFO] [stdout] | [INFO] [stdout] 199 | file_menu_button.set_image(&gears_icon); [INFO] [stdout] | ^^^^^^^^^^^ expected enum `Option`, found reference [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&_>` [INFO] [stdout] found reference `&_` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 199 | file_menu_button.set_image(Some(&gears_icon)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 199 | file_menu_button.set_image(gears_icon); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0599, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "77239d01a422e44aa9a5cbefccb9d229bf95be11601ad318997df92e896fd688", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77239d01a422e44aa9a5cbefccb9d229bf95be11601ad318997df92e896fd688", kill_on_drop: false }` [INFO] [stdout] 77239d01a422e44aa9a5cbefccb9d229bf95be11601ad318997df92e896fd688