[INFO] cloning repository https://github.com/johnshiver/ray_tracer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/johnshiver/ray_tracer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohnshiver%2Fray_tracer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohnshiver%2Fray_tracer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 80ccff7f05fc4300439ecca9cf2ca7f99b48bd62 [INFO] checking johnshiver/ray_tracer against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjohnshiver%2Fray_tracer" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/johnshiver/ray_tracer on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/johnshiver/ray_tracer [INFO] finished tweaking git repo https://github.com/johnshiver/ray_tracer [INFO] tweaked toml for git repo https://github.com/johnshiver/ray_tracer written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/johnshiver/ray_tracer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--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-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7835e15cba152274e32e5fe28c9b8492afa6c9c164bae9e86a2b3b0b5afad66 [INFO] running `Command { std: "docker" "start" "-a" "b7835e15cba152274e32e5fe28c9b8492afa6c9c164bae9e86a2b3b0b5afad66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7835e15cba152274e32e5fe28c9b8492afa6c9c164bae9e86a2b3b0b5afad66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7835e15cba152274e32e5fe28c9b8492afa6c9c164bae9e86a2b3b0b5afad66", kill_on_drop: false }` [INFO] [stdout] b7835e15cba152274e32e5fe28c9b8492afa6c9c164bae9e86a2b3b0b5afad66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 999ecdb4e17c63d725312955f8af81230f7afc0ec991c4b0315b7287c00133c1 [INFO] running `Command { std: "docker" "start" "-a" "999ecdb4e17c63d725312955f8af81230f7afc0ec991c4b0315b7287c00133c1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Compiling syn v1.0.8 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling serde v1.0.102 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Compiling num-traits v0.2.9 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Compiling serde_derive v1.0.102 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking ray_tracer v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/rays.rs (7 fixes) [INFO] [stderr] Fixed src/matrix.rs (1 fix) [INFO] [stdout] warning: associated function is never used: `get_pixel` [INFO] [stdout] --> src/canvas.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn get_pixel(&self, x: usize, y: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `gravity` [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | gravity: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wind` [INFO] [stdout] --> src/environment.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | wind: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_environment` [INFO] [stdout] --> src/environment.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new_environment(gravity: Tuple, wind: Tuple) -> Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tick` [INFO] [stdout] --> src/environment.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn tick(env: Environment, projectile: Projectile) -> Projectile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpose` [INFO] [stdout] --> src/matrix.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn transpose(m: M4x4) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `submatrix_4x4` [INFO] [stdout] --> src/matrix.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn submatrix_4x4(matrix: &M4x4, row: usize, col: usize) -> M3x3 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minor_4x4` [INFO] [stdout] --> src/matrix.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn minor_4x4(matrix: &M4x4, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cofactor_4x4` [INFO] [stdout] --> src/matrix.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn cofactor_4x4(matrix: &M4x4, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_4x4` [INFO] [stdout] --> src/matrix.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn determinant_4x4(matrix: &M4x4) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `invertible_4x4` [INFO] [stdout] --> src/matrix.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn invertible_4x4(matrix: &M4x4) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/matrix.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | fn new(msg: &str) -> MatrixNotInvertibleError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `invert_4x4` [INFO] [stdout] --> src/matrix.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn invert_4x4(matrix: &M4x4) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_3x3` [INFO] [stdout] --> src/matrix.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn new_3x3(matrix: [[f64; 3]; 3]) -> M3x3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `submatrix_3x3` [INFO] [stdout] --> src/matrix.rs:258:8 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn submatrix_3x3(matrix: &M3x3, row: usize, col: usize) -> M2x2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minor_3x3` [INFO] [stdout] --> src/matrix.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn minor_3x3(matrix: &M3x3, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cofactor_3x3` [INFO] [stdout] --> src/matrix.rs:284:8 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn cofactor_3x3(matrix: &M3x3, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_3x3` [INFO] [stdout] --> src/matrix.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn determinant_3x3(matrix: &M3x3) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_2x2` [INFO] [stdout] --> src/matrix.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn new_2x2(matrix: [[f64; 2]; 2]) -> M2x2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_2x2` [INFO] [stdout] --> src/matrix.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn determinant_2x2(m: M2x2) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `translation` [INFO] [stdout] --> src/matrix_transformations.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn translation(x: f64, y: f64, z: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scaling` [INFO] [stdout] --> src/matrix_transformations.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn scaling(x: f64, y: f64, z: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rotation_x` [INFO] [stdout] --> src/matrix_transformations.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn rotation_x(radians: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rotation_z` [INFO] [stdout] --> src/matrix_transformations.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn rotation_z(radians: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shearing` [INFO] [stdout] --> src/matrix_transformations.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn shearing(xy: f64, xx: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_projectile` [INFO] [stdout] --> src/projectile.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new_projectile(position: Tuple, velocity: Tuple) -> Projectile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_vector` [INFO] [stdout] --> src/tuple.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new_vector(x: f64, y: f64, z: f64) -> Tuple { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_point` [INFO] [stdout] --> src/tuple.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn is_point(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_unit_vector` [INFO] [stdout] --> src/tuple.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn is_unit_vector(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/tuple.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn new(msg: &str) -> TupleTypeError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `magnitude` [INFO] [stdout] --> src/tuple.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn magnitude(vector: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normalize` [INFO] [stdout] --> src/tuple.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn normalize(vector: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot` [INFO] [stdout] --> src/tuple.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn dot(vec_a: Tuple, vec_b: Tuple) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cross` [INFO] [stdout] --> src/tuple.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn cross(vec_a: Tuple, vec_b: Tuple) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SPHERE_ORIGIN` [INFO] [stdout] --> src/rays.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub const SPHERE_ORIGIN: Tuple = Tuple { [INFO] [stdout] 11 | | x: 0.0, [INFO] [stdout] 12 | | y: 0.0, [INFO] [stdout] 13 | | z: 0.0, [INFO] [stdout] 14 | | w: 1.0, [INFO] [stdout] 15 | | }; // is a point [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_ray` [INFO] [stdout] --> src/rays.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new_ray(origin: Tuple, direction: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `position` [INFO] [stdout] --> src/rays.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn position(r: &Ray, time: f64) -> Tuple { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_sphere` [INFO] [stdout] --> src/rays.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new_sphere() -> Sphere { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_intersection` [INFO] [stdout] --> src/rays.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn new_intersection(t: f64, object: Sphere) -> Intersection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `count` [INFO] [stdout] --> src/rays.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | count: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersections` [INFO] [stdout] --> src/rays.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn intersections(items: Vec>, count: i64) -> Intersections { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `discriminant` [INFO] [stdout] --> src/rays.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn discriminant(r: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersect` [INFO] [stdout] --> src/rays.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn intersect(r: &Ray, s: Sphere) -> Intersections { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hit` [INFO] [stdout] --> src/rays.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn hit(xs: Intersections) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_test_image` [INFO] [stdout] --> src/main.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn create_test_image() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulate_projectile` [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn simulate_projectile() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | canvas.to_ppm("test_ppm.ppm"); [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: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | c.to_ppm("rocket_shot.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | c.to_ppm("analog_clock.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/tuple.rs (10 fixes) [INFO] [stderr] Fixed src/matrix.rs (1 fix) [INFO] [stdout] warning: field is never read: `gravity` [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | gravity: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wind` [INFO] [stdout] --> src/environment.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | wind: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_environment` [INFO] [stdout] --> src/environment.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new_environment(gravity: Tuple, wind: Tuple) -> Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tick` [INFO] [stdout] --> src/environment.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn tick(env: Environment, projectile: Projectile) -> Projectile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_projectile` [INFO] [stdout] --> src/projectile.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new_projectile(position: Tuple, velocity: Tuple) -> Projectile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_test_image` [INFO] [stdout] --> src/main.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn create_test_image() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulate_projectile` [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn simulate_projectile() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | canvas.to_ppm("test_ppm.ppm"); [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: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | c.to_ppm("rocket_shot.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | c.to_ppm("analog_clock.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 35.42s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking ray_tracer v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: associated function is never used: `get_pixel` [INFO] [stdout] --> src/canvas.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn get_pixel(&self, x: usize, y: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `gravity` [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | gravity: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wind` [INFO] [stdout] --> src/environment.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | wind: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_environment` [INFO] [stdout] --> src/environment.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new_environment(gravity: Tuple, wind: Tuple) -> Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tick` [INFO] [stdout] --> src/environment.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn tick(env: Environment, projectile: Projectile) -> Projectile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpose` [INFO] [stdout] --> src/matrix.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn transpose(m: M4x4) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `submatrix_4x4` [INFO] [stdout] --> src/matrix.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn submatrix_4x4(matrix: &M4x4, row: usize, col: usize) -> M3x3 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minor_4x4` [INFO] [stdout] --> src/matrix.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn minor_4x4(matrix: &M4x4, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cofactor_4x4` [INFO] [stdout] --> src/matrix.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn cofactor_4x4(matrix: &M4x4, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_4x4` [INFO] [stdout] --> src/matrix.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn determinant_4x4(matrix: &M4x4) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `invertible_4x4` [INFO] [stdout] --> src/matrix.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn invertible_4x4(matrix: &M4x4) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/matrix.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | fn new(msg: &str) -> MatrixNotInvertibleError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `invert_4x4` [INFO] [stdout] --> src/matrix.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn invert_4x4(matrix: &M4x4) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_3x3` [INFO] [stdout] --> src/matrix.rs:254:8 [INFO] [stdout] | [INFO] [stdout] 254 | pub fn new_3x3(matrix: [[f64; 3]; 3]) -> M3x3 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `submatrix_3x3` [INFO] [stdout] --> src/matrix.rs:258:8 [INFO] [stdout] | [INFO] [stdout] 258 | pub fn submatrix_3x3(matrix: &M3x3, row: usize, col: usize) -> M2x2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minor_3x3` [INFO] [stdout] --> src/matrix.rs:280:8 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn minor_3x3(matrix: &M3x3, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cofactor_3x3` [INFO] [stdout] --> src/matrix.rs:284:8 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn cofactor_3x3(matrix: &M3x3, row: usize, col: usize) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_3x3` [INFO] [stdout] --> src/matrix.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn determinant_3x3(matrix: &M3x3) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_2x2` [INFO] [stdout] --> src/matrix.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn new_2x2(matrix: [[f64; 2]; 2]) -> M2x2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determinant_2x2` [INFO] [stdout] --> src/matrix.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | pub fn determinant_2x2(m: M2x2) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `translation` [INFO] [stdout] --> src/matrix_transformations.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn translation(x: f64, y: f64, z: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scaling` [INFO] [stdout] --> src/matrix_transformations.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn scaling(x: f64, y: f64, z: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rotation_x` [INFO] [stdout] --> src/matrix_transformations.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn rotation_x(radians: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rotation_z` [INFO] [stdout] --> src/matrix_transformations.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn rotation_z(radians: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shearing` [INFO] [stdout] --> src/matrix_transformations.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn shearing(xy: f64, xx: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> M4x4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_projectile` [INFO] [stdout] --> src/projectile.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new_projectile(position: Tuple, velocity: Tuple) -> Projectile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_vector` [INFO] [stdout] --> src/tuple.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new_vector(x: f64, y: f64, z: f64) -> Tuple { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_point` [INFO] [stdout] --> src/tuple.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn is_point(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_unit_vector` [INFO] [stdout] --> src/tuple.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn is_unit_vector(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/tuple.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn new(msg: &str) -> TupleTypeError { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `magnitude` [INFO] [stdout] --> src/tuple.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn magnitude(vector: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `normalize` [INFO] [stdout] --> src/tuple.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn normalize(vector: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dot` [INFO] [stdout] --> src/tuple.rs:217:8 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn dot(vec_a: Tuple, vec_b: Tuple) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cross` [INFO] [stdout] --> src/tuple.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn cross(vec_a: Tuple, vec_b: Tuple) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SPHERE_ORIGIN` [INFO] [stdout] --> src/rays.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub const SPHERE_ORIGIN: Tuple = Tuple { [INFO] [stdout] 11 | | x: 0.0, [INFO] [stdout] 12 | | y: 0.0, [INFO] [stdout] 13 | | z: 0.0, [INFO] [stdout] 14 | | w: 1.0, [INFO] [stdout] 15 | | }; // is a point [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_ray` [INFO] [stdout] --> src/rays.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new_ray(origin: Tuple, direction: Tuple) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `position` [INFO] [stdout] --> src/rays.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn position(r: &Ray, time: f64) -> Tuple { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_sphere` [INFO] [stdout] --> src/rays.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new_sphere() -> Sphere { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_intersection` [INFO] [stdout] --> src/rays.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn new_intersection(t: f64, object: Sphere) -> Intersection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `count` [INFO] [stdout] --> src/rays.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | count: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersections` [INFO] [stdout] --> src/rays.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn intersections(items: Vec>, count: i64) -> Intersections { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `discriminant` [INFO] [stdout] --> src/rays.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn discriminant(r: &Ray) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `intersect` [INFO] [stdout] --> src/rays.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn intersect(r: &Ray, s: Sphere) -> Intersections { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hit` [INFO] [stdout] --> src/rays.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn hit(xs: Intersections) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_test_image` [INFO] [stdout] --> src/main.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn create_test_image() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulate_projectile` [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn simulate_projectile() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | canvas.to_ppm("test_ppm.ppm"); [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: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | c.to_ppm("rocket_shot.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | c.to_ppm("analog_clock.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `gravity` [INFO] [stdout] --> src/environment.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | gravity: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `wind` [INFO] [stdout] --> src/environment.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | wind: Tuple, // vector [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_environment` [INFO] [stdout] --> src/environment.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new_environment(gravity: Tuple, wind: Tuple) -> Environment { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tick` [INFO] [stdout] --> src/environment.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn tick(env: Environment, projectile: Projectile) -> Projectile { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_projectile` [INFO] [stdout] --> src/projectile.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new_projectile(position: Tuple, velocity: Tuple) -> Projectile { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_test_image` [INFO] [stdout] --> src/main.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn create_test_image() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulate_projectile` [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn simulate_projectile() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | canvas.to_ppm("test_ppm.ppm"); [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: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | c.to_ppm("rocket_shot.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | c.to_ppm("analog_clock.ppm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "999ecdb4e17c63d725312955f8af81230f7afc0ec991c4b0315b7287c00133c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "999ecdb4e17c63d725312955f8af81230f7afc0ec991c4b0315b7287c00133c1", kill_on_drop: false }` [INFO] [stdout] 999ecdb4e17c63d725312955f8af81230f7afc0ec991c4b0315b7287c00133c1