[INFO] fetching crate robot36-encoder 0.1.1... [INFO] checking robot36-encoder-0.1.1 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate robot36-encoder 0.1.1 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate robot36-encoder 0.1.1 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate robot36-encoder 0.1.1 [INFO] finished tweaking crates.io crate robot36-encoder 0.1.1 [INFO] tweaked toml for crates.io crate robot36-encoder 0.1.1 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 083f77b68538b5bef1d62490a72f81cd255d747fc57d351cb6dbf0ecdb1dbd76 [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" "083f77b68538b5bef1d62490a72f81cd255d747fc57d351cb6dbf0ecdb1dbd76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "083f77b68538b5bef1d62490a72f81cd255d747fc57d351cb6dbf0ecdb1dbd76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "083f77b68538b5bef1d62490a72f81cd255d747fc57d351cb6dbf0ecdb1dbd76", kill_on_drop: false }` [INFO] [stdout] 083f77b68538b5bef1d62490a72f81cd255d747fc57d351cb6dbf0ecdb1dbd76 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--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] 7f191c245c5e2b461e16656a1264fd8cf68e8e211e27ba2a8d8800ad49e6f089 [INFO] running `Command { std: "docker" "start" "-a" "7f191c245c5e2b461e16656a1264fd8cf68e8e211e27ba2a8d8800ad49e6f089", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking crossbeam-epoch v0.9.3 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking rayon-core v1.9.0 [INFO] [stderr] Checking png v0.14.1 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.2.2 [INFO] [stderr] Checking image v0.21.3 [INFO] [stderr] Checking robot36-encoder v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `samples` [INFO] [stdout] --> src/lib.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let samples = encoder.encode(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_samples` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `encoder::Encoder` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use encoder::Encoder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `y_rgb` [INFO] [stdout] --> src/encoder/rgb2yuv.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn y_rgb(r: u8, g: u8, b: u8) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `v_rgb` [INFO] [stdout] --> src/encoder/rgb2yuv.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn v_rgb(r: u8, g: u8, b: u8) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `u_rgb` [INFO] [stdout] --> src/encoder/rgb2yuv.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn u_rgb(r: u8, g: u8, b: u8) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `yuv_clamp` [INFO] [stdout] --> src/encoder/rgb2yuv.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn yuv_clamp(x: f32) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Encoder` [INFO] [stdout] --> src/encoder/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Encoder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SYNC_PORCH_SECS` [INFO] [stdout] --> src/encoder/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | const SYNC_PORCH_SECS: f32 = 0.003; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PORCH_SECS` [INFO] [stdout] --> src/encoder/mod.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | const PORCH_SECS: f32 = 0.0015; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `Y_SECS` [INFO] [stdout] --> src/encoder/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const Y_SECS: f32 = 0.088; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UV_SECS` [INFO] [stdout] --> src/encoder/mod.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | const UV_SECS: f32 = 0.044; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HORIZONTAL_SYNC_SECS` [INFO] [stdout] --> src/encoder/mod.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | const HORIZONTAL_SYNC_SECS: f32 = 0.009; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEPARATOR_SECS` [INFO] [stdout] --> src/encoder/mod.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const SEPARATOR_SECS: f32 = 0.0045; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IMAGE_WIDTH` [INFO] [stdout] --> src/encoder/mod.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const IMAGE_WIDTH: u32 = 320; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `IMAGE_HEIGHT` [INFO] [stdout] --> src/encoder/mod.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | const IMAGE_HEIGHT: u32 = 240; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/encoder/mod.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(image: DynamicImage, rate: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `encode` [INFO] [stdout] --> src/encoder/mod.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn encode(self: &mut Self) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_codificated_image` [INFO] [stdout] --> src/encoder/mod.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn add_codificated_image(self: &mut Self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_signal` [INFO] [stdout] --> src/encoder/mod.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | fn add_signal(self: &mut Self, number_of_ticks: u32, frequency: f32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_sample` [INFO] [stdout] --> src/encoder/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | fn add_sample(self: &mut Self, value: &f32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_freq` [INFO] [stdout] --> src/encoder/mod.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn add_freq(self: &mut Self, value: &f32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_y_scan` [INFO] [stdout] --> src/encoder/mod.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | fn add_y_scan(self: &mut Self, y: &u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_v_scan` [INFO] [stdout] --> src/encoder/mod.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn add_v_scan(self: &mut Self, y: &u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_u_scan` [INFO] [stdout] --> src/encoder/mod.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | fn add_u_scan(self: &mut Self, y: &u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_vis_header` [INFO] [stdout] --> src/encoder/mod.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | fn add_vis_header(self: &mut Self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fclampf` [INFO] [stdout] --> src/encoder/mod.rs:161:8 [INFO] [stdout] | [INFO] [stdout] 161 | fn fclampf(self: &Self, x: f32, min: f32, max: f32) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: crate name using dashes are not valid in `extern crate` statements [INFO] [stdout] --> examples/encode-cli.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate robot36-encoder; [INFO] [stdout] | ^^^^^^^^^^^^^^^ dash-separated idents are not valid [INFO] [stdout] | [INFO] [stdout] help: if the original crate name uses dashes you need to use underscores in the code [INFO] [stdout] | [INFO] [stdout] 1 | extern crate robot36_encoder; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `encoder` [INFO] [stdout] --> examples/encode-cli.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use encoder::Encoder; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `encoder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `robot36-encoder` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "7f191c245c5e2b461e16656a1264fd8cf68e8e211e27ba2a8d8800ad49e6f089", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f191c245c5e2b461e16656a1264fd8cf68e8e211e27ba2a8d8800ad49e6f089", kill_on_drop: false }` [INFO] [stdout] 7f191c245c5e2b461e16656a1264fd8cf68e8e211e27ba2a8d8800ad49e6f089