[INFO] cloning repository https://github.com/loovjo/drawmetry [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/loovjo/drawmetry" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floovjo%2Fdrawmetry", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floovjo%2Fdrawmetry'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8dcd033c7524c5e0f3f79e05e8afe98ed81e0afc [INFO] checking loovjo/drawmetry against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floovjo%2Fdrawmetry" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/loovjo/drawmetry on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/loovjo/drawmetry [INFO] finished tweaking git repo https://github.com/loovjo/drawmetry [INFO] tweaked toml for git repo https://github.com/loovjo/drawmetry written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/loovjo/drawmetry 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded env_logger v0.5.12 [INFO] [stderr] Downloaded wincolor v1.0.0 [INFO] [stderr] Downloaded termcolor v1.0.1 [INFO] [stderr] Downloaded sdl2 v0.31.0 [INFO] [stderr] Downloaded ordered-float v1.0.1 [INFO] [stderr] Downloaded aho-corasick v0.6.6 [INFO] [stderr] Downloaded regex v1.0.2 [INFO] [stderr] Downloaded sdl2-sys v0.31.0 [INFO] [stderr] Downloaded quickcheck v0.6.2 [INFO] [stderr] Downloaded ytesrev v0.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9e89ba9da5b6cc9d020d60e92e0c5fb40f3ed6f94f74f4d1a9bf5abbf4d029d [INFO] running `Command { std: "docker" "start" "-a" "a9e89ba9da5b6cc9d020d60e92e0c5fb40f3ed6f94f74f4d1a9bf5abbf4d029d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9e89ba9da5b6cc9d020d60e92e0c5fb40f3ed6f94f74f4d1a9bf5abbf4d029d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9e89ba9da5b6cc9d020d60e92e0c5fb40f3ed6f94f74f4d1a9bf5abbf4d029d", kill_on_drop: false }` [INFO] [stdout] a9e89ba9da5b6cc9d020d60e92e0c5fb40f3ed6f94f74f4d1a9bf5abbf4d029d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1cd9a294692af49f5fff4775558ed6e70870bfb8b28ea5e3f6cb74c434d8850 [INFO] running `Command { std: "docker" "start" "-a" "d1cd9a294692af49f5fff4775558ed6e70870bfb8b28ea5e3f6cb74c434d8850", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Compiling version_check v0.1.4 [INFO] [stderr] Checking cfg-if v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Checking nodrop v0.1.12 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking memoffset v0.2.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Checking ucd-util v0.1.1 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Compiling rayon v1.0.2 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Compiling sdl2-sys v0.31.0 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking byteorder v1.2.6 [INFO] [stderr] Checking arrayvec v0.4.7 [INFO] [stderr] Checking humantime v1.1.1 [INFO] [stderr] Checking inflate v0.4.3 [INFO] [stderr] Checking regex-syntax v0.6.2 [INFO] [stderr] Checking log v0.4.4 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking termcolor v1.0.1 [INFO] [stderr] Checking bitflags v1.0.3 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking deflate v0.7.18 [INFO] [stderr] Checking rand_core v0.2.1 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking rand v0.4.3 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking rand v0.5.5 [INFO] [stderr] Checking aho-corasick v0.6.6 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking ordered-float v1.0.1 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking sdl2 v0.31.0 [INFO] [stderr] Checking ytesrev v0.2.2 [INFO] [stderr] Checking env_logger v0.5.12 [INFO] [stderr] Checking quickcheck v0.6.2 [INFO] [stderr] Checking drawmetry v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the `#[test]` attribute may only be used on a non-associated function [INFO] [stdout] --> src/backend/geometry.rs:490:1 [INFO] [stdout] | [INFO] [stdout] 490 | #[test] [INFO] [stdout] | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions [INFO] [stdout] 491 | / quickcheck! { [INFO] [stdout] 492 | | fn check_intersect_two_circles( [INFO] [stdout] 493 | | x1: f64, [INFO] [stdout] 494 | | y1: f64, [INFO] [stdout] ... | [INFO] [stdout] 585 | | } [INFO] [stdout] 586 | | } [INFO] [stdout] | |_- expected a non-associated function, found an item macro invocation [INFO] [stdout] | [INFO] [stdout] help: replace with conditional compilation to make the item only exist when tests are being run [INFO] [stdout] | [INFO] [stdout] 490 | #[cfg(test)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IntoIterator` is imported redundantly [INFO] [stdout] --> src/backend/geometry.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::IntoIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:124:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `IntoIterator` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/backend/geometry.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `State` is imported redundantly [INFO] [stdout] --> src/drawing_board/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ytesrev::drawable::State; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `State` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashSet` is imported redundantly [INFO] [stdout] --> src/tool/tools.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | -------- the item `HashSet` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `gwrapper` is imported redundantly [INFO] [stdout] --> src/tool/tools.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | -------- the item `gwrapper` is already imported here [INFO] [stdout] 5 | [INFO] [stdout] 6 | use backend::{geometry, gwrapper}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/tool/tools.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | -------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `DrawSettings` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use ytesrev::drawable::{DrawSettings, Drawable, KnownSize, Position, State}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `DrawSettings` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Drawable` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 10 | use ytesrev::drawable::{DrawSettings, Drawable, KnownSize, Position, State}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `Drawable` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Position` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:10:60 [INFO] [stdout] | [INFO] [stdout] 10 | use ytesrev::drawable::{DrawSettings, Drawable, KnownSize, Position, State}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `Position` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `State` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:10:70 [INFO] [stdout] | [INFO] [stdout] 10 | use ytesrev::drawable::{DrawSettings, Drawable, KnownSize, Position, State}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `State` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rect` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `Rect` is already imported here [INFO] [stdout] ... [INFO] [stdout] 14 | use ytesrev::sdl2::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `IntoIterator` is imported redundantly [INFO] [stdout] --> src/backend/geometry.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::IntoIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:124:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `IntoIterator` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/backend/geometry.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `State` is imported redundantly [INFO] [stdout] --> src/drawing_board/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ytesrev::drawable::State; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `State` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashSet` is imported redundantly [INFO] [stdout] --> src/tool/tools.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | -------- the item `HashSet` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `gwrapper` is imported redundantly [INFO] [stdout] --> src/tool/tools.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | -------- the item `gwrapper` is already imported here [INFO] [stdout] 5 | [INFO] [stdout] 6 | use backend::{geometry, gwrapper}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/tool/tools.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | -------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `DrawSettings` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use ytesrev::drawable::{DrawSettings, Drawable, KnownSize, Position, State}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `DrawSettings` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Drawable` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 10 | use ytesrev::drawable::{DrawSettings, Drawable, KnownSize, Position, State}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `Drawable` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Position` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:10:60 [INFO] [stdout] | [INFO] [stdout] 10 | use ytesrev::drawable::{DrawSettings, Drawable, KnownSize, Position, State}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `Position` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `State` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:10:70 [INFO] [stdout] | [INFO] [stdout] 10 | use ytesrev::drawable::{DrawSettings, Drawable, KnownSize, Position, State}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `State` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rect` is imported redundantly [INFO] [stdout] --> src/toolbar/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | use ytesrev::prelude::*; [INFO] [stdout] | ------------------- the item `Rect` is already imported here [INFO] [stdout] ... [INFO] [stdout] 14 | use ytesrev::sdl2::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/toolbar/mod.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | pub function: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 | pub function: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/toolbar/mod.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct MakeButton(Box Button>); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 | pub struct MakeButton(Box Button>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/toolbar/mod.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | pub function: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 | pub function: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/toolbar/mod.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct MakeButton(Box Button>); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 | pub struct MakeButton(Box Button>); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/drawing_board/mod.rs:144:31 [INFO] [stdout] | [INFO] [stdout] 144 | fn content(&self) -> Vec<&Drawable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 144 | fn content(&self) -> Vec<&dyn Drawable> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/drawing_board/mod.rs:148:43 [INFO] [stdout] | [INFO] [stdout] 148 | fn content_mut(&mut self) -> Vec<&mut Drawable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 | fn content_mut(&mut self) -> Vec<&mut dyn Drawable> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/toolbar/mod.rs:134:31 [INFO] [stdout] | [INFO] [stdout] 134 | fn content(&self) -> Vec<&Drawable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 134 | fn content(&self) -> Vec<&dyn Drawable> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/toolbar/mod.rs:138:43 [INFO] [stdout] | [INFO] [stdout] 138 | fn content_mut(&mut self) -> Vec<&mut Drawable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | fn content_mut(&mut self) -> Vec<&mut dyn Drawable> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/drawing_board/mod.rs:144:31 [INFO] [stdout] | [INFO] [stdout] 144 | fn content(&self) -> Vec<&Drawable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 144 | fn content(&self) -> Vec<&dyn Drawable> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/drawing_board/mod.rs:148:43 [INFO] [stdout] | [INFO] [stdout] 148 | fn content_mut(&mut self) -> Vec<&mut Drawable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 | fn content_mut(&mut self) -> Vec<&mut dyn Drawable> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/toolbar/mod.rs:134:31 [INFO] [stdout] | [INFO] [stdout] 134 | fn content(&self) -> Vec<&Drawable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 134 | fn content(&self) -> Vec<&dyn Drawable> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/toolbar/mod.rs:138:43 [INFO] [stdout] | [INFO] [stdout] 138 | fn content_mut(&mut self) -> Vec<&mut Drawable> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | fn content_mut(&mut self) -> Vec<&mut dyn Drawable> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/backend/geometry.rs:466:9 [INFO] [stdout] | [INFO] [stdout] 466 | intersect_two_circles((3., 5.), 2., -1., (5., 2.)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ --- -------- expected `f64`, found `({float}, {float})` [INFO] [stdout] | | [INFO] [stdout] | expected `(f64, f64)`, found `{float}` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/backend/geometry.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn intersect_two_circles( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 345 | (x1, y1): (f64, f64), [INFO] [stdout] | -------------------- [INFO] [stdout] 346 | r1: f64, [INFO] [stdout] | ------- [INFO] [stdout] 347 | (x2, y2): (f64, f64), [INFO] [stdout] | -------------------- [INFO] [stdout] 348 | r2: f64, [INFO] [stdout] | ------- [INFO] [stdout] help: swap these arguments [INFO] [stdout] | [INFO] [stdout] 466 | intersect_two_circles((3., 5.), 2., (5., 2.), -1.) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 6 arguments were supplied [INFO] [stdout] --> src/backend/geometry.rs:471:9 [INFO] [stdout] | [INFO] [stdout] 471 | intersect_two_circles(0., 0., 0., 1., 1., 0.), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ -- -- unexpected argument of type `{float}` [INFO] [stdout] | | [INFO] [stdout] | unexpected argument of type `{float}` [INFO] [stdout] | [INFO] [stdout] note: expected `(f64, f64)`, found floating-point number [INFO] [stdout] --> src/backend/geometry.rs:471:31 [INFO] [stdout] | [INFO] [stdout] 471 | intersect_two_circles(0., 0., 0., 1., 1., 0.), [INFO] [stdout] | ^^ [INFO] [stdout] = note: expected tuple `(f64, f64)` [INFO] [stdout] found type `{float}` [INFO] [stdout] note: expected `(f64, f64)`, found floating-point number [INFO] [stdout] --> src/backend/geometry.rs:471:39 [INFO] [stdout] | [INFO] [stdout] 471 | intersect_two_circles(0., 0., 0., 1., 1., 0.), [INFO] [stdout] | ^^ [INFO] [stdout] = note: expected tuple `(f64, f64)` [INFO] [stdout] found type `{float}` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/backend/geometry.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn intersect_two_circles( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 345 | (x1, y1): (f64, f64), [INFO] [stdout] | -------------------- [INFO] [stdout] 346 | r1: f64, [INFO] [stdout] | ------- [INFO] [stdout] 347 | (x2, y2): (f64, f64), [INFO] [stdout] | -------------------- [INFO] [stdout] 348 | r2: f64, [INFO] [stdout] | ------- [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 471 - intersect_two_circles(0., 0., 0., 1., 1., 0.), [INFO] [stdout] 471 + intersect_two_circles(/* (f64, f64) */, 0., /* (f64, f64) */, 1.), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta2` [INFO] [stdout] --> src/backend/geometry.rs:514:17 [INFO] [stdout] | [INFO] [stdout] 514 | let delta2 = (x - x2) * (x - x2) + (y - y2) * (y - y2) - r2 * r2; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `drawmetry` (bin "drawmetry" test) due to 3 previous errors; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d1cd9a294692af49f5fff4775558ed6e70870bfb8b28ea5e3f6cb74c434d8850", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1cd9a294692af49f5fff4775558ed6e70870bfb8b28ea5e3f6cb74c434d8850", kill_on_drop: false }` [INFO] [stdout] d1cd9a294692af49f5fff4775558ed6e70870bfb8b28ea5e3f6cb74c434d8850