[INFO] cloning repository https://github.com/andrewjlm/rustrenderer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andrewjlm/rustrenderer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrewjlm%2Frustrenderer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrewjlm%2Frustrenderer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b38420b59a2be80cdb61ba20dd5317b6f2c65528 [INFO] checking andrewjlm/rustrenderer against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrewjlm%2Frustrenderer" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andrewjlm/rustrenderer 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 git repo https://github.com/andrewjlm/rustrenderer [INFO] finished tweaking git repo https://github.com/andrewjlm/rustrenderer [INFO] tweaked toml for git repo https://github.com/andrewjlm/rustrenderer written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/andrewjlm/rustrenderer already has a lockfile, it will not be regenerated [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-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] bafde31e7b0f6060c711c0ccc7e4c6701f992da8e00c50c69c1ed994762b0b62 [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" "bafde31e7b0f6060c711c0ccc7e4c6701f992da8e00c50c69c1ed994762b0b62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bafde31e7b0f6060c711c0ccc7e4c6701f992da8e00c50c69c1ed994762b0b62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bafde31e7b0f6060c711c0ccc7e4c6701f992da8e00c50c69c1ed994762b0b62", kill_on_drop: false }` [INFO] [stdout] bafde31e7b0f6060c711c0ccc7e4c6701f992da8e00c50c69c1ed994762b0b62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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] [stdout] ac331fc2087873ab55a5ec49bae523c7d9e7a42c175412209d7b509054863da0 [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" "ac331fc2087873ab55a5ec49bae523c7d9e7a42c175412209d7b509054863da0", kill_on_drop: false }` [INFO] [stderr] Checking byteorder v1.0.0 [INFO] [stderr] Checking num-integer v0.1.32 [INFO] [stderr] Checking num-complex v0.1.35 [INFO] [stderr] Checking num-bigint v0.1.35 [INFO] [stderr] Checking num-iter v0.1.32 [INFO] [stderr] Checking num-rational v0.1.35 [INFO] [stderr] Checking num v0.1.36 [INFO] [stderr] Checking rustrender v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/image.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | let mut f = try!(File::create(filename)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/image.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | try!(f.write_all(struct_to_u8_slice(&h))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/image.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | try!(f.write_all(slice_to_u8_slice(&self.data[..]))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | id_length: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | color_map_type: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | data_type_code: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:84:31 [INFO] [stdout] | [INFO] [stdout] 84 | color_map_origin: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | color_map_length: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:86:30 [INFO] [stdout] | [INFO] [stdout] 86 | color_map_depth: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:87:23 [INFO] [stdout] | [INFO] [stdout] 87 | x_origin: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | y_origin: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | width: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | height: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:91:29 [INFO] [stdout] | [INFO] [stdout] 91 | bits_per_pixel: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:92:31 [INFO] [stdout] | [INFO] [stdout] 92 | image_descriptor: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tga.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 79 | fn from_reader(r: &mut Read) -> Result { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut f = try!(File::open(filename)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:114:34 [INFO] [stdout] | [INFO] [stdout] 114 | let run_packet = try!(f.read_u8()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | try!(f.by_ref().take(bytes_per_pixel as u64).read_to_end(&mut data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | try!(f.by_ref().take(num_raw_bytes as u64).read_to_end(&mut image_buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/tga.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | let num_bytes = (height * width * bytes_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/image.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | let mut f = try!(File::create(filename)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/image.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | try!(f.write_all(struct_to_u8_slice(&h))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/image.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | try!(f.write_all(slice_to_u8_slice(&self.data[..]))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | id_length: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | color_map_type: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | data_type_code: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:84:31 [INFO] [stdout] | [INFO] [stdout] 84 | color_map_origin: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | color_map_length: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:86:30 [INFO] [stdout] | [INFO] [stdout] 86 | color_map_depth: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:87:23 [INFO] [stdout] | [INFO] [stdout] 87 | x_origin: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | y_origin: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | width: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:90:21 [INFO] [stdout] | [INFO] [stdout] 90 | height: try!(r.read_u16::()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:91:29 [INFO] [stdout] | [INFO] [stdout] 91 | bits_per_pixel: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:92:31 [INFO] [stdout] | [INFO] [stdout] 92 | image_descriptor: try!(r.read_u8()), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/tga.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 79 | fn from_reader(r: &mut Read) -> Result { [INFO] [stdout] | ^^^^ help: use `dyn`: `dyn Read` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let mut f = try!(File::open(filename)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:114:34 [INFO] [stdout] | [INFO] [stdout] 114 | let run_packet = try!(f.read_u8()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:119:21 [INFO] [stdout] | [INFO] [stdout] 119 | try!(f.by_ref().take(bytes_per_pixel as u64).read_to_end(&mut data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/tga.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | try!(f.by_ref().take(num_raw_bytes as u64).read_to_end(&mut image_buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/tga.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | let num_bytes = (height * width * bytes_per_pixel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/model.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/model.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | ... why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/geo.rs:269:47 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn draw(&self, mut image: &mut Image, color: Color, texture: &Image) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/geo.rs:269:47 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn draw(&self, mut image: &mut Image, color: Color, texture: &Image) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/geo.rs:269:24 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn draw(&self, mut image: &mut Image, color: Color, texture: &Image) { [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: constant is never used: `WHITE` [INFO] [stdout] --> src/image.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub const WHITE: Color = Color(255, 255, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RED` [INFO] [stdout] --> src/image.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub const RED: Color = Color(0, 0, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GREEN` [INFO] [stdout] --> src/image.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub const GREEN: Color = Color(0, 255, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLUE` [INFO] [stdout] --> src/image.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub const BLUE: Color = Color(255, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `line` [INFO] [stdout] --> src/image.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn line(point1: Vec2, point2: Vec2, image: &mut Image, color: Color) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geo.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_f64` [INFO] [stdout] --> src/geo.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn to_f64(self) -> Vec2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geo.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn new(x: T, y: T, z: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_i32` [INFO] [stdout] --> src/geo.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn to_i32(self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geo.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn new(coords: Vec3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `barycentric` [INFO] [stdout] --> src/geo.rs:347:8 [INFO] [stdout] | [INFO] [stdout] 347 | pub fn barycentric(t0: &Vec3, t1: &Vec3, p: &Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_color` [INFO] [stdout] --> src/tga.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn is_color(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_color_mapped` [INFO] [stdout] --> src/tga.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn is_color_mapped(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_encoded` [INFO] [stdout] --> src/tga.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn is_encoded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/geo.rs:269:24 [INFO] [stdout] | [INFO] [stdout] 269 | pub fn draw(&self, mut image: &mut Image, color: Color, texture: &Image) { [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: constant is never used: `WHITE` [INFO] [stdout] --> src/image.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub const WHITE: Color = Color(255, 255, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RED` [INFO] [stdout] --> src/image.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub const RED: Color = Color(0, 0, 255); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `GREEN` [INFO] [stdout] --> src/image.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub const GREEN: Color = Color(0, 255, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLUE` [INFO] [stdout] --> src/image.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub const BLUE: Color = Color(255, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `line` [INFO] [stdout] --> src/image.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn line(point1: Vec2, point2: Vec2, image: &mut Image, color: Color) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geo.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_f64` [INFO] [stdout] --> src/geo.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn to_f64(self) -> Vec2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geo.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn new(x: T, y: T, z: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_i32` [INFO] [stdout] --> src/geo.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn to_i32(self) -> Vec3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/geo.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn new(coords: Vec3) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `barycentric` [INFO] [stdout] --> src/geo.rs:347:8 [INFO] [stdout] | [INFO] [stdout] 347 | pub fn barycentric(t0: &Vec3, t1: &Vec3, p: &Vec3) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_color` [INFO] [stdout] --> src/tga.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn is_color(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_color_mapped` [INFO] [stdout] --> src/tga.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn is_color_mapped(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_encoded` [INFO] [stdout] --> src/tga.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn is_encoded(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | image.write_tga_file("output.tga"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | image.write_tga_file("output.tga"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.24s [INFO] running `Command { std: "docker" "inspect" "ac331fc2087873ab55a5ec49bae523c7d9e7a42c175412209d7b509054863da0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac331fc2087873ab55a5ec49bae523c7d9e7a42c175412209d7b509054863da0", kill_on_drop: false }` [INFO] [stdout] ac331fc2087873ab55a5ec49bae523c7d9e7a42c175412209d7b509054863da0