[INFO] cloning repository https://github.com/DimartX/CG_lab2_gtk-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DimartX/CG_lab2_gtk-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimartX%2FCG_lab2_gtk-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimartX%2FCG_lab2_gtk-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b00b1ed474e5bdda41723900ca27273ba50c457b [INFO] testing DimartX/CG_lab2_gtk-rs against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimartX%2FCG_lab2_gtk-rs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/DimartX/CG_lab2_gtk-rs [INFO] finished tweaking git repo https://github.com/DimartX/CG_lab2_gtk-rs [INFO] tweaked toml for git repo https://github.com/DimartX/CG_lab2_gtk-rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DimartX/CG_lab2_gtk-rs on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/DimartX/CG_lab2_gtk-rs 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gdk-pixbuf-sys v0.10.0 [INFO] [stderr] Downloaded gdk-sys v0.10.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.9.0 [INFO] [stderr] Downloaded atk v0.9.0 [INFO] [stderr] Downloaded gtk-sys v0.10.0 [INFO] [stderr] Downloaded gdk v0.13.2 [INFO] [stderr] Downloaded gtk v0.9.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 86277c81990707370b7ee0f0e706b21c5c3cb4b7e3a676b5b0537f54e39454b1 [INFO] running `Command { std: "docker" "start" "-a" "86277c81990707370b7ee0f0e706b21c5c3cb4b7e3a676b5b0537f54e39454b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "86277c81990707370b7ee0f0e706b21c5c3cb4b7e3a676b5b0537f54e39454b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86277c81990707370b7ee0f0e706b21c5c3cb4b7e3a676b5b0537f54e39454b1", kill_on_drop: false }` [INFO] [stdout] 86277c81990707370b7ee0f0e706b21c5c3cb4b7e3a676b5b0537f54e39454b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8dab026d3a63e6f679b84831eebbcd86018f39ceefd9f34784b6074ea985680c [INFO] running `Command { std: "docker" "start" "-a" "8dab026d3a63e6f679b84831eebbcd86018f39ceefd9f34784b6074ea985680c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling strum v0.18.0 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling libc v0.2.93 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling futures-sink v0.3.14 [INFO] [stderr] Compiling futures-core v0.3.14 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling futures-io v0.3.14 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling futures-channel v0.3.14 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.6 [INFO] [stderr] Compiling futures-task v0.3.14 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling gio v0.9.1 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling cairo-rs v0.9.1 [INFO] [stderr] Compiling gdk-pixbuf v0.9.0 [INFO] [stderr] Compiling pango v0.9.1 [INFO] [stderr] Compiling gdk v0.13.2 [INFO] [stderr] Compiling atk v0.9.0 [INFO] [stderr] Compiling gtk v0.9.2 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling strum_macros v0.18.0 [INFO] [stderr] Compiling futures-macro v0.3.14 [INFO] [stderr] Compiling glib-macros v0.10.1 [INFO] [stderr] Compiling futures-util v0.3.14 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling system-deps v1.3.2 [INFO] [stderr] Compiling glib-sys v0.10.1 [INFO] [stderr] Compiling gobject-sys v0.10.0 [INFO] [stderr] Compiling gio-sys v0.10.1 [INFO] [stderr] Compiling cairo-sys-rs v0.10.0 [INFO] [stderr] Compiling pango-sys v0.10.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.10.0 [INFO] [stderr] Compiling gdk-sys v0.10.0 [INFO] [stderr] Compiling atk-sys v0.10.0 [INFO] [stderr] Compiling gtk-sys v0.10.0 [INFO] [stderr] Compiling futures-executor v0.3.14 [INFO] [stderr] Compiling glib v0.10.3 [INFO] [stderr] Compiling futures v0.3.14 [INFO] [stderr] Compiling lab2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Point_f64` should have an upper camel case name [INFO] [stdout] --> src/point.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Point_f64 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `PointF64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glib::clone` [INFO] [stdout] --> src/buttons_events.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use glib::clone; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | let mut state = button_state.borrow_mut(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let mut state = button_state.borrow_mut(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `TransformMatrix` to itself [INFO] [stdout] --> src/handle_draw.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | cube_transformation = cube_transformation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `TransformMatrix` to itself [INFO] [stdout] --> src/handle_draw.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | axes_transformation = axes_transformation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_text` and `draw_line` are never used [INFO] [stdout] --> src/canvas.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Canvas { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | fn print_text(&mut self, p: &Point, text: &str); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | fn draw_line(&mut self, points: &[Point]); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `gray` and `white` are never used [INFO] [stdout] --> src/color.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Color { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn gray() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn white() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/point.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Point { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn from(pt: Point_f64) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point_f64` is never constructed [INFO] [stdout] --> src/point.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Point_f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, `x`, and `y` are never used [INFO] [stdout] --> src/point.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Point_f64 { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 60 | pub fn new(x: f64, y: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn from(pt: Point) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn x(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn y(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_in_rectangle` is never used [INFO] [stdout] --> src/point.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn is_in_rectangle(lu: Point_f64, rd: Point_f64, point: Point_f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `default` is never used [INFO] [stdout] --> src/state.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn default(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stretchOx` should have a snake case name [INFO] [stdout] --> src/state.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub stretchOx: f64, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_ox` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stretchOy` should have a snake case name [INFO] [stdout] --> src/state.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub stretchOy: f64, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stretchOz` should have a snake case name [INFO] [stdout] --> src/state.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub stretchOz: f64, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_oz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveOx` should have a snake case name [INFO] [stdout] --> src/state.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub moveOx: f64, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `move_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveOy` should have a snake case name [INFO] [stdout] --> src/state.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub moveOy: f64, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `move_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveOz` should have a snake case name [INFO] [stdout] --> src/state.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub moveOz: f64, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `move_oz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rotateOx` should have a snake case name [INFO] [stdout] --> src/state.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub rotateOx: f64, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rotateOy` should have a snake case name [INFO] [stdout] --> src/state.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub rotateOy: f64, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rotateOz` should have a snake case name [INFO] [stdout] --> src/state.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub rotateOz: f64, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_oz` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 24s [INFO] running `Command { std: "docker" "inspect" "8dab026d3a63e6f679b84831eebbcd86018f39ceefd9f34784b6074ea985680c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dab026d3a63e6f679b84831eebbcd86018f39ceefd9f34784b6074ea985680c", kill_on_drop: false }` [INFO] [stdout] 8dab026d3a63e6f679b84831eebbcd86018f39ceefd9f34784b6074ea985680c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba1655bd49ee0c937164ba1a1b6d2c2f4c57538e27ca4fc1985dcddc4bfdf672 [INFO] running `Command { std: "docker" "start" "-a" "ba1655bd49ee0c937164ba1a1b6d2c2f4c57538e27ca4fc1985dcddc4bfdf672", kill_on_drop: false }` [INFO] [stderr] Compiling lab2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Point_f64` should have an upper camel case name [INFO] [stdout] --> src/point.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Point_f64 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `PointF64` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glib::clone` [INFO] [stdout] --> src/buttons_events.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use glib::clone; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/main.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | let mut state = button_state.borrow_mut(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | let mut state = button_state.borrow_mut(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `TransformMatrix` to itself [INFO] [stdout] --> src/handle_draw.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | cube_transformation = cube_transformation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `TransformMatrix` to itself [INFO] [stdout] --> src/handle_draw.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | axes_transformation = axes_transformation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_text` and `draw_line` are never used [INFO] [stdout] --> src/canvas.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Canvas { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | fn print_text(&mut self, p: &Point, text: &str); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | fn draw_line(&mut self, points: &[Point]); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `gray` and `white` are never used [INFO] [stdout] --> src/color.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Color { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn gray() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn white() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/point.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Point { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn from(pt: Point_f64) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point_f64` is never constructed [INFO] [stdout] --> src/point.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct Point_f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, `x`, and `y` are never used [INFO] [stdout] --> src/point.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Point_f64 { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 60 | pub fn new(x: f64, y: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn from(pt: Point) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn x(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn y(&self) -> f64 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_in_rectangle` is never used [INFO] [stdout] --> src/point.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn is_in_rectangle(lu: Point_f64, rd: Point_f64, point: Point_f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `default` is never used [INFO] [stdout] --> src/state.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn default(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stretchOx` should have a snake case name [INFO] [stdout] --> src/state.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub stretchOx: f64, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_ox` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stretchOy` should have a snake case name [INFO] [stdout] --> src/state.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub stretchOy: f64, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stretchOz` should have a snake case name [INFO] [stdout] --> src/state.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub stretchOz: f64, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_oz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveOx` should have a snake case name [INFO] [stdout] --> src/state.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub moveOx: f64, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `move_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveOy` should have a snake case name [INFO] [stdout] --> src/state.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub moveOy: f64, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `move_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `moveOz` should have a snake case name [INFO] [stdout] --> src/state.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub moveOz: f64, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `move_oz` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rotateOx` should have a snake case name [INFO] [stdout] --> src/state.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub rotateOx: f64, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_ox` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rotateOy` should have a snake case name [INFO] [stdout] --> src/state.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub rotateOy: f64, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_oy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `rotateOz` should have a snake case name [INFO] [stdout] --> src/state.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub rotateOz: f64, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_oz` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.68s [INFO] running `Command { std: "docker" "inspect" "ba1655bd49ee0c937164ba1a1b6d2c2f4c57538e27ca4fc1985dcddc4bfdf672", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba1655bd49ee0c937164ba1a1b6d2c2f4c57538e27ca4fc1985dcddc4bfdf672", kill_on_drop: false }` [INFO] [stdout] ba1655bd49ee0c937164ba1a1b6d2c2f4c57538e27ca4fc1985dcddc4bfdf672 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3a3b1d0488dc88578bc225efe70936d4f5c7619a801ddbdc3fe806f4fc789e69 [INFO] running `Command { std: "docker" "start" "-a" "3a3b1d0488dc88578bc225efe70936d4f5c7619a801ddbdc3fe806f4fc789e69", kill_on_drop: false }` [INFO] [stderr] warning: type `Point_f64` should have an upper camel case name [INFO] [stderr] --> src/point.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub struct Point_f64 { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to upper camel case: `PointF64` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `glib::clone` [INFO] [stderr] --> src/buttons_events.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use glib::clone; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/main.rs:118:21 [INFO] [stderr] | [INFO] [stderr] 118 | let mut state = button_state.borrow_mut(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:118:17 [INFO] [stderr] | [INFO] [stderr] 118 | let mut state = button_state.borrow_mut(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: useless assignment of variable of type `TransformMatrix` to itself [INFO] [stderr] --> src/handle_draw.rs:44:13 [INFO] [stderr] | [INFO] [stderr] 44 | cube_transformation = cube_transformation; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: useless assignment of variable of type `TransformMatrix` to itself [INFO] [stderr] --> src/handle_draw.rs:45:13 [INFO] [stderr] | [INFO] [stderr] 45 | axes_transformation = axes_transformation; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `print_text` and `draw_line` are never used [INFO] [stderr] --> src/canvas.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub trait Canvas { [INFO] [stderr] | ------ methods in this trait [INFO] [stderr] ... [INFO] [stderr] 10 | fn print_text(&mut self, p: &Point, text: &str); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 11 | fn draw_line(&mut self, points: &[Point]); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `gray` and `white` are never used [INFO] [stderr] --> src/color.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 7 | impl Color { [INFO] [stderr] | ---------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 16 | pub fn gray() -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 20 | pub fn white() -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from` is never used [INFO] [stderr] --> src/point.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl Point { [INFO] [stderr] | ---------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 15 | pub fn from(pt: Point_f64) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Point_f64` is never constructed [INFO] [stderr] --> src/point.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub struct Point_f64 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `from`, `x`, and `y` are never used [INFO] [stderr] --> src/point.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 59 | impl Point_f64 { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 60 | pub fn new(x: f64, y: f64) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | pub fn from(pt: Point) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | pub fn x(&self) -> f64 { [INFO] [stderr] | ^ [INFO] [stderr] ... [INFO] [stderr] 75 | pub fn y(&self) -> f64 { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: function `is_in_rectangle` is never used [INFO] [stderr] --> src/point.rs:124:8 [INFO] [stderr] | [INFO] [stderr] 124 | pub fn is_in_rectangle(lu: Point_f64, rd: Point_f64, point: Point_f64) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `default` is never used [INFO] [stderr] --> src/state.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl State { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 49 | pub fn default(&mut self) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: structure field `stretchOx` should have a snake case name [INFO] [stderr] --> src/state.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub stretchOx: f64, [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_ox` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `stretchOy` should have a snake case name [INFO] [stderr] --> src/state.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub stretchOy: f64, [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_oy` [INFO] [stderr] [INFO] [stderr] warning: structure field `stretchOz` should have a snake case name [INFO] [stderr] --> src/state.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub stretchOz: f64, [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `stretch_oz` [INFO] [stderr] [INFO] [stderr] warning: structure field `moveOx` should have a snake case name [INFO] [stderr] --> src/state.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 10 | pub moveOx: f64, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `move_ox` [INFO] [stderr] [INFO] [stderr] warning: structure field `moveOy` should have a snake case name [INFO] [stderr] --> src/state.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | pub moveOy: f64, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `move_oy` [INFO] [stderr] [INFO] [stderr] warning: structure field `moveOz` should have a snake case name [INFO] [stderr] --> src/state.rs:12:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub moveOz: f64, [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `move_oz` [INFO] [stderr] [INFO] [stderr] warning: structure field `rotateOx` should have a snake case name [INFO] [stderr] --> src/state.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub rotateOx: f64, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_ox` [INFO] [stderr] [INFO] [stderr] warning: structure field `rotateOy` should have a snake case name [INFO] [stderr] --> src/state.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | pub rotateOy: f64, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_oy` [INFO] [stderr] [INFO] [stderr] warning: structure field `rotateOz` should have a snake case name [INFO] [stderr] --> src/state.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub rotateOz: f64, [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `rotate_oz` [INFO] [stderr] [INFO] [stderr] warning: `lab2` (bin "lab2" test) generated 22 warnings (run `cargo fix --bin "lab2" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/lab2-a3d47f254f5ae5bc) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3a3b1d0488dc88578bc225efe70936d4f5c7619a801ddbdc3fe806f4fc789e69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a3b1d0488dc88578bc225efe70936d4f5c7619a801ddbdc3fe806f4fc789e69", kill_on_drop: false }` [INFO] [stdout] 3a3b1d0488dc88578bc225efe70936d4f5c7619a801ddbdc3fe806f4fc789e69