[INFO] cloning repository https://github.com/kmkiwtk/TranslateOnTime [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kmkiwtk/TranslateOnTime" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmkiwtk%2FTranslateOnTime", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmkiwtk%2FTranslateOnTime'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c44935eea3ec019c562e5c0ce5a81eb1a993ae2a [INFO] checking kmkiwtk/TranslateOnTime/c44935eea3ec019c562e5c0ce5a81eb1a993ae2a against master#46424fb5054f211ec836c5c03159f92e46bb35ac for pr-139042 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmkiwtk%2FTranslateOnTime" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kmkiwtk/TranslateOnTime on toolchain 46424fb5054f211ec836c5c03159f92e46bb35ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kmkiwtk/TranslateOnTime [INFO] finished tweaking git repo https://github.com/kmkiwtk/TranslateOnTime [INFO] tweaked toml for git repo https://github.com/kmkiwtk/TranslateOnTime written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kmkiwtk/TranslateOnTime 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" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clang-sys v1.7.0 [INFO] [stderr] Downloaded libloading v0.8.3 [INFO] [stderr] Downloaded either v1.10.0 [INFO] [stderr] Downloaded interpolate_name v0.2.4 [INFO] [stderr] Downloaded file-id v0.1.0 [INFO] [stderr] Downloaded loop9 v0.1.5 [INFO] [stderr] Downloaded kqueue-sys v1.0.4 [INFO] [stderr] Downloaded filetime v0.2.23 [INFO] [stderr] Downloaded notify-debouncer-full v0.1.0 [INFO] [stderr] Downloaded winapi-util v0.1.6 [INFO] [stderr] Downloaded notify v6.1.1 [INFO] [stderr] Downloaded imgref v1.10.1 [INFO] [stderr] Downloaded bumpalo v3.15.4 [INFO] [stderr] Downloaded toml_edit v0.22.9 [INFO] [stderr] Downloaded anyhow v1.0.81 [INFO] [stderr] Downloaded libfuzzer-sys v0.4.7 [INFO] [stderr] Downloaded winnow v0.6.5 [INFO] [stderr] Downloaded rayon v1.9.0 [INFO] [stderr] Downloaded bindgen v0.64.0 [INFO] [stderr] Downloaded cfg-expr v0.15.7 [INFO] [stderr] Downloaded toml v0.8.12 [INFO] [stderr] Downloaded exr v1.72.0 [INFO] [stderr] Downloaded syn v2.0.53 [INFO] [stderr] Downloaded weezl v0.1.8 [INFO] [stderr] Downloaded half v2.4.0 [INFO] [stderr] Downloaded image-webp v0.1.1 [INFO] [stderr] Downloaded av1-grain v0.2.3 [INFO] [stderr] Downloaded bitstream-io v2.2.0 [INFO] [stderr] Downloaded thiserror v1.0.58 [INFO] [stderr] Downloaded rustix v0.38.32 [INFO] [stderr] Downloaded tesseract-sys v0.6.1 [INFO] [stderr] Downloaded hotwatch v0.5.0 [INFO] [stderr] Downloaded gif v0.13.1 [INFO] [stderr] Downloaded built v0.7.1 [INFO] [stderr] Downloaded arbitrary v1.3.2 [INFO] [stderr] Downloaded target-lexicon v0.12.14 [INFO] [stderr] Downloaded serde_spanned v0.6.5 [INFO] [stderr] Downloaded profiling v1.0.15 [INFO] [stderr] Downloaded thiserror-impl v1.0.58 [INFO] [stderr] Downloaded ravif v0.11.5 [INFO] [stderr] Downloaded rgb v0.8.37 [INFO] [stderr] Downloaded zune-core v0.4.12 [INFO] [stderr] Downloaded zune-jpeg v0.4.11 [INFO] [stderr] Downloaded leptonica-sys v0.4.7 [INFO] [stderr] Downloaded kqueue v1.0.8 [INFO] [stderr] Downloaded aligned-vec v0.5.0 [INFO] [stderr] Downloaded v_frame v0.3.8 [INFO] [stderr] Downloaded arg_enum_proc_macro v0.3.4 [INFO] [stderr] Downloaded jpeg-decoder v0.3.1 [INFO] [stderr] Downloaded profiling-procmacros v1.0.15 [INFO] [stderr] Downloaded tiff v0.9.1 [INFO] [stderr] Downloaded rav1e v0.7.1 [INFO] [stderr] Downloaded image v0.25.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ad08e943905202c1a84c58a39964bdc90aac253bb6a1dce13bec66497b77bef [INFO] running `Command { std: "docker" "start" "-a" "5ad08e943905202c1a84c58a39964bdc90aac253bb6a1dce13bec66497b77bef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ad08e943905202c1a84c58a39964bdc90aac253bb6a1dce13bec66497b77bef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ad08e943905202c1a84c58a39964bdc90aac253bb6a1dce13bec66497b77bef", kill_on_drop: false }` [INFO] [stdout] 5ad08e943905202c1a84c58a39964bdc90aac253bb6a1dce13bec66497b77bef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1732b60ac80eede9238d644b1c307c4a6fb743ec93b898e77946ba31d9e33d26 [INFO] running `Command { std: "docker" "start" "-a" "1732b60ac80eede9238d644b1c307c4a6fb743ec93b898e77946ba31d9e33d26", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling libloading v0.8.3 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling bindgen v0.64.0 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling clang-sys v1.7.0 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling built v0.7.1 [INFO] [stderr] Checking aligned-vec v0.5.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking bytemuck v1.15.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking crossbeam-channel v0.5.12 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking v_frame v0.3.8 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking filetime v0.2.23 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking imgref v1.10.1 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking bitstream-io v2.2.0 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rgb v0.8.37 [INFO] [stderr] Checking notify v6.1.1 [INFO] [stderr] Checking avif-serialize v0.8.1 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking half v2.4.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking file-id v0.1.0 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking notify-debouncer-full v0.1.0 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Checking zune-jpeg v0.4.11 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking hotwatch v0.5.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking av1-grain v0.2.3 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking profiling v1.0.15 [INFO] [stderr] Checking image-webp v0.1.1 [INFO] [stderr] Compiling leptonica-sys v0.4.7 [INFO] [stderr] Compiling tesseract-sys v0.6.1 [INFO] [stderr] Checking ravif v0.11.5 [INFO] [stderr] Checking image v0.25.0 [INFO] [stderr] Checking TranslateOnTime v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `src/font.ttf`: No such file or directory (os error 2) [INFO] [stdout] --> src/main.rs:48:44 [INFO] [stdout] | [INFO] [stdout] 48 | let font = image::Font::try_from_bytes(include_bytes!("font.ttf")).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Font` in `image` [INFO] [stdout] --> src/main.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | let font = image::Font::try_from_bytes(include_bytes!("font.ttf")).unwrap(); [INFO] [stdout] | ^^^^ could not find `Font` in `image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Scale` in `image` [INFO] [stdout] --> src/main.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | image::Scale::uniform(19.0), [INFO] [stdout] | ^^^^^ could not find `Scale` in `image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `draw_text_mut` in crate `image` [INFO] [stdout] --> src/main.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | image::draw_text_mut( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/main.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use image::{DynamicImage, GenericImageView, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CStr` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ffi::CStr; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CString` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ffi::CString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tesseract_sys::*` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tesseract_sys::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/font.ttf`: No such file or directory (os error 2) [INFO] [stdout] --> src/main.rs:48:44 [INFO] [stdout] | [INFO] [stdout] 48 | let font = image::Font::try_from_bytes(include_bytes!("font.ttf")).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `new_rgba7` found for enum `DynamicImage` in the current scope [INFO] [stdout] --> src/main.rs:42:33 [INFO] [stdout] | [INFO] [stdout] 42 | let mut img = DynamicImage::new_rgba7(100, 50); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `DynamicImage` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `DynamicImage` consider using one of the following associated functions: [INFO] [stdout] DynamicImage::new [INFO] [stdout] DynamicImage::new_luma8 [INFO] [stdout] DynamicImage::new_luma_a8 [INFO] [stdout] DynamicImage::new_rgb8 [INFO] [stdout] and 8 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.0/src/dynimage.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn new(w: u32, h: u32, color: color::ColorType) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn new_luma8(w: u32, h: u32) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn new_luma_a8(w: u32, h: u32) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn new_rgb8(w: u32, h: u32) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `new_rgba8` with a similar name [INFO] [stdout] | [INFO] [stdout] 42 - let mut img = DynamicImage::new_rgba7(100, 50); [INFO] [stdout] 42 + let mut img = DynamicImage::new_rgba8(100, 50); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | if let Ok(event) = event { [INFO] [stdout] | ^^^^^^^^^ ----- this expression has type `Event` [INFO] [stdout] | | [INFO] [stdout] | expected `Event`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Event` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Write` found for struct `Event` in the current scope [INFO] [stdout] --> src/main.rs:67:37 [INFO] [stdout] | [INFO] [stdout] 67 | if let hotwatch::Event::Write(_path) = event { [INFO] [stdout] | ^^^^^ associated item not found in `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Font` in `image` [INFO] [stdout] --> src/main.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | let font = image::Font::try_from_bytes(include_bytes!("font.ttf")).unwrap(); [INFO] [stdout] | ^^^^ could not find `Font` in `image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image_path` [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | fn ocr_text(image_path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_image_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/main.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | fn translate_text(text: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Scale` in `image` [INFO] [stdout] --> src/main.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | image::Scale::uniform(19.0), [INFO] [stdout] | ^^^^^ could not find `Scale` in `image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `draw_text_mut` in crate `image` [INFO] [stdout] --> src/main.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | image::draw_text_mut( [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericImageView` [INFO] [stdout] --> src/main.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use image::{DynamicImage, GenericImageView, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CStr` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ffi::CStr; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ffi::CString` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ffi::CString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tesseract_sys::*` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use tesseract_sys::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `TranslateOnTime` (bin "TranslateOnTime") due to 7 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no variant or associated item named `new_rgba7` found for enum `DynamicImage` in the current scope [INFO] [stdout] --> src/main.rs:42:33 [INFO] [stdout] | [INFO] [stdout] 42 | let mut img = DynamicImage::new_rgba7(100, 50); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `DynamicImage` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `DynamicImage` consider using one of the following associated functions: [INFO] [stdout] DynamicImage::new [INFO] [stdout] DynamicImage::new_luma8 [INFO] [stdout] DynamicImage::new_luma_a8 [INFO] [stdout] DynamicImage::new_rgb8 [INFO] [stdout] and 8 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.25.0/src/dynimage.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn new(w: u32, h: u32, color: color::ColorType) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn new_luma8(w: u32, h: u32) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn new_luma_a8(w: u32, h: u32) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn new_rgb8(w: u32, h: u32) -> DynamicImage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `new_rgba8` with a similar name [INFO] [stdout] | [INFO] [stdout] 42 - let mut img = DynamicImage::new_rgba7(100, 50); [INFO] [stdout] 42 + let mut img = DynamicImage::new_rgba8(100, 50); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | if let Ok(event) = event { [INFO] [stdout] | ^^^^^^^^^ ----- this expression has type `Event` [INFO] [stdout] | | [INFO] [stdout] | expected `Event`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Event` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Write` found for struct `Event` in the current scope [INFO] [stdout] --> src/main.rs:67:37 [INFO] [stdout] | [INFO] [stdout] 67 | if let hotwatch::Event::Write(_path) = event { [INFO] [stdout] | ^^^^^ associated item not found in `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `image_path` [INFO] [stdout] --> src/main.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | fn ocr_text(image_path: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_image_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/main.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 91 | fn translate_text(text: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `TranslateOnTime` (bin "TranslateOnTime" test) due to 7 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1732b60ac80eede9238d644b1c307c4a6fb743ec93b898e77946ba31d9e33d26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1732b60ac80eede9238d644b1c307c4a6fb743ec93b898e77946ba31d9e33d26", kill_on_drop: false }` [INFO] [stdout] 1732b60ac80eede9238d644b1c307c4a6fb743ec93b898e77946ba31d9e33d26