[INFO] cloning repository https://github.com/Saeris/rust-potrace [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Saeris/rust-potrace" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] da5251ae3f4ec03fe8d03e3422bbebe521ea3529 [INFO] testing Saeris/rust-potrace against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Saeris/rust-potrace on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Saeris/rust-potrace [INFO] finished tweaking git repo https://github.com/Saeris/rust-potrace [INFO] tweaked toml for git repo https://github.com/Saeris/rust-potrace written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/Saeris/rust-potrace already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74d5edc9524cac286654a9cd610822835a3256b898a049a071a1a33bb5558929 [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" "74d5edc9524cac286654a9cd610822835a3256b898a049a071a1a33bb5558929", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74d5edc9524cac286654a9cd610822835a3256b898a049a071a1a33bb5558929", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74d5edc9524cac286654a9cd610822835a3256b898a049a071a1a33bb5558929", kill_on_drop: false }` [INFO] [stdout] 74d5edc9524cac286654a9cd610822835a3256b898a049a071a1a33bb5558929 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 11b112fd8d147262ab3bfdda165f77270668965026b9caa72f9094169a1a9d9a [INFO] running `Command { std: "docker" "start" "-a" "11b112fd8d147262ab3bfdda165f77270668965026b9caa72f9094169a1a9d9a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling syn v1.0.41 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.68 [INFO] [stderr] Compiling rayon-core v1.8.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling event-listener v2.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.68 [INFO] [stderr] Compiling bytemuck v1.4.1 [INFO] [stderr] Compiling once_cell v1.4.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-bigint v0.3.0 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling rayon v1.4.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling async-mutex v1.3.0 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling tiff v0.5.0 [INFO] [stderr] Compiling crossbeam-channel v0.4.4 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling png v0.16.7 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling num-complex v0.3.0 [INFO] [stderr] Compiling num v0.3.0 [INFO] [stderr] Compiling jpeg-decoder v0.1.20 [INFO] [stderr] Compiling image v0.23.9 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.68 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.68 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling cached_proc_macro v0.4.0 [INFO] [stderr] Compiling cached v0.19.0 [INFO] [stderr] Compiling rust-potrace v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/types/histogram.rs:447:13 [INFO] [stdout] | [INFO] [stdout] 446 | True => (all_pixel_values_combined / pixels_total) as u8, [INFO] [stdout] | ---- matches any value [INFO] [stdout] 447 | False => 0u8, [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/types/histogram.rs:476:25 [INFO] [stdout] | [INFO] [stdout] 475 | True => (sum_of_deviations as f64 / pixels_total as f64).sqrt(), [INFO] [stdout] | ---- matches any value [INFO] [stdout] 476 | False => 0f64, [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/types/histogram.rs:484:25 [INFO] [stdout] | [INFO] [stdout] 483 | True => pixels_total / (max - min) as u32, [INFO] [stdout] | ---- matches any value [INFO] [stdout] 484 | False => 0, [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/types/histogram.rs:488:25 [INFO] [stdout] | [INFO] [stdout] 487 | True => pixels_total / unique_values, [INFO] [stdout] | ---- matches any value [INFO] [stdout] 488 | False => 0, [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/posterizer.rs:469:21 [INFO] [stdout] | [INFO] [stdout] 469 | _ => -1, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `colorStops` is never read [INFO] [stdout] --> src/posterizer.rs:274:17 [INFO] [stdout] | [INFO] [stdout] 274 | let mut colorStops: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `new_alpha` is never read [INFO] [stdout] --> src/types/curve.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut new_alpha = 0f64; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `color_stops` is assigned to, but never used [INFO] [stdout] --> src/types/histogram.rs:241:17 [INFO] [stdout] | [INFO] [stdout] 241 | let mut color_stops = vec![]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_color_stops` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color_stops` is never read [INFO] [stdout] --> src/types/histogram.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | color_stops = indexes.clone(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `True` [INFO] [stdout] --> src/types/histogram.rs:446:13 [INFO] [stdout] | [INFO] [stdout] 446 | True => (all_pixel_values_combined / pixels_total) as u8, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_True` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `False` [INFO] [stdout] --> src/types/histogram.rs:447:13 [INFO] [stdout] | [INFO] [stdout] 447 | False => 0u8, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_False` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `True` [INFO] [stdout] --> src/types/histogram.rs:475:25 [INFO] [stdout] | [INFO] [stdout] 475 | True => (sum_of_deviations as f64 / pixels_total as f64).sqrt(), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_True` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `False` [INFO] [stdout] --> src/types/histogram.rs:476:25 [INFO] [stdout] | [INFO] [stdout] 476 | False => 0f64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_False` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `True` [INFO] [stdout] --> src/types/histogram.rs:483:25 [INFO] [stdout] | [INFO] [stdout] 483 | True => pixels_total / (max - min) as u32, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_True` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `False` [INFO] [stdout] --> src/types/histogram.rs:484:25 [INFO] [stdout] | [INFO] [stdout] 484 | False => 0, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_False` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `True` [INFO] [stdout] --> src/types/histogram.rs:487:25 [INFO] [stdout] | [INFO] [stdout] 487 | True => pixels_total / unique_values, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_True` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `False` [INFO] [stdout] --> src/types/histogram.rs:488:25 [INFO] [stdout] | [INFO] [stdout] 488 | False => 0, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_False` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/types/path.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | let mut j = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/types/bitmap.rs:285:36 [INFO] [stdout] | [INFO] [stdout] 284 | ... if let Some(last) = self.data.last_mut() { [INFO] [stdout] | -------------------- mutable borrow occurs here [INFO] [stdout] 285 | ... if self.get_value_at(j as f64, min_y).is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 288 | ... *last = 1 [INFO] [stdout] | --------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/histogram.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | let mut amount = amt; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/histogram.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut max = lvl_max; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/histogram.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let mut starting_point = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/histogram.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | let mut previous_variance = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/histogram.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let mut previous_depth = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/types/histogram.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | let mut depth = previous_depth + 1; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/potrace.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let slice = decode(base64).unwrap().as_slice(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] 52 | let img = image::load_from_memory(slice).unwrap(); [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/potrace.rs:85:20 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn get_symbol(&self, id: &str) -> String { [INFO] [stdout] | ----- help: consider changing this to be a mutable reference: `&mut self` [INFO] [stdout] ... [INFO] [stdout] 85 | let path = self.get_path_tag(None, None, None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `path` [INFO] [stdout] --> src/potrace.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 203 | let path = blackMap.find_path(point, self.params.turnPolicy.clone()); [INFO] [stdout] | ---- move occurs because `path` has type `types::path::Path`, which does not implement the `Copy` trait [INFO] [stdout] 204 | blackMap.xor_path(path); [INFO] [stdout] | ---- value moved here [INFO] [stdout] 205 | [INFO] [stdout] 206 | if path.area > self.params.turdSize as f64 { [INFO] [stdout] | ^^^^^^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0502, E0596, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-potrace` due to 5 previous errors; 24 warnings emitted [INFO] running `Command { std: "docker" "inspect" "11b112fd8d147262ab3bfdda165f77270668965026b9caa72f9094169a1a9d9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11b112fd8d147262ab3bfdda165f77270668965026b9caa72f9094169a1a9d9a", kill_on_drop: false }` [INFO] [stdout] 11b112fd8d147262ab3bfdda165f77270668965026b9caa72f9094169a1a9d9a