[INFO] cloning repository https://github.com/chapayev0/object-detection-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chapayev0/object-detection-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchapayev0%2Fobject-detection-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchapayev0%2Fobject-detection-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 48510e063af81894198122784c30319d4525c827 [INFO] checking chapayev0/object-detection-rust/48510e063af81894198122784c30319d4525c827 against master#d2eadb7a94ef8c9deb5137695df33cd1fc5aee92 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchapayev0%2Fobject-detection-rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chapayev0/object-detection-rust on toolchain d2eadb7a94ef8c9deb5137695df33cd1fc5aee92 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/chapayev0/object-detection-rust [INFO] finished tweaking git repo https://github.com/chapayev0/object-detection-rust [INFO] tweaked toml for git repo https://github.com/chapayev0/object-detection-rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/chapayev0/object-detection-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toml v0.7.6 [INFO] [stderr] Downloaded system-deps v6.1.1 [INFO] [stderr] Downloaded gtk3-macros v0.17.1 [INFO] [stderr] Downloaded cairo-sys-rs v0.17.10 [INFO] [stderr] Downloaded atk-sys v0.17.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.17.10 [INFO] [stderr] Downloaded cairo-rs v0.17.10 [INFO] [stderr] Downloaded glib-macros v0.18.0 [INFO] [stderr] Downloaded gdk v0.17.1 [INFO] [stderr] Downloaded gtk-sys v0.17.0 [INFO] [stderr] Downloaded winnow v0.5.7 [INFO] [stderr] Downloaded gio-sys v0.17.10 [INFO] [stderr] Downloaded gdk-sys v0.17.0 [INFO] [stderr] Downloaded glib-sys v0.17.10 [INFO] [stderr] Downloaded atk v0.17.1 [INFO] [stderr] Downloaded gio v0.18.1 [INFO] [stderr] Downloaded gio v0.17.10 [INFO] [stderr] Downloaded glib v0.18.1 [INFO] [stderr] Downloaded glib v0.17.10 [INFO] [stderr] Downloaded glib-macros v0.17.10 [INFO] [stderr] Downloaded pango v0.17.10 [INFO] [stderr] Downloaded cfg-expr v0.15.4 [INFO] [stderr] Downloaded pango-sys v0.17.10 [INFO] [stderr] Downloaded gdk-pixbuf-sys v0.17.10 [INFO] [stderr] Downloaded thiserror-impl v1.0.44 [INFO] [stderr] Downloaded gtk v0.17.1 [INFO] [stderr] Downloaded thiserror v1.0.44 [INFO] [stderr] Downloaded gobject-sys v0.17.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f9515d8c6f381f69d6e69f9b501809e74616f8d68e6c356acef134d9dc91442 [INFO] running `Command { std: "docker" "start" "-a" "1f9515d8c6f381f69d6e69f9b501809e74616f8d68e6c356acef134d9dc91442", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f9515d8c6f381f69d6e69f9b501809e74616f8d68e6c356acef134d9dc91442", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f9515d8c6f381f69d6e69f9b501809e74616f8d68e6c356acef134d9dc91442", kill_on_drop: false }` [INFO] [stdout] 1f9515d8c6f381f69d6e69f9b501809e74616f8d68e6c356acef134d9dc91442 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29a2d75eaf00e7cbd63bf96e6524919fd196c319a776fd534804659446896cf4 [INFO] running `Command { std: "docker" "start" "-a" "29a2d75eaf00e7cbd63bf96e6524919fd196c319a776fd534804659446896cf4", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling winnow v0.5.7 [INFO] [stderr] Compiling target-lexicon v0.12.11 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling smallvec v1.11.0 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Checking futures-channel v0.3.28 [INFO] [stderr] Compiling semver v1.0.18 [INFO] [stderr] Compiling gio v0.17.10 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling gio v0.18.1 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Compiling gtk v0.17.1 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling cfg-expr v0.15.4 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling field-offset v0.3.6 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_spanned v0.6.3 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling toml_edit v0.19.14 [INFO] [stderr] Compiling toml v0.7.6 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling glib-macros v0.17.10 [INFO] [stderr] Compiling glib-macros v0.18.0 [INFO] [stderr] Compiling gtk3-macros v0.17.1 [INFO] [stderr] Compiling system-deps v6.1.1 [INFO] [stderr] Compiling glib-sys v0.17.10 [INFO] [stderr] Compiling gobject-sys v0.17.10 [INFO] [stderr] Compiling gio-sys v0.17.10 [INFO] [stderr] Compiling atk-sys v0.17.0 [INFO] [stderr] Compiling gdk-sys v0.17.0 [INFO] [stderr] Compiling cairo-sys-rs v0.17.10 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.17.10 [INFO] [stderr] Compiling pango-sys v0.17.10 [INFO] [stderr] Compiling glib-sys v0.18.1 [INFO] [stderr] Compiling gobject-sys v0.18.0 [INFO] [stderr] Compiling gtk-sys v0.17.0 [INFO] [stderr] Compiling gio-sys v0.18.1 [INFO] [stderr] Checking glib v0.18.1 [INFO] [stderr] Checking glib v0.17.10 [INFO] [stderr] Checking cairo-rs v0.17.10 [INFO] [stderr] Checking atk v0.17.1 [INFO] [stderr] Checking gdk-pixbuf v0.17.10 [INFO] [stderr] Checking pango v0.17.10 [INFO] [stderr] Checking gdk v0.17.1 [INFO] [stderr] Checking object-detection v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/main.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | let image_data: Vec = "/image/img1.jpg" [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 44 | let model_path = "/model/object_model.pb"; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/main.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | let image_data: Vec = "/image/img1.jpg" [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 44 | let model_path = "/model/object_model.pb"; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tf` [INFO] [stdout] --> src/main.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | let mut tf = tf::Session::new()?; [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `tf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tf`, use `cargo add tf` to add it to your `Cargo.toml` [INFO] [stdout] help: there is an enum variant `gio::BusType::Session`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 9 - let mut tf = tf::Session::new()?; [INFO] [stdout] 9 + let mut tf = gio::BusType::new()?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tf` [INFO] [stdout] --> src/main.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let graph = tf::Graph::new(); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `tf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tf`, use `cargo add tf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tf` [INFO] [stdout] --> src/main.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | let mut args = tf::SessionRunArgs::new(); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `tf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tf`, use `cargo add tf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TextBuffer` [INFO] [stdout] --> src/main.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use gtk::{Builder, TextView, TextBuffer}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tf` [INFO] [stdout] --> src/main.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | let mut tf = tf::Session::new()?; [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `tf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tf`, use `cargo add tf` to add it to your `Cargo.toml` [INFO] [stdout] help: there is an enum variant `gio::BusType::Session`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 9 - let mut tf = tf::Session::new()?; [INFO] [stdout] 9 + let mut tf = gio::BusType::new()?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tf` [INFO] [stdout] --> src/main.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let graph = tf::Graph::new(); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `tf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tf`, use `cargo add tf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tf` [INFO] [stdout] --> src/main.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | let mut args = tf::SessionRunArgs::new(); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `tf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tf`, use `cargo add tf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TextBuffer` [INFO] [stdout] --> src/main.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use gtk::{Builder, TextView, TextBuffer}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:43:32 [INFO] [stdout] | [INFO] [stdout] 43 | let image_data: Vec = "/image/img1.jpg" [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^ expected `Vec`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:43:32 [INFO] [stdout] | [INFO] [stdout] 43 | let image_data: Vec = "/image/img1.jpg" [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^ expected `Vec`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found reference `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:46:77 [INFO] [stdout] | [INFO] [stdout] 35 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 46 | let detection_results = perform_object_detection(image_data, model_path)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 35 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 36 | // Initialize GTK [INFO] [stdout] ... [INFO] [stdout] 72 | gtk::main(); [INFO] [stdout] 73 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:46:77 [INFO] [stdout] | [INFO] [stdout] 35 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 46 | let detection_results = perform_object_detection(image_data, model_path)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 35 ~ fn main() -> Result<(), Box> { [INFO] [stdout] 36 | // Initialize GTK [INFO] [stdout] ... [INFO] [stdout] 72 | gtk::main(); [INFO] [stdout] 73 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `object-detection` (bin "object-detection" test) due to 6 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `object-detection` (bin "object-detection") due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "29a2d75eaf00e7cbd63bf96e6524919fd196c319a776fd534804659446896cf4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29a2d75eaf00e7cbd63bf96e6524919fd196c319a776fd534804659446896cf4", kill_on_drop: false }` [INFO] [stdout] 29a2d75eaf00e7cbd63bf96e6524919fd196c319a776fd534804659446896cf4