[INFO] cloning repository https://github.com/galdutro13/Rusty_MVGA [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/galdutro13/Rusty_MVGA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaldutro13%2FRusty_MVGA", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaldutro13%2FRusty_MVGA'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 34821c8a34abe3450ed9564631df0d9a674f97de [INFO] checking galdutro13/Rusty_MVGA against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaldutro13%2FRusty_MVGA" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/galdutro13/Rusty_MVGA on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/galdutro13/Rusty_MVGA [INFO] finished tweaking git repo https://github.com/galdutro13/Rusty_MVGA [INFO] tweaked toml for git repo https://github.com/galdutro13/Rusty_MVGA written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/galdutro13/Rusty_MVGA 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 786ced7d73aff05f49534ed39cd6ccfdeabaa62f1710e2853f1dffc2371607a9 [INFO] running `Command { std: "docker" "start" "-a" "786ced7d73aff05f49534ed39cd6ccfdeabaa62f1710e2853f1dffc2371607a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "786ced7d73aff05f49534ed39cd6ccfdeabaa62f1710e2853f1dffc2371607a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "786ced7d73aff05f49534ed39cd6ccfdeabaa62f1710e2853f1dffc2371607a9", kill_on_drop: false }` [INFO] [stdout] 786ced7d73aff05f49534ed39cd6ccfdeabaa62f1710e2853f1dffc2371607a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a3a9090c7f014c5cb463c7ced80c0a6a894f9ff222961172be2a89c787363b8c [INFO] running `Command { std: "docker" "start" "-a" "a3a9090c7f014c5cb463c7ced80c0a6a894f9ff222961172be2a89c787363b8c", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking scan_fmt v0.2.6 [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `EQUAL` [INFO] [stdout] --> src/main.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! EQUAL { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:140:11 [INFO] [stdout] | [INFO] [stdout] 140 | if(p1.x < p2.x){ b = p2.clone() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if(p1.x < p2.x){ b = p2.clone() } [INFO] [stdout] 140 + if p1.x < p2.x { b = p2.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:163:11 [INFO] [stdout] | [INFO] [stdout] 163 | if(p1.y < p2.y){ b = p2.clone() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - if(p1.y < p2.y){ b = p2.clone() } [INFO] [stdout] 163 + if p1.y < p2.y { b = p2.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `EQUAL` [INFO] [stdout] --> src/main.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! EQUAL { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:140:11 [INFO] [stdout] | [INFO] [stdout] 140 | if(p1.x < p2.x){ b = p2.clone() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if(p1.x < p2.x){ b = p2.clone() } [INFO] [stdout] 140 + if p1.x < p2.x { b = p2.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:163:11 [INFO] [stdout] | [INFO] [stdout] 163 | if(p1.y < p2.y){ b = p2.clone() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - if(p1.y < p2.y){ b = p2.clone() } [INFO] [stdout] 163 + if p1.y < p2.y { b = p2.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut image: Image = 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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let mut matrix: Matrix = Matrix{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | for x in 0..(&n * &n - 1){ [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: variable `k` is assigned to, but never used [INFO] [stdout] --> src/main.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut k: i64; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_k` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `k` is never read [INFO] [stdout] --> src/main.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | k = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | let mut k: i64; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | let mut tmp: Matrix; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/main.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | let command: &'static str; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output_file_name` is assigned to, but never used [INFO] [stdout] --> src/main.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | let output_file_name: &'static str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_output_file_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_shapes` [INFO] [stdout] --> src/main.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 374 | let n_shapes: i64; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `observer` [INFO] [stdout] --> src/main.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | let observer: Vector; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_observer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/main.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | let direction: Vector; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut v: Vector; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shapes` [INFO] [stdout] --> src/main.rs:380:13 [INFO] [stdout] | [INFO] [stdout] 380 | let mut shapes: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/main.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut img: Image; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output_file_name` is never read [INFO] [stdout] --> src/main.rs:401:5 [INFO] [stdout] | [INFO] [stdout] 401 | output_file_name = &argv[2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/main.rs:409:13 [INFO] [stdout] | [INFO] [stdout] 409 | Err(why) => panic!("Não foi possivel abrir o arquivo {}", feedback), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/main.rs:414:13 [INFO] [stdout] | [INFO] [stdout] 414 | Err(why) => panic!("Não foi possivel ler o arquivo {}", feedback), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/main.rs:422:10 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/main.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `background_color` [INFO] [stdout] --> src/main.rs:422:25 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_background_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | let mut shapes: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | let mut temp: String; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | let mut offset: usize; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> src/main.rs:442:13 [INFO] [stdout] | [INFO] [stdout] 442 | let mut matrix: Matrix = create_matrix(4, 4); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | let mut matrix: Matrix = create_matrix(4, 4); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VERTICES` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MAX_VERTICES: i64 = 100; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VALUE` is never used [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MAX_VALUE: i64 = 255; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAW_SHAPE` is never used [INFO] [stdout] --> src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DRAW_SHAPE: &str = "DRAW_SHAPE"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAW_SHAPE_BASE` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DRAW_SHAPE_BASE: &str = "DRAW_SHAPE_BASE"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `END` is never used [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const END: &str = "END"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SMALL` is never used [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const SMALL: f64 = 0.000001; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shape` is never constructed [INFO] [stdout] --> src/main.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m`, `lin`, and `col` are never read [INFO] [stdout] --> src/main.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | struct Matrix { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 58 | m: Vec, [INFO] [stdout] | ^ [INFO] [stdout] 59 | lin: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_matrix_with_values` is never used [INFO] [stdout] --> src/main.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn create_matrix_with_values(n: i64, m: i64, valores: Vec) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_matrix` is never used [INFO] [stdout] --> src/main.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn copy_matrix(mat: &mut Matrix) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_identity` is never used [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn create_identity(n: i64) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut image: Image = 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: function `det2x2` is never used [INFO] [stdout] --> src/main.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | fn det2x2(mat: &Matrix) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cofactor3x3` is never used [INFO] [stdout] --> src/main.rs:255:4 [INFO] [stdout] | [INFO] [stdout] 255 | fn cofactor3x3(mat: &Matrix, i: i64, j: i64) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `det3x3` is never used [INFO] [stdout] --> src/main.rs:288:4 [INFO] [stdout] | [INFO] [stdout] 288 | fn det3x3(mat: &Matrix) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invert3x3` is never used [INFO] [stdout] --> src/main.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn invert3x3(mat: &Matrix) -> Option{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fn_main` is never used [INFO] [stdout] --> src/main.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn fn_main(argv: [&'static str; 3]) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaX` should have a snake case name [INFO] [stdout] --> src/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let deltaX: f64 = f64::abs(&p1.x - &p2.x); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `delta_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaY` should have a snake case name [INFO] [stdout] --> src/main.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let deltaY: f64 = f64::abs(&p1.y - &p2.y); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `delta_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let mut matrix: Matrix = Matrix{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | for x in 0..(&n * &n - 1){ [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: variable `k` is assigned to, but never used [INFO] [stdout] --> src/main.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut k: i64; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_k` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `k` is never read [INFO] [stdout] --> src/main.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | k = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | let mut k: i64; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | let mut tmp: Matrix; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/main.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | let command: &'static str; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output_file_name` is assigned to, but never used [INFO] [stdout] --> src/main.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | let output_file_name: &'static str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_output_file_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_shapes` [INFO] [stdout] --> src/main.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 374 | let n_shapes: i64; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `observer` [INFO] [stdout] --> src/main.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | let observer: Vector; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_observer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/main.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | let direction: Vector; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut v: Vector; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shapes` [INFO] [stdout] --> src/main.rs:380:13 [INFO] [stdout] | [INFO] [stdout] 380 | let mut shapes: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/main.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut img: Image; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output_file_name` is never read [INFO] [stdout] --> src/main.rs:401:5 [INFO] [stdout] | [INFO] [stdout] 401 | output_file_name = &argv[2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/main.rs:409:13 [INFO] [stdout] | [INFO] [stdout] 409 | Err(why) => panic!("Não foi possivel abrir o arquivo {}", feedback), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/main.rs:414:13 [INFO] [stdout] | [INFO] [stdout] 414 | Err(why) => panic!("Não foi possivel ler o arquivo {}", feedback), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/main.rs:422:10 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/main.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `background_color` [INFO] [stdout] --> src/main.rs:422:25 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_background_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | let mut shapes: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | let mut temp: String; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | let mut offset: usize; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> src/main.rs:442:13 [INFO] [stdout] | [INFO] [stdout] 442 | let mut matrix: Matrix = create_matrix(4, 4); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | let mut matrix: Matrix = create_matrix(4, 4); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VERTICES` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MAX_VERTICES: i64 = 100; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VALUE` is never used [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MAX_VALUE: i64 = 255; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAW_SHAPE` is never used [INFO] [stdout] --> src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DRAW_SHAPE: &str = "DRAW_SHAPE"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAW_SHAPE_BASE` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DRAW_SHAPE_BASE: &str = "DRAW_SHAPE_BASE"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `END` is never used [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const END: &str = "END"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SMALL` is never used [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const SMALL: f64 = 0.000001; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shape` is never constructed [INFO] [stdout] --> src/main.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m`, `lin`, and `col` are never read [INFO] [stdout] --> src/main.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | struct Matrix { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 58 | m: Vec, [INFO] [stdout] | ^ [INFO] [stdout] 59 | lin: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_matrix_with_values` is never used [INFO] [stdout] --> src/main.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn create_matrix_with_values(n: i64, m: i64, valores: Vec) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_matrix` is never used [INFO] [stdout] --> src/main.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn copy_matrix(mat: &mut Matrix) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_identity` is never used [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn create_identity(n: i64) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `det2x2` is never used [INFO] [stdout] --> src/main.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | fn det2x2(mat: &Matrix) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cofactor3x3` is never used [INFO] [stdout] --> src/main.rs:255:4 [INFO] [stdout] | [INFO] [stdout] 255 | fn cofactor3x3(mat: &Matrix, i: i64, j: i64) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `det3x3` is never used [INFO] [stdout] --> src/main.rs:288:4 [INFO] [stdout] | [INFO] [stdout] 288 | fn det3x3(mat: &Matrix) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invert3x3` is never used [INFO] [stdout] --> src/main.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn invert3x3(mat: &Matrix) -> Option{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fn_main` is never used [INFO] [stdout] --> src/main.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn fn_main(argv: [&'static str; 3]) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaX` should have a snake case name [INFO] [stdout] --> src/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let deltaX: f64 = f64::abs(&p1.x - &p2.x); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `delta_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaY` should have a snake case name [INFO] [stdout] --> src/main.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let deltaY: f64 = f64::abs(&p1.y - &p2.y); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `delta_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.24s [INFO] running `Command { std: "docker" "inspect" "a3a9090c7f014c5cb463c7ced80c0a6a894f9ff222961172be2a89c787363b8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a3a9090c7f014c5cb463c7ced80c0a6a894f9ff222961172be2a89c787363b8c", kill_on_drop: false }` [INFO] [stdout] a3a9090c7f014c5cb463c7ced80c0a6a894f9ff222961172be2a89c787363b8c [INFO] checking galdutro13/Rusty_MVGA against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaldutro13%2FRusty_MVGA" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/galdutro13/Rusty_MVGA on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/galdutro13/Rusty_MVGA [INFO] finished tweaking git repo https://github.com/galdutro13/Rusty_MVGA [INFO] tweaked toml for git repo https://github.com/galdutro13/Rusty_MVGA written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/galdutro13/Rusty_MVGA 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa9669e6b82df32f62acfb53f4a1201dbd23a7f16ca2483c8d46ffb568d4ce5f [INFO] running `Command { std: "docker" "start" "-a" "fa9669e6b82df32f62acfb53f4a1201dbd23a7f16ca2483c8d46ffb568d4ce5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa9669e6b82df32f62acfb53f4a1201dbd23a7f16ca2483c8d46ffb568d4ce5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa9669e6b82df32f62acfb53f4a1201dbd23a7f16ca2483c8d46ffb568d4ce5f", kill_on_drop: false }` [INFO] [stdout] fa9669e6b82df32f62acfb53f4a1201dbd23a7f16ca2483c8d46ffb568d4ce5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05be1b98c65aa4ca8cd4097c4d9c8d19daf0e460acf4adc3b863ea8577613158 [INFO] running `Command { std: "docker" "start" "-a" "05be1b98c65aa4ca8cd4097c4d9c8d19daf0e460acf4adc3b863ea8577613158", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking scan_fmt v0.2.6 [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `EQUAL` [INFO] [stdout] --> src/main.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! EQUAL { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:140:11 [INFO] [stdout] | [INFO] [stdout] 140 | if(p1.x < p2.x){ b = p2.clone() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if(p1.x < p2.x){ b = p2.clone() } [INFO] [stdout] 140 + if p1.x < p2.x { b = p2.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:163:11 [INFO] [stdout] | [INFO] [stdout] 163 | if(p1.y < p2.y){ b = p2.clone() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - if(p1.y < p2.y){ b = p2.clone() } [INFO] [stdout] 163 + if p1.y < p2.y { b = p2.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `EQUAL` [INFO] [stdout] --> src/main.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | macro_rules! EQUAL { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut image: Image = 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: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:140:11 [INFO] [stdout] | [INFO] [stdout] 140 | if(p1.x < p2.x){ b = p2.clone() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 140 - if(p1.x < p2.x){ b = p2.clone() } [INFO] [stdout] 140 + if p1.x < p2.x { b = p2.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:163:11 [INFO] [stdout] | [INFO] [stdout] 163 | if(p1.y < p2.y){ b = p2.clone() } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - if(p1.y < p2.y){ b = p2.clone() } [INFO] [stdout] 163 + if p1.y < p2.y { b = p2.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let mut matrix: Matrix = Matrix{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | for x in 0..(&n * &n - 1){ [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: variable `k` is assigned to, but never used [INFO] [stdout] --> src/main.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut k: i64; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_k` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `k` is never read [INFO] [stdout] --> src/main.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | k = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | let mut k: i64; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | let mut tmp: Matrix; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/main.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | let command: &'static str; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output_file_name` is assigned to, but never used [INFO] [stdout] --> src/main.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | let output_file_name: &'static str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_output_file_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_shapes` [INFO] [stdout] --> src/main.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 374 | let n_shapes: i64; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `observer` [INFO] [stdout] --> src/main.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | let observer: Vector; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_observer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/main.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | let direction: Vector; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut v: Vector; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shapes` [INFO] [stdout] --> src/main.rs:380:13 [INFO] [stdout] | [INFO] [stdout] 380 | let mut shapes: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/main.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut img: Image; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output_file_name` is never read [INFO] [stdout] --> src/main.rs:401:5 [INFO] [stdout] | [INFO] [stdout] 401 | output_file_name = &argv[2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/main.rs:409:13 [INFO] [stdout] | [INFO] [stdout] 409 | Err(why) => panic!("Não foi possivel abrir o arquivo {}", feedback), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/main.rs:414:13 [INFO] [stdout] | [INFO] [stdout] 414 | Err(why) => panic!("Não foi possivel ler o arquivo {}", feedback), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/main.rs:422:10 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/main.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `background_color` [INFO] [stdout] --> src/main.rs:422:25 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_background_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | let mut shapes: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | let mut temp: String; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | let mut offset: usize; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> src/main.rs:442:13 [INFO] [stdout] | [INFO] [stdout] 442 | let mut matrix: Matrix = create_matrix(4, 4); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | let mut matrix: Matrix = create_matrix(4, 4); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VERTICES` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MAX_VERTICES: i64 = 100; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VALUE` is never used [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MAX_VALUE: i64 = 255; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAW_SHAPE` is never used [INFO] [stdout] --> src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DRAW_SHAPE: &str = "DRAW_SHAPE"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAW_SHAPE_BASE` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DRAW_SHAPE_BASE: &str = "DRAW_SHAPE_BASE"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `END` is never used [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const END: &str = "END"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SMALL` is never used [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const SMALL: f64 = 0.000001; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shape` is never constructed [INFO] [stdout] --> src/main.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m`, `lin`, and `col` are never read [INFO] [stdout] --> src/main.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | struct Matrix { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 58 | m: Vec, [INFO] [stdout] | ^ [INFO] [stdout] 59 | lin: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_matrix_with_values` is never used [INFO] [stdout] --> src/main.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn create_matrix_with_values(n: i64, m: i64, valores: Vec) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_matrix` is never used [INFO] [stdout] --> src/main.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn copy_matrix(mat: &mut Matrix) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_identity` is never used [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn create_identity(n: i64) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `det2x2` is never used [INFO] [stdout] --> src/main.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | fn det2x2(mat: &Matrix) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cofactor3x3` is never used [INFO] [stdout] --> src/main.rs:255:4 [INFO] [stdout] | [INFO] [stdout] 255 | fn cofactor3x3(mat: &Matrix, i: i64, j: i64) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `det3x3` is never used [INFO] [stdout] --> src/main.rs:288:4 [INFO] [stdout] | [INFO] [stdout] 288 | fn det3x3(mat: &Matrix) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invert3x3` is never used [INFO] [stdout] --> src/main.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn invert3x3(mat: &Matrix) -> Option{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fn_main` is never used [INFO] [stdout] --> src/main.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn fn_main(argv: [&'static str; 3]) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaX` should have a snake case name [INFO] [stdout] --> src/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let deltaX: f64 = f64::abs(&p1.x - &p2.x); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `delta_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaY` should have a snake case name [INFO] [stdout] --> src/main.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let deltaY: f64 = f64::abs(&p1.y - &p2.y); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `delta_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut image: Image = 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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let mut matrix: Matrix = Matrix{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | for x in 0..(&n * &n - 1){ [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: variable `k` is assigned to, but never used [INFO] [stdout] --> src/main.rs:260:13 [INFO] [stdout] | [INFO] [stdout] 260 | let mut k: i64; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_k` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `k` is never read [INFO] [stdout] --> src/main.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | k = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | let mut k: i64; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | let mut tmp: Matrix; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command` [INFO] [stdout] --> src/main.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | let command: &'static str; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output_file_name` is assigned to, but never used [INFO] [stdout] --> src/main.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 368 | let output_file_name: &'static str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_output_file_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_shapes` [INFO] [stdout] --> src/main.rs:374:9 [INFO] [stdout] | [INFO] [stdout] 374 | let n_shapes: i64; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `observer` [INFO] [stdout] --> src/main.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | let observer: Vector; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_observer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/main.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | let direction: Vector; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | let mut v: Vector; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shapes` [INFO] [stdout] --> src/main.rs:380:13 [INFO] [stdout] | [INFO] [stdout] 380 | let mut shapes: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shapes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/main.rs:382:13 [INFO] [stdout] | [INFO] [stdout] 382 | let mut img: Image; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output_file_name` is never read [INFO] [stdout] --> src/main.rs:401:5 [INFO] [stdout] | [INFO] [stdout] 401 | output_file_name = &argv[2]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/main.rs:409:13 [INFO] [stdout] | [INFO] [stdout] 409 | Err(why) => panic!("Não foi possivel abrir o arquivo {}", feedback), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `why` [INFO] [stdout] --> src/main.rs:414:13 [INFO] [stdout] | [INFO] [stdout] 414 | Err(why) => panic!("Não foi possivel ler o arquivo {}", feedback), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_why` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `width` [INFO] [stdout] --> src/main.rs:422:10 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> src/main.rs:422:17 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `background_color` [INFO] [stdout] --> src/main.rs:422:25 [INFO] [stdout] | [INFO] [stdout] 422 | let (width, height, background_color) = scan_fmt_some!(&temp, "{d} {d} {d}", i64, i64, i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_background_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | let mut shapes: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | let mut temp: String; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | let mut offset: usize; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matrix` [INFO] [stdout] --> src/main.rs:442:13 [INFO] [stdout] | [INFO] [stdout] 442 | let mut matrix: Matrix = create_matrix(4, 4); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | let mut matrix: Matrix = create_matrix(4, 4); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VERTICES` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MAX_VERTICES: i64 = 100; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_VALUE` is never used [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MAX_VALUE: i64 = 255; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAW_SHAPE` is never used [INFO] [stdout] --> src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const DRAW_SHAPE: &str = "DRAW_SHAPE"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAW_SHAPE_BASE` is never used [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const DRAW_SHAPE_BASE: &str = "DRAW_SHAPE_BASE"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `END` is never used [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const END: &str = "END"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SMALL` is never used [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const SMALL: f64 = 0.000001; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shape` is never constructed [INFO] [stdout] --> src/main.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m`, `lin`, and `col` are never read [INFO] [stdout] --> src/main.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | struct Matrix { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 58 | m: Vec, [INFO] [stdout] | ^ [INFO] [stdout] 59 | lin: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 60 | col: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_matrix_with_values` is never used [INFO] [stdout] --> src/main.rs:203:4 [INFO] [stdout] | [INFO] [stdout] 203 | fn create_matrix_with_values(n: i64, m: i64, valores: Vec) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_matrix` is never used [INFO] [stdout] --> src/main.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn copy_matrix(mat: &mut Matrix) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_identity` is never used [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn create_identity(n: i64) -> Matrix{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `det2x2` is never used [INFO] [stdout] --> src/main.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | fn det2x2(mat: &Matrix) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cofactor3x3` is never used [INFO] [stdout] --> src/main.rs:255:4 [INFO] [stdout] | [INFO] [stdout] 255 | fn cofactor3x3(mat: &Matrix, i: i64, j: i64) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `det3x3` is never used [INFO] [stdout] --> src/main.rs:288:4 [INFO] [stdout] | [INFO] [stdout] 288 | fn det3x3(mat: &Matrix) -> f64{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invert3x3` is never used [INFO] [stdout] --> src/main.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn invert3x3(mat: &Matrix) -> Option{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fn_main` is never used [INFO] [stdout] --> src/main.rs:358:4 [INFO] [stdout] | [INFO] [stdout] 358 | fn fn_main(argv: [&'static str; 3]) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaX` should have a snake case name [INFO] [stdout] --> src/main.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let deltaX: f64 = f64::abs(&p1.x - &p2.x); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `delta_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `deltaY` should have a snake case name [INFO] [stdout] --> src/main.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let deltaY: f64 = f64::abs(&p1.y - &p2.y); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `delta_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.80s [INFO] running `Command { std: "docker" "inspect" "05be1b98c65aa4ca8cd4097c4d9c8d19daf0e460acf4adc3b863ea8577613158", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05be1b98c65aa4ca8cd4097c4d9c8d19daf0e460acf4adc3b863ea8577613158", kill_on_drop: false }` [INFO] [stdout] 05be1b98c65aa4ca8cd4097c4d9c8d19daf0e460acf4adc3b863ea8577613158