[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] building galdutro13/Rusty_MVGA against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgaldutro13%2FRusty_MVGA" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/galdutro13/Rusty_MVGA on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-0-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12547800b9bf11b9cec6b5c8c17dad3bd22b51b17db547a5ec8fc8b44bc60a0a [INFO] running `Command { std: "docker" "start" "-a" "12547800b9bf11b9cec6b5c8c17dad3bd22b51b17db547a5ec8fc8b44bc60a0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12547800b9bf11b9cec6b5c8c17dad3bd22b51b17db547a5ec8fc8b44bc60a0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12547800b9bf11b9cec6b5c8c17dad3bd22b51b17db547a5ec8fc8b44bc60a0a", kill_on_drop: false }` [INFO] [stdout] 12547800b9bf11b9cec6b5c8c17dad3bd22b51b17db547a5ec8fc8b44bc60a0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1b5b5ef964766949eb1cae992165d2c5d2a601524153ffebd31033a8c130af8 [INFO] running `Command { std: "docker" "start" "-a" "a1b5b5ef964766949eb1cae992165d2c5d2a601524153ffebd31033a8c130af8", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling scan_fmt v0.2.6 [INFO] [stderr] Compiling 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.61s [INFO] running `Command { std: "docker" "inspect" "a1b5b5ef964766949eb1cae992165d2c5d2a601524153ffebd31033a8c130af8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1b5b5ef964766949eb1cae992165d2c5d2a601524153ffebd31033a8c130af8", kill_on_drop: false }` [INFO] [stdout] a1b5b5ef964766949eb1cae992165d2c5d2a601524153ffebd31033a8c130af8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cdce4d2003baebb11195e3d8a768d65b210817907541ae65fcf82076fb363369 [INFO] running `Command { std: "docker" "start" "-a" "cdce4d2003baebb11195e3d8a768d65b210817907541ae65fcf82076fb363369", kill_on_drop: false }` [INFO] [stderr] Compiling 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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "cdce4d2003baebb11195e3d8a768d65b210817907541ae65fcf82076fb363369", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cdce4d2003baebb11195e3d8a768d65b210817907541ae65fcf82076fb363369", kill_on_drop: false }` [INFO] [stdout] cdce4d2003baebb11195e3d8a768d65b210817907541ae65fcf82076fb363369