[INFO] cloning repository https://github.com/Latias94/games101_with_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Latias94/games101_with_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLatias94%2Fgames101_with_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLatias94%2Fgames101_with_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2cf25c4c0db7c9c16cd867cc9548bf38ab6be0fb [INFO] checking Latias94/games101_with_rust/2cf25c4c0db7c9c16cd867cc9548bf38ab6be0fb against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLatias94%2Fgames101_with_rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Latias94/games101_with_rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Latias94/games101_with_rust [INFO] finished tweaking git repo https://github.com/Latias94/games101_with_rust [INFO] tweaked toml for git repo https://github.com/Latias94/games101_with_rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Latias94/games101_with_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded minifb v0.25.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 870997afaab1d1a2b1a2287b5cee457d6312f08a4b234af58a4b4ac1a44875c8 [INFO] running `Command { std: "docker" "start" "-a" "870997afaab1d1a2b1a2287b5cee457d6312f08a4b234af58a4b4ac1a44875c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "870997afaab1d1a2b1a2287b5cee457d6312f08a4b234af58a4b4ac1a44875c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "870997afaab1d1a2b1a2287b5cee457d6312f08a4b234af58a4b4ac1a44875c8", kill_on_drop: false }` [INFO] [stdout] 870997afaab1d1a2b1a2287b5cee457d6312f08a4b234af58a4b4ac1a44875c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51d7292624866f68ec104d3151df42c511ebb12567bbde41a03e7fbe4cc259dc [INFO] running `Command { std: "docker" "start" "-a" "51d7292624866f68ec104d3151df42c511ebb12567bbde41a03e7fbe4cc259dc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling xml-rs v0.8.19 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking libloading v0.8.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling built v0.7.1 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking aligned-vec v0.5.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking v_frame v0.3.8 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking av1-grain v0.2.3 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking bitstream-io v2.2.0 [INFO] [stderr] Checking imgref v1.10.1 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking avif-serialize v0.8.1 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking half v2.4.0 [INFO] [stderr] Checking xcursor v0.3.5 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Compiling minifb v0.25.0 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Checking zune-jpeg v0.4.11 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Compiling bytemuck_derive v1.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking profiling v1.0.15 [INFO] [stderr] Checking bytemuck v1.14.3 [INFO] [stderr] Checking image-webp v0.1.0 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking rgb v0.8.37 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking ravif v0.11.4 [INFO] [stderr] Checking image v0.25.0 [INFO] [stderr] Checking nalgebra v0.32.4 [INFO] [stderr] Checking nalgebra-glm v0.18.0 [INFO] [stderr] Checking assignment2 v0.1.0 (/opt/rustwide/workdir/assignment2) [INFO] [stderr] Checking assignment1 v0.1.0 (/opt/rustwide/workdir/assignment1) [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> assignment2/src/rasterizer.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | fn inside_triangle(&self, x: u32, y: u32, v: [Vec4; 3]) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> assignment2/src/rasterizer.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | fn inside_triangle(&self, x: u32, y: u32, v: [Vec4; 3]) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> assignment2/src/rasterizer.rs:89:47 [INFO] [stdout] | [INFO] [stdout] 89 | fn inside_triangle(&self, x: u32, y: u32, v: [Vec4; 3]) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> assignment2/src/rasterizer.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | let v = t.to_vector4(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inside_triangle` and `compute_barycentric2d` are never used [INFO] [stdout] --> assignment2/src/rasterizer.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Rasterizer { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | fn inside_triangle(&self, x: u32, y: u32, v: [Vec4; 3]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn compute_barycentric2d(&self, x: u32, y: u32, v: [Vec4; 3]) -> (f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> assignment2/src/rasterizer.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | fn inside_triangle(&self, x: u32, y: u32, v: [Vec4; 3]) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> assignment2/src/rasterizer.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | fn inside_triangle(&self, x: u32, y: u32, v: [Vec4; 3]) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> assignment2/src/rasterizer.rs:89:47 [INFO] [stdout] | [INFO] [stdout] 89 | fn inside_triangle(&self, x: u32, y: u32, v: [Vec4; 3]) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> assignment2/src/rasterizer.rs:271:13 [INFO] [stdout] | [INFO] [stdout] 271 | let v = t.to_vector4(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inside_triangle` and `compute_barycentric2d` are never used [INFO] [stdout] --> assignment2/src/rasterizer.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Rasterizer { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | fn inside_triangle(&self, x: u32, y: u32, v: [Vec4; 3]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn compute_barycentric2d(&self, x: u32, y: u32, v: [Vec4; 3]) -> (f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rasterizer` [INFO] [stdout] --> assignment2/examples/rasterizer.rs:344:2 [INFO] [stdout] | [INFO] [stdout] 344 | } [INFO] [stdout] | ^ consider adding a `main` function to `assignment2/examples/rasterizer.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> assignment1/src/main.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 105 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 106 | model [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> assignment1/src/main.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 105 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 106 | model [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> assignment1/src/main.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let mut model = Mat4::identity(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotation_angle` [INFO] [stdout] --> assignment1/src/main.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | fn get_model_matrix(rotation_angle: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> assignment1/src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let mut model = Mat4::identity(); [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: unused variable: `eye_fov` [INFO] [stdout] --> assignment1/src/main.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eye_fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aspect_ratio` [INFO] [stdout] --> assignment1/src/main.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aspect_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z_near` [INFO] [stdout] --> assignment1/src/main.rs:109:59 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_z_near` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z_far` [INFO] [stdout] --> assignment1/src/main.rs:109:72 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_z_far` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> assignment2/src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 127 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 128 | model [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> assignment2/src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 127 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 128 | model [INFO] [stdout] | ^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> assignment1/src/main.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let mut model = Mat4::identity(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotation_angle` [INFO] [stdout] --> assignment1/src/main.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | fn get_model_matrix(rotation_angle: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> assignment1/src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let mut model = Mat4::identity(); [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: unused variable: `eye_fov` [INFO] [stdout] --> assignment1/src/main.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eye_fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aspect_ratio` [INFO] [stdout] --> assignment1/src/main.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aspect_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z_near` [INFO] [stdout] --> assignment1/src/main.rs:109:59 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_z_near` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z_far` [INFO] [stdout] --> assignment1/src/main.rs:109:72 [INFO] [stdout] | [INFO] [stdout] 109 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_z_far` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> assignment2/src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let mut model = Mat4::identity(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotation_angle` [INFO] [stdout] --> assignment2/src/main.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | fn get_model_matrix(rotation_angle: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> assignment2/src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut model = Mat4::identity(); [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: unused variable: `eye_fov` [INFO] [stdout] --> assignment2/src/main.rs:131:26 [INFO] [stdout] | [INFO] [stdout] 131 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eye_fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aspect_ratio` [INFO] [stdout] --> assignment2/src/main.rs:131:40 [INFO] [stdout] | [INFO] [stdout] 131 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aspect_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z_near` [INFO] [stdout] --> assignment2/src/main.rs:131:59 [INFO] [stdout] | [INFO] [stdout] 131 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_z_near` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z_far` [INFO] [stdout] --> assignment2/src/main.rs:131:72 [INFO] [stdout] | [INFO] [stdout] 131 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_z_far` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `model` [INFO] [stdout] --> assignment2/src/main.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let mut model = Mat4::identity(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_model` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotation_angle` [INFO] [stdout] --> assignment2/src/main.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | fn get_model_matrix(rotation_angle: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotation_angle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> assignment2/src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let mut model = Mat4::identity(); [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: unused variable: `eye_fov` [INFO] [stdout] --> assignment2/src/main.rs:131:26 [INFO] [stdout] | [INFO] [stdout] 131 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eye_fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aspect_ratio` [INFO] [stdout] --> assignment2/src/main.rs:131:40 [INFO] [stdout] | [INFO] [stdout] 131 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aspect_ratio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z_near` [INFO] [stdout] --> assignment2/src/main.rs:131:59 [INFO] [stdout] | [INFO] [stdout] 131 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_z_near` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z_far` [INFO] [stdout] --> assignment2/src/main.rs:131:72 [INFO] [stdout] | [INFO] [stdout] 131 | fn get_projection_matrix(eye_fov: f32, aspect_ratio: f32, z_near: f32, z_far: f32) -> Mat4 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_z_far` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `assignment2` (example "rasterizer") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `get_model_matrix_by_any_axis` is never used [INFO] [stdout] --> assignment2/examples/hw2.rs:194:4 [INFO] [stdout] | [INFO] [stdout] 194 | fn get_model_matrix_by_any_axis(angle: f32, axis: Vec3) -> Mat4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Line` is never constructed [INFO] [stdout] --> assignment2/examples/rasterizer.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Primitive { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 24 | Line, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `framebuffer_u32` and `draw_line` are never used [INFO] [stdout] --> assignment2/examples/rasterizer.rs:228:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Rasterizer { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn framebuffer_u32(&self) -> &[u32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | pub fn draw_line(&mut self, begin: Vec3, end: Vec3, color: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "51d7292624866f68ec104d3151df42c511ebb12567bbde41a03e7fbe4cc259dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51d7292624866f68ec104d3151df42c511ebb12567bbde41a03e7fbe4cc259dc", kill_on_drop: false }` [INFO] [stdout] 51d7292624866f68ec104d3151df42c511ebb12567bbde41a03e7fbe4cc259dc