[INFO] cloning repository https://github.com/ssaavedra/rust-lenses [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ssaavedra/rust-lenses" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssaavedra%2Frust-lenses", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssaavedra%2Frust-lenses'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1df6d3317f276faef54b6c14548e8cc9464cd236 [INFO] testing ssaavedra/rust-lenses against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fssaavedra%2Frust-lenses" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ssaavedra/rust-lenses on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ssaavedra/rust-lenses [INFO] finished tweaking git repo https://github.com/ssaavedra/rust-lenses [INFO] tweaked toml for git repo https://github.com/ssaavedra/rust-lenses written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/ssaavedra/rust-lenses already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2c3fb318021b3e0698843f46eac76d51c2182dc17e0a1c7cb481b2ed0ea706e8 [INFO] running `Command { std: "docker" "start" "-a" "2c3fb318021b3e0698843f46eac76d51c2182dc17e0a1c7cb481b2ed0ea706e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c3fb318021b3e0698843f46eac76d51c2182dc17e0a1c7cb481b2ed0ea706e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c3fb318021b3e0698843f46eac76d51c2182dc17e0a1c7cb481b2ed0ea706e8", kill_on_drop: false }` [INFO] [stdout] 2c3fb318021b3e0698843f46eac76d51c2182dc17e0a1c7cb481b2ed0ea706e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2893f8b0f4a8c3780f1bb8e3271e94f80ca4bb43b4cd4f73c674c7f757a0a47a [INFO] running `Command { std: "docker" "start" "-a" "2893f8b0f4a8c3780f1bb8e3271e94f80ca4bb43b4cd4f73c674c7f757a0a47a", kill_on_drop: false }` [INFO] [stderr] Compiling lenses v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [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 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] 24 + pub fn lens<'a, S, A>(getter: &'a dyn Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:24:60 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] 24 + pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a dyn Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] 31 + pub fn compose<'a, S, A, B>(lhs: &'a dyn Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:31:59 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] 31 + pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a dyn Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | view: &'a Fn(&S) -> A, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 - view: &'a Fn(&S) -> A, [INFO] [stdout] 79 + view: &'a dyn Fn(&S) -> A, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 80 | set: &'a Fn (&S, &A) -> S, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 80 - set: &'a Fn (&S, &A) -> S, [INFO] [stdout] 80 + set: &'a dyn Fn (&S, &A) -> S, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | lhs: &'a Lens, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 - lhs: &'a Lens, [INFO] [stdout] 84 + lhs: &'a dyn Lens, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | rhs: &'a Lens, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 - rhs: &'a Lens, [INFO] [stdout] 85 + rhs: &'a dyn Lens, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ModLensImpl<'a, 's, S, A>(&'s Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - pub struct ModLensImpl<'a, 's, S, A>(&'s Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] 20 + pub struct ModLensImpl<'a, 's, S, A>(&'s dyn Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | lhs: &'s ModLens<'a, S, A>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - lhs: &'s ModLens<'a, S, A>, [INFO] [stdout] 22 + lhs: &'s dyn ModLens<'a, S, A>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | rhs: &'s ModLens<'a, A, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - rhs: &'s ModLens<'a, A, B>, [INFO] [stdout] 23 + rhs: &'s dyn ModLens<'a, A, B>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:38:46 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] 38 + pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s dyn ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:38:74 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] 38 + pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s dyn ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:45:43 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn mod_lens<'a, 's, S, A>(getter: &'s Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - pub fn mod_lens<'a, 's, S, A>(getter: &'s Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] 45 + pub fn mod_lens<'a, 's, S, A>(getter: &'s dyn Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.37s [INFO] running `Command { std: "docker" "inspect" "2893f8b0f4a8c3780f1bb8e3271e94f80ca4bb43b4cd4f73c674c7f757a0a47a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2893f8b0f4a8c3780f1bb8e3271e94f80ca4bb43b4cd4f73c674c7f757a0a47a", kill_on_drop: false }` [INFO] [stdout] 2893f8b0f4a8c3780f1bb8e3271e94f80ca4bb43b4cd4f73c674c7f757a0a47a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e986430afd64071f621cf3bcfce44032b82787705408f337574e7d5d202c4182 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e986430afd64071f621cf3bcfce44032b82787705408f337574e7d5d202c4182", kill_on_drop: false }` [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [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 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] 24 + pub fn lens<'a, S, A>(getter: &'a dyn Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:24:60 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] 24 + pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a dyn Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] 31 + pub fn compose<'a, S, A, B>(lhs: &'a dyn Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:31:59 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] 31 + pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a dyn Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | view: &'a Fn(&S) -> A, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 - view: &'a Fn(&S) -> A, [INFO] [stdout] 79 + view: &'a dyn Fn(&S) -> A, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lenses v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 80 | set: &'a Fn (&S, &A) -> S, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 80 - set: &'a Fn (&S, &A) -> S, [INFO] [stdout] 80 + set: &'a dyn Fn (&S, &A) -> S, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | lhs: &'a Lens, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 - lhs: &'a Lens, [INFO] [stdout] 84 + lhs: &'a dyn Lens, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | rhs: &'a Lens, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 - rhs: &'a Lens, [INFO] [stdout] 85 + rhs: &'a dyn Lens, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ModLensImpl<'a, 's, S, A>(&'s Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - pub struct ModLensImpl<'a, 's, S, A>(&'s Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] 20 + pub struct ModLensImpl<'a, 's, S, A>(&'s dyn Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | lhs: &'s ModLens<'a, S, A>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - lhs: &'s ModLens<'a, S, A>, [INFO] [stdout] 22 + lhs: &'s dyn ModLens<'a, S, A>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | rhs: &'s ModLens<'a, A, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - rhs: &'s ModLens<'a, A, B>, [INFO] [stdout] 23 + rhs: &'s dyn ModLens<'a, A, B>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:38:46 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] 38 + pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s dyn ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:38:74 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] 38 + pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s dyn ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:45:43 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn mod_lens<'a, 's, S, A>(getter: &'s Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - pub fn mod_lens<'a, 's, S, A>(getter: &'s Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] 45 + pub fn mod_lens<'a, 's, S, A>(getter: &'s dyn Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [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 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] 24 + pub fn lens<'a, S, A>(getter: &'a dyn Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:24:60 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] 24 + pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a dyn Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:31:38 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] 31 + pub fn compose<'a, S, A, B>(lhs: &'a dyn Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:31:59 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] 31 + pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a dyn Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | view: &'a Fn(&S) -> A, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 - view: &'a Fn(&S) -> A, [INFO] [stdout] 79 + view: &'a dyn Fn(&S) -> A, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:80:14 [INFO] [stdout] | [INFO] [stdout] 80 | set: &'a Fn (&S, &A) -> S, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 80 - set: &'a Fn (&S, &A) -> S, [INFO] [stdout] 80 + set: &'a dyn Fn (&S, &A) -> S, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | lhs: &'a Lens, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 - lhs: &'a Lens, [INFO] [stdout] 84 + lhs: &'a dyn Lens, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lens.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | rhs: &'a Lens, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 - rhs: &'a Lens, [INFO] [stdout] 85 + rhs: &'a dyn Lens, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ModLensImpl<'a, 's, S, A>(&'s Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - pub struct ModLensImpl<'a, 's, S, A>(&'s Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] 20 + pub struct ModLensImpl<'a, 's, S, A>(&'s dyn Fn(&'a mut S) -> &'a mut A); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | lhs: &'s ModLens<'a, S, A>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - lhs: &'s ModLens<'a, S, A>, [INFO] [stdout] 22 + lhs: &'s dyn ModLens<'a, S, A>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | rhs: &'s ModLens<'a, A, B>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - rhs: &'s ModLens<'a, A, B>, [INFO] [stdout] 23 + rhs: &'s dyn ModLens<'a, A, B>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:38:46 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] 38 + pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s dyn ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:38:74 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] 38 + pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s dyn ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutable.rs:45:43 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn mod_lens<'a, 's, S, A>(getter: &'s Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - pub fn mod_lens<'a, 's, S, A>(getter: &'s Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] 45 + pub fn mod_lens<'a, 's, S, A>(getter: &'s dyn Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flag` [INFO] [stdout] --> tests/lens.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | flag: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Country` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/lens.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> tests/lens.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | address: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ExternalAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/lens.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `zip` [INFO] [stdout] --> tests/lens.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | zip: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ExternalAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/lens.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `first_name` [INFO] [stdout] --> tests/lens.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | first_name: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PersonInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/lens.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_name` [INFO] [stdout] --> tests/lens.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | last_name: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PersonInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/lens.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `office_address` [INFO] [stdout] --> tests/lens.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | office_address: ExternalAddress<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PersonInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/lens.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `flag` [INFO] [stdout] --> tests/mutable.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | flag: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Country` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/mutable.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> tests/mutable.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | address: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ExternalAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/mutable.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `zip` [INFO] [stdout] --> tests/mutable.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | zip: i64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ExternalAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> tests/mutable.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Copy, Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.04s [INFO] running `Command { std: "docker" "inspect" "e986430afd64071f621cf3bcfce44032b82787705408f337574e7d5d202c4182", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e986430afd64071f621cf3bcfce44032b82787705408f337574e7d5d202c4182", kill_on_drop: false }` [INFO] [stdout] e986430afd64071f621cf3bcfce44032b82787705408f337574e7d5d202c4182 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b648649ebc53acb08a9c443ff35d83024b62599b954379b40d22ad42292bb589 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b648649ebc53acb08a9c443ff35d83024b62599b954379b40d22ad42292bb589", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lens.rs:24:35 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [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 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 24 - pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stderr] 24 + pub fn lens<'a, S, A>(getter: &'a dyn Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lens.rs:24:60 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 24 - pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stderr] 24 + pub fn lens<'a, S, A>(getter: &'a Fn(&S) -> A, setter: &'a dyn Fn(&S, &A) -> S) -> LensImpl<'a, S, A> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lens.rs:31:38 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 31 - pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stderr] 31 + pub fn compose<'a, S, A, B>(lhs: &'a dyn Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lens.rs:31:59 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 31 - pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stderr] 31 + pub fn compose<'a, S, A, B>(lhs: &'a Lens, rhs: &'a dyn Lens) -> CompoundLensImpl<'a, S, A, B> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lens.rs:79:15 [INFO] [stderr] | [INFO] [stderr] 79 | view: &'a Fn(&S) -> A, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 79 - view: &'a Fn(&S) -> A, [INFO] [stderr] 79 + view: &'a dyn Fn(&S) -> A, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lens.rs:80:14 [INFO] [stderr] | [INFO] [stderr] 80 | set: &'a Fn (&S, &A) -> S, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 80 - set: &'a Fn (&S, &A) -> S, [INFO] [stderr] 80 + set: &'a dyn Fn (&S, &A) -> S, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lens.rs:84:14 [INFO] [stderr] | [INFO] [stderr] 84 | lhs: &'a Lens, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 84 - lhs: &'a Lens, [INFO] [stderr] 84 + lhs: &'a dyn Lens, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lens.rs:85:14 [INFO] [stderr] | [INFO] [stderr] 85 | rhs: &'a Lens, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 85 - rhs: &'a Lens, [INFO] [stderr] 85 + rhs: &'a dyn Lens, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutable.rs:20:42 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct ModLensImpl<'a, 's, S, A>(&'s Fn(&'a mut S) -> &'a mut A); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 20 - pub struct ModLensImpl<'a, 's, S, A>(&'s Fn(&'a mut S) -> &'a mut A); [INFO] [stderr] 20 + pub struct ModLensImpl<'a, 's, S, A>(&'s dyn Fn(&'a mut S) -> &'a mut A); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutable.rs:22:14 [INFO] [stderr] | [INFO] [stderr] 22 | lhs: &'s ModLens<'a, S, A>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 22 - lhs: &'s ModLens<'a, S, A>, [INFO] [stderr] 22 + lhs: &'s dyn ModLens<'a, S, A>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutable.rs:23:14 [INFO] [stderr] | [INFO] [stderr] 23 | rhs: &'s ModLens<'a, A, B>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 23 - rhs: &'s ModLens<'a, A, B>, [INFO] [stderr] 23 + rhs: &'s dyn ModLens<'a, A, B>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutable.rs:38:46 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 38 - pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stderr] 38 + pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s dyn ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutable.rs:38:74 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 38 - pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stderr] 38 + pub fn mod_compose<'a, 's, S, A, B>(lhs: &'s ModLens<'a, S, A>, rhs: &'s dyn ModLens<'a, A, B>) -> ModLensCompoundImpl<'a, 's, S, A, B> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutable.rs:45:43 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn mod_lens<'a, 's, S, A>(getter: &'s Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 45 - pub fn mod_lens<'a, 's, S, A>(getter: &'s Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stderr] 45 + pub fn mod_lens<'a, 's, S, A>(getter: &'s dyn Fn(&'a mut S) -> &'a mut A) -> ModLensImpl<'a, 's, S, A> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `lenses` (lib) generated 14 warnings [INFO] [stderr] warning: field is never read: `flag` [INFO] [stderr] --> tests/mutable.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | flag: i64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Country` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/mutable.rs:4:16 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `address` [INFO] [stderr] --> tests/mutable.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | address: &'a str, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ExternalAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/mutable.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 10 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `zip` [INFO] [stderr] --> tests/mutable.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | zip: i64, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ExternalAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/mutable.rs:10:16 [INFO] [stderr] | [INFO] [stderr] 10 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `lenses` (lib test) generated 14 warnings (14 duplicates) [INFO] [stderr] warning: `lenses` (test "mutable") generated 3 warnings [INFO] [stderr] warning: field is never read: `flag` [INFO] [stderr] --> tests/lens.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | flag: i64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Country` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/lens.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `address` [INFO] [stderr] --> tests/lens.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | address: &'a str, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ExternalAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/lens.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `zip` [INFO] [stderr] --> tests/lens.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | zip: i64, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ExternalAddress` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/lens.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `first_name` [INFO] [stderr] --> tests/lens.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | first_name: &'a str, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PersonInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/lens.rs:16:16 [INFO] [stderr] | [INFO] [stderr] 16 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `last_name` [INFO] [stderr] --> tests/lens.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | last_name: &'a str, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PersonInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/lens.rs:16:16 [INFO] [stderr] | [INFO] [stderr] 16 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `office_address` [INFO] [stderr] --> tests/lens.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | office_address: ExternalAddress<'a>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `PersonInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> tests/lens.rs:16:16 [INFO] [stderr] | [INFO] [stderr] 16 | #[derive(Copy, Clone, Debug)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `lenses` (test "lens") generated 6 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/lenses-1b912b0425b2e2c3) [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] [stderr] Running tests/lens.rs (/opt/rustwide/target/debug/deps/lens-dd6f6f9f157c3255) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] Running tests/mutable.rs (/opt/rustwide/target/debug/deps/mutable-c27b0ea986eca84e) [INFO] [stdout] test main ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test1 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests lenses [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" "b648649ebc53acb08a9c443ff35d83024b62599b954379b40d22ad42292bb589", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b648649ebc53acb08a9c443ff35d83024b62599b954379b40d22ad42292bb589", kill_on_drop: false }` [INFO] [stdout] b648649ebc53acb08a9c443ff35d83024b62599b954379b40d22ad42292bb589