[INFO] cloning repository https://github.com/jarrett/rust-patterns [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jarrett/rust-patterns" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjarrett%2Frust-patterns", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjarrett%2Frust-patterns'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 123d17df7e51a0bce5d23fbc76c85e43cdae94bf [INFO] testing jarrett/rust-patterns against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjarrett%2Frust-patterns" "/workspace/builds/worker-117/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-117/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jarrett/rust-patterns on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jarrett/rust-patterns [INFO] finished tweaking git repo https://github.com/jarrett/rust-patterns [INFO] tweaked toml for git repo https://github.com/jarrett/rust-patterns written to /workspace/builds/worker-117/source/Cargo.toml [INFO] crate git repo https://github.com/jarrett/rust-patterns already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 744a0b8f87514bce5d651640ecb82ecd448765c97d3921799b362c1b674e4d94 [INFO] running `Command { std: "docker" "start" "-a" "744a0b8f87514bce5d651640ecb82ecd448765c97d3921799b362c1b674e4d94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "744a0b8f87514bce5d651640ecb82ecd448765c97d3921799b362c1b674e4d94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "744a0b8f87514bce5d651640ecb82ecd448765c97d3921799b362c1b674e4d94", kill_on_drop: false }` [INFO] [stdout] 744a0b8f87514bce5d651640ecb82ecd448765c97d3921799b362c1b674e4d94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18951d1a8b407da95b8aa0970e7c2f8ccd03e9e28a5a1d9d8803d7c85a7e2d42 [INFO] running `Command { std: "docker" "start" "-a" "18951d1a8b407da95b8aa0970e7c2f8ccd03e9e28a5a1d9d8803d7c85a7e2d42", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.39 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling uuid v0.6.2 [INFO] [stderr] Compiling rust-patterns v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/pointer.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | event: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 - event: Box, [INFO] [stdout] 11 + event: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/uuid.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | event: 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - event: Box, [INFO] [stdout] 26 + event: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/mod.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | queue: Vec> [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - queue: Vec> [INFO] [stdout] 16 + queue: Vec> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | fn as_any(&self) -> &Any; [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - fn as_any(&self) -> &Any; [INFO] [stdout] 8 + fn as_any(&self) -> &dyn Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | fn as_any(&self) -> &Any { self } [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn as_any(&self) -> &Any { self } [INFO] [stdout] 18 + fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/mod.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | fn as_any(&self) -> &Any; [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - fn as_any(&self) -> &Any; [INFO] [stdout] 8 + fn as_any(&self) -> &dyn Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/mod.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | fn as_any(&self) -> &Any { self } [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn as_any(&self) -> &Any { self } [INFO] [stdout] 25 + fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/uuid.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 52 | &self, registry: &'a HashMap> [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 - &self, registry: &'a HashMap> [INFO] [stdout] 52 + &self, registry: &'a HashMap> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/pointer.rs:30:44 [INFO] [stdout] | [INFO] [stdout] 30 | events.queue.drain(..).map(|event: 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 - events.queue.drain(..).map(|event: Box| [INFO] [stdout] 30 + events.queue.drain(..).map(|event: Box| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/uuid.rs:67:44 [INFO] [stdout] | [INFO] [stdout] 67 | events.queue.drain(..).map(|event: 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 - events.queue.drain(..).map(|event: Box| [INFO] [stdout] 67 + events.queue.drain(..).map(|event: Box| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `World` [INFO] [stdout] --> src/mutability.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct World { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Person` [INFO] [stdout] --> src/mutability.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `attack` [INFO] [stdout] --> src/mutability.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn attack(&self, other: &mut Person) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `attack_sibling` [INFO] [stdout] --> src/mutability.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn attack_sibling(&self) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `health` [INFO] [stdout] --> src/mutability.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn health(&self) -> u8 { self.health } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/mutability.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(armor: u8, strength: u8) -> Person { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `receive_attack` [INFO] [stdout] --> src/mutability.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn receive_attack(&mut self, strength: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_sibling` [INFO] [stdout] --> src/mutability.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn set_sibling(&mut self, sibling: &Rc>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `queue` [INFO] [stdout] --> src/events/mod.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | queue: Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Events` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/mod.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `message` [INFO] [stdout] --> src/events/mod.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | message: String [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `FooEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/mod.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 19 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `emit` [INFO] [stdout] --> src/events/mod.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | fn emit(&mut self, event: U) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/events/mod.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | fn new() -> Events { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/events/mod.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | fn new(message: &str) -> FooEvent { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Animal` [INFO] [stdout] --> src/lifetimes.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `borrow_name` [INFO] [stdout] --> src/lifetimes.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | fn borrow_name<'a>(&'a self) -> &'a String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `event` [INFO] [stdout] --> src/events/pointer.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | event: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PackagedEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/pointer.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `emitter` [INFO] [stdout] --> src/events/pointer.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | emitter: EmitterRef [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PackagedEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/pointer.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `events` [INFO] [stdout] --> src/events/pointer.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | events: Events [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Bar` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/pointer.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cast` [INFO] [stdout] --> src/events/pointer.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | fn cast(&self, f: F) -> Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `package` [INFO] [stdout] --> src/events/pointer.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | fn package(events: &mut Events, emitter: &EmitterRef) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uuid` [INFO] [stdout] --> src/events/uuid.rs:19:3 [INFO] [stdout] | [INFO] [stdout] 19 | uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EntityRef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/uuid.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `event` [INFO] [stdout] --> src/events/uuid.rs:26:3 [INFO] [stdout] | [INFO] [stdout] 26 | event: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PackagedEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/uuid.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `emitter` [INFO] [stdout] --> src/events/uuid.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | emitter: EntityRef [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PackagedEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/uuid.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `uuid` [INFO] [stdout] --> src/events/uuid.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 33 | uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Bar` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/uuid.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `events` [INFO] [stdout] --> src/events/uuid.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 34 | events: Events [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Bar` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/events/uuid.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clone` [INFO] [stdout] --> src/events/uuid.rs:41:6 [INFO] [stdout] | [INFO] [stdout] 41 | fn clone(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/events/uuid.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | fn new(uuid: Uuid) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resolve` [INFO] [stdout] --> src/events/uuid.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | fn resolve<'a>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cast` [INFO] [stdout] --> src/events/uuid.rs:59:6 [INFO] [stdout] | [INFO] [stdout] 59 | fn cast(&self, f: F) -> Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `package` [INFO] [stdout] --> src/events/uuid.rs:66:6 [INFO] [stdout] | [INFO] [stdout] 66 | fn package(events: &mut Events, emitter: &EntityRef) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/events/uuid.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | fn new() -> Bar { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 38.47s [INFO] running `Command { std: "docker" "inspect" "18951d1a8b407da95b8aa0970e7c2f8ccd03e9e28a5a1d9d8803d7c85a7e2d42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18951d1a8b407da95b8aa0970e7c2f8ccd03e9e28a5a1d9d8803d7c85a7e2d42", kill_on_drop: false }` [INFO] [stdout] 18951d1a8b407da95b8aa0970e7c2f8ccd03e9e28a5a1d9d8803d7c85a7e2d42 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e67047261c04e905c7d387a677ca27f15bcedd09c2a76bde73afcc193252c4d [INFO] running `Command { std: "docker" "start" "-a" "6e67047261c04e905c7d387a677ca27f15bcedd09c2a76bde73afcc193252c4d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rust-patterns v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/pointer.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | event: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 - event: Box, [INFO] [stdout] 11 + event: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/uuid.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | event: 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - event: Box, [INFO] [stdout] 26 + event: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/mod.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | queue: Vec> [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - queue: Vec> [INFO] [stdout] 16 + queue: Vec> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | fn as_any(&self) -> &Any; [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - fn as_any(&self) -> &Any; [INFO] [stdout] 8 + fn as_any(&self) -> &dyn Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | fn as_any(&self) -> &Any { self } [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn as_any(&self) -> &Any { self } [INFO] [stdout] 18 + fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/mod.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | fn as_any(&self) -> &Any; [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - fn as_any(&self) -> &Any; [INFO] [stdout] 8 + fn as_any(&self) -> &dyn Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/mod.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | fn as_any(&self) -> &Any { self } [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn as_any(&self) -> &Any { self } [INFO] [stdout] 25 + fn as_any(&self) -> &dyn Any { self } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/uuid.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 52 | &self, registry: &'a HashMap> [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 - &self, registry: &'a HashMap> [INFO] [stdout] 52 + &self, registry: &'a HashMap> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/pointer.rs:30:44 [INFO] [stdout] | [INFO] [stdout] 30 | events.queue.drain(..).map(|event: 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 - events.queue.drain(..).map(|event: Box| [INFO] [stdout] 30 + events.queue.drain(..).map(|event: Box| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/uuid.rs:67:44 [INFO] [stdout] | [INFO] [stdout] 67 | events.queue.drain(..).map(|event: 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 - events.queue.drain(..).map(|event: Box| [INFO] [stdout] 67 + events.queue.drain(..).map(|event: Box| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | let any: Box = Box::new(bar); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 36 - let any: Box = Box::new(bar); [INFO] [stdout] 36 + let any: Box = Box::new(bar); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let foo: &Foo = &bar as &Foo; [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 - let foo: &Foo = &bar as &Foo; [INFO] [stdout] 42 + let foo: &dyn Foo = &bar as &Foo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let any: &Any = foo.as_any(); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 43 - let any: &Any = foo.as_any(); [INFO] [stdout] 43 + let any: &dyn Any = foo.as_any(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | let foo: Box = Box::new(bar); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 - let foo: Box = Box::new(bar); [INFO] [stdout] 49 + let foo: Box = Box::new(bar); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let any: &Any = foo.as_any(); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 - let any: &Any = foo.as_any(); [INFO] [stdout] 50 + let any: &dyn Any = foo.as_any(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let any = &bar as &Any; [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 30 - let any = &bar as &Any; [INFO] [stdout] 30 + let any = &bar as &dyn Any; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/any.rs:42:32 [INFO] [stdout] | [INFO] [stdout] 42 | let foo: &Foo = &bar as &Foo; [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 - let foo: &Foo = &bar as &Foo; [INFO] [stdout] 42 + let foo: &Foo = &bar as &dyn Foo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/events/uuid.rs:86:41 [INFO] [stdout] | [INFO] [stdout] 86 | let mut registry: HashMap> = HashMap::new(); [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 - let mut registry: HashMap> = HashMap::new(); [INFO] [stdout] 86 + let mut registry: HashMap> = HashMap::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.90s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_patterns-3570588bf6e26bb5) [INFO] running `Command { std: "docker" "inspect" "6e67047261c04e905c7d387a677ca27f15bcedd09c2a76bde73afcc193252c4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e67047261c04e905c7d387a677ca27f15bcedd09c2a76bde73afcc193252c4d", kill_on_drop: false }` [INFO] [stdout] 6e67047261c04e905c7d387a677ca27f15bcedd09c2a76bde73afcc193252c4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-117/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fa8bbccc9cff1f935cb24deb3e17b95ddb492b2dd9484109ef9e10f957d2f88a [INFO] running `Command { std: "docker" "start" "-a" "fa8bbccc9cff1f935cb24deb3e17b95ddb492b2dd9484109ef9e10f957d2f88a", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/pointer.rs:11:14 [INFO] [stderr] | [INFO] [stderr] 11 | event: Box, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 11 - event: Box, [INFO] [stderr] 11 + event: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/uuid.rs:26:14 [INFO] [stderr] | [INFO] [stderr] 26 | event: Box, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 26 - event: Box, [INFO] [stderr] 26 + event: Box, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/mod.rs:16:18 [INFO] [stderr] | [INFO] [stderr] 16 | queue: Vec> [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 16 - queue: Vec> [INFO] [stderr] 16 + queue: Vec> [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:8:24 [INFO] [stderr] | [INFO] [stderr] 8 | fn as_any(&self) -> &Any; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 8 - fn as_any(&self) -> &Any; [INFO] [stderr] 8 + fn as_any(&self) -> &dyn Any; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:18:24 [INFO] [stderr] | [INFO] [stderr] 18 | fn as_any(&self) -> &Any { self } [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 18 - fn as_any(&self) -> &Any { self } [INFO] [stderr] 18 + fn as_any(&self) -> &dyn Any { self } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/mod.rs:8:24 [INFO] [stderr] | [INFO] [stderr] 8 | fn as_any(&self) -> &Any; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 8 - fn as_any(&self) -> &Any; [INFO] [stderr] 8 + fn as_any(&self) -> &dyn Any; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/mod.rs:25:24 [INFO] [stderr] | [INFO] [stderr] 25 | fn as_any(&self) -> &Any { self } [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 25 - fn as_any(&self) -> &Any { self } [INFO] [stderr] 25 + fn as_any(&self) -> &dyn Any { self } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/uuid.rs:52:44 [INFO] [stderr] | [INFO] [stderr] 52 | &self, registry: &'a HashMap> [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 52 - &self, registry: &'a HashMap> [INFO] [stderr] 52 + &self, registry: &'a HashMap> [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/pointer.rs:30:44 [INFO] [stderr] | [INFO] [stderr] 30 | events.queue.drain(..).map(|event: Box| [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 30 - events.queue.drain(..).map(|event: Box| [INFO] [stderr] 30 + events.queue.drain(..).map(|event: Box| [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/uuid.rs:67:44 [INFO] [stderr] | [INFO] [stderr] 67 | events.queue.drain(..).map(|event: Box| [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 67 - events.queue.drain(..).map(|event: Box| [INFO] [stderr] 67 + events.queue.drain(..).map(|event: Box| [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:36:20 [INFO] [stderr] | [INFO] [stderr] 36 | let any: Box = Box::new(bar); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 36 - let any: Box = Box::new(bar); [INFO] [stderr] 36 + let any: Box = Box::new(bar); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:42:17 [INFO] [stderr] | [INFO] [stderr] 42 | let foo: &Foo = &bar as &Foo; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 42 - let foo: &Foo = &bar as &Foo; [INFO] [stderr] 42 + let foo: &dyn Foo = &bar as &Foo; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:43:17 [INFO] [stderr] | [INFO] [stderr] 43 | let any: &Any = foo.as_any(); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 43 - let any: &Any = foo.as_any(); [INFO] [stderr] 43 + let any: &dyn Any = foo.as_any(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:49:20 [INFO] [stderr] | [INFO] [stderr] 49 | let foo: Box = Box::new(bar); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 49 - let foo: Box = Box::new(bar); [INFO] [stderr] 49 + let foo: Box = Box::new(bar); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:50:17 [INFO] [stderr] | [INFO] [stderr] 50 | let any: &Any = foo.as_any(); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 50 - let any: &Any = foo.as_any(); [INFO] [stderr] 50 + let any: &dyn Any = foo.as_any(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:30:26 [INFO] [stderr] | [INFO] [stderr] 30 | let any = &bar as &Any; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 30 - let any = &bar as &Any; [INFO] [stderr] 30 + let any = &bar as &dyn Any; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/any.rs:42:32 [INFO] [stderr] | [INFO] [stderr] 42 | let foo: &Foo = &bar as &Foo; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 42 - let foo: &Foo = &bar as &Foo; [INFO] [stderr] 42 + let foo: &Foo = &bar as &dyn Foo; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/events/uuid.rs:86:41 [INFO] [stderr] | [INFO] [stderr] 86 | let mut registry: HashMap> = HashMap::new(); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 86 - let mut registry: HashMap> = HashMap::new(); [INFO] [stderr] 86 + let mut registry: HashMap> = HashMap::new(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `rust-patterns` (bin "rust-patterns" test) generated 18 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_patterns-3570588bf6e26bb5) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test any::tests::example ... ok [INFO] [stdout] test events::pointer::tests::example ... ok [INFO] [stdout] test events::uuid::tests::example ... ok [INFO] [stdout] test lifetimes::tests::borrow_struct_field ... ok [INFO] [stdout] test mutability::tests::example ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fa8bbccc9cff1f935cb24deb3e17b95ddb492b2dd9484109ef9e10f957d2f88a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa8bbccc9cff1f935cb24deb3e17b95ddb492b2dd9484109ef9e10f957d2f88a", kill_on_drop: false }` [INFO] [stdout] fa8bbccc9cff1f935cb24deb3e17b95ddb492b2dd9484109ef9e10f957d2f88a