[INFO] fetching crate unsafe-any 0.4.2... [INFO] checking unsafe-any-0.4.2 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate unsafe-any 0.4.2 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate unsafe-any 0.4.2 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate unsafe-any 0.4.2 [INFO] finished tweaking crates.io crate unsafe-any 0.4.2 [INFO] tweaked toml for crates.io crate unsafe-any 0.4.2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0c324a72663e6c1c758814dfdc88975c13061561651e396aadc3c2b333bd6fd8 [INFO] running `Command { std: "docker" "start" "-a" "0c324a72663e6c1c758814dfdc88975c13061561651e396aadc3c2b333bd6fd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c324a72663e6c1c758814dfdc88975c13061561651e396aadc3c2b333bd6fd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c324a72663e6c1c758814dfdc88975c13061561651e396aadc3c2b333bd6fd8", kill_on_drop: false }` [INFO] [stdout] 0c324a72663e6c1c758814dfdc88975c13061561651e396aadc3c2b333bd6fd8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7af6bef39c95d41f602c249056b3ee44e0d4bf951ca7ef5af8c0a5f5b532f4e1 [INFO] running `Command { std: "docker" "start" "-a" "7af6bef39c95d41f602c249056b3ee44e0d4bf951ca7ef5af8c0a5f5b532f4e1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Checking unsafe-any v0.4.2 (/opt/rustwide/workdir) [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl UnsafeAny { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(missing_docs, warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(bare_trait_objects)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | impl dyn UnsafeAny { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:81:30 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe impl UnsafeAnyExt for 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | unsafe impl UnsafeAnyExt for dyn Any { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `Any` [INFO] [stdout] | [INFO] [stdout] 81 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | ++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe impl UnsafeAnyExt for UnsafeAny { } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 | unsafe impl UnsafeAnyExt for dyn UnsafeAny { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `UnsafeAny` [INFO] [stdout] | [INFO] [stdout] 82 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | ++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe impl UnsafeAnyExt for Any + Send { } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 | unsafe impl UnsafeAnyExt for dyn Any + Send { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `Any + Send` [INFO] [stdout] | [INFO] [stdout] 83 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | +++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:84:30 [INFO] [stdout] | [INFO] [stdout] 84 | unsafe impl UnsafeAnyExt for Any + Sync { } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 | unsafe impl UnsafeAnyExt for dyn Any + Sync { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `Any + Sync` [INFO] [stdout] | [INFO] [stdout] 84 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | +++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | unsafe impl UnsafeAnyExt for Any + Send + Sync { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 | unsafe impl UnsafeAnyExt for dyn Any + Send + Sync { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `Any + Send + Sync` [INFO] [stdout] | [INFO] [stdout] 85 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | ++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:86:30 [INFO] [stdout] | [INFO] [stdout] 86 | unsafe impl UnsafeAnyExt for UnsafeAny + Send { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 | unsafe impl UnsafeAnyExt for dyn UnsafeAny + Send { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `UnsafeAny + Send` [INFO] [stdout] | [INFO] [stdout] 86 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | +++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe impl UnsafeAnyExt for UnsafeAny + Sync { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 | unsafe impl UnsafeAnyExt for dyn UnsafeAny + Sync { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `UnsafeAny + Sync` [INFO] [stdout] | [INFO] [stdout] 87 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | +++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe impl UnsafeAnyExt for UnsafeAny + Send + Sync { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 | unsafe impl UnsafeAnyExt for dyn UnsafeAny + Send + Sync { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `UnsafeAny + Send + Sync` [INFO] [stdout] | [INFO] [stdout] 88 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | ++++++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:44:56 [INFO] [stdout] | [INFO] [stdout] 44 | pub unsafe fn downcast_unchecked(self: Box) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 | pub unsafe fn downcast_unchecked(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl UnsafeAny { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(missing_docs, warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(bare_trait_objects)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 | impl dyn UnsafeAny { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | let raw: *mut UnsafeAny = mem::transmute(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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | let raw: *mut dyn UnsafeAny = mem::transmute(self); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:81:30 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe impl UnsafeAnyExt for 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 81 | unsafe impl UnsafeAnyExt for dyn Any { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `Any` [INFO] [stdout] | [INFO] [stdout] 81 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | ++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe impl UnsafeAnyExt for UnsafeAny { } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 | unsafe impl UnsafeAnyExt for dyn UnsafeAny { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `UnsafeAny` [INFO] [stdout] | [INFO] [stdout] 82 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | ++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe impl UnsafeAnyExt for Any + Send { } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 | unsafe impl UnsafeAnyExt for dyn Any + Send { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `Any + Send` [INFO] [stdout] | [INFO] [stdout] 83 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | +++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:84:30 [INFO] [stdout] | [INFO] [stdout] 84 | unsafe impl UnsafeAnyExt for Any + Sync { } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 84 | unsafe impl UnsafeAnyExt for dyn Any + Sync { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `Any + Sync` [INFO] [stdout] | [INFO] [stdout] 84 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | +++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | unsafe impl UnsafeAnyExt for Any + Send + Sync { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 85 | unsafe impl UnsafeAnyExt for dyn Any + Send + Sync { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `Any + Send + Sync` [INFO] [stdout] | [INFO] [stdout] 85 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | ++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:86:30 [INFO] [stdout] | [INFO] [stdout] 86 | unsafe impl UnsafeAnyExt for UnsafeAny + Send { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 | unsafe impl UnsafeAnyExt for dyn UnsafeAny + Send { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `UnsafeAny + Send` [INFO] [stdout] | [INFO] [stdout] 86 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | +++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe impl UnsafeAnyExt for UnsafeAny + Sync { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 | unsafe impl UnsafeAnyExt for dyn UnsafeAny + Sync { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `UnsafeAny + Sync` [INFO] [stdout] | [INFO] [stdout] 87 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | +++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:88:30 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe impl UnsafeAnyExt for UnsafeAny + Send + Sync { } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 | unsafe impl UnsafeAnyExt for dyn UnsafeAny + Send + Sync { } [INFO] [stdout] | +++ [INFO] [stdout] help: alternatively use a blanket implementation to implement `UnsafeAnyExt` for all types that also implement `UnsafeAny + Send + Sync` [INFO] [stdout] | [INFO] [stdout] 88 | unsafe impl UnsafeAnyExt for T { } [INFO] [stdout] | ++++++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:44:56 [INFO] [stdout] | [INFO] [stdout] 44 | pub unsafe fn downcast_unchecked(self: Box) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 | pub unsafe fn downcast_unchecked(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `unsafe-any` (lib) due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | let raw: *mut UnsafeAny = mem::transmute(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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | let raw: *mut dyn UnsafeAny = mem::transmute(self); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:96:41 [INFO] [stdout] | [INFO] [stdout] 96 | let a = Box::new(7usize) as 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 96 | let a = Box::new(7usize) as Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:97:32 [INFO] [stdout] | [INFO] [stdout] 97 | unsafe { assert_eq!(*a.downcast_ref_unchecked::(), 7); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `UnsafeAnyExt::downcast_ref_unchecked(...)` to keep using the current method [INFO] [stdout] = note: `#[deny(unstable_name_collisions)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: add `#![feature(downcast_unchecked)]` to the crate attributes to enable `<(dyn Any + 'static)>::downcast_ref_unchecked` [INFO] [stdout] | [INFO] [stdout] 10 + #![feature(downcast_unchecked)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:99:45 [INFO] [stdout] | [INFO] [stdout] 99 | let mut a = Box::new(7usize) as 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 99 | let mut a = Box::new(7usize) as Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe { assert_eq!(*a.downcast_mut_unchecked::(), 7); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `UnsafeAnyExt::downcast_mut_unchecked(...)` to keep using the current method [INFO] [stdout] help: add `#![feature(downcast_unchecked)]` to the crate attributes to enable `<(dyn Any + 'static)>::downcast_mut_unchecked` [INFO] [stdout] | [INFO] [stdout] 10 + #![feature(downcast_unchecked)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:102:45 [INFO] [stdout] | [INFO] [stdout] 102 | let mut a = Box::new(7usize) as 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 102 | let mut a = Box::new(7usize) as Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 104 | *a.downcast_mut_unchecked::() = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `UnsafeAnyExt::downcast_mut_unchecked(...)` to keep using the current method [INFO] [stdout] help: add `#![feature(downcast_unchecked)]` to the crate attributes to enable `<(dyn Any + 'static)>::downcast_mut_unchecked` [INFO] [stdout] | [INFO] [stdout] 10 + #![feature(downcast_unchecked)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:105:27 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(*a.downcast_mut_unchecked::(), 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `UnsafeAnyExt::downcast_mut_unchecked(...)` to keep using the current method [INFO] [stdout] help: add `#![feature(downcast_unchecked)]` to the crate attributes to enable `<(dyn Any + 'static)>::downcast_mut_unchecked` [INFO] [stdout] | [INFO] [stdout] 10 + #![feature(downcast_unchecked)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:110:41 [INFO] [stdout] | [INFO] [stdout] 110 | let a = Box::new(7usize) as 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | let a = Box::new(7usize) as Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:113:45 [INFO] [stdout] | [INFO] [stdout] 113 | let mut a = Box::new(7usize) as 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 113 | let mut a = Box::new(7usize) as Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | let mut a = Box::new(7usize) as 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 116 | let mut a = Box::new(7usize) as Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:138:59 [INFO] [stdout] | [INFO] [stdout] 138 | let a = Box::new(Dropper { x: x.clone() }) as 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | let a = Box::new(Dropper { x: x.clone() }) as Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:147:59 [INFO] [stdout] | [INFO] [stdout] 147 | let a = Box::new(Dropper { x: x.clone() }) as 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 147 | let a = Box::new(Dropper { x: x.clone() }) as Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:149:34 [INFO] [stdout] | [INFO] [stdout] 149 | let dropper = unsafe { a.downcast_unchecked::() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `UnsafeAnyExt::downcast_unchecked(...)` to keep using the current method [INFO] [stdout] help: add `#![feature(downcast_unchecked)]` to the crate attributes to enable `Box::<(dyn Any + 'static), A>::downcast_unchecked` [INFO] [stdout] | [INFO] [stdout] 10 + #![feature(downcast_unchecked)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `unsafe-any` (lib test) due to 25 previous errors [INFO] running `Command { std: "docker" "inspect" "7af6bef39c95d41f602c249056b3ee44e0d4bf951ca7ef5af8c0a5f5b532f4e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7af6bef39c95d41f602c249056b3ee44e0d4bf951ca7ef5af8c0a5f5b532f4e1", kill_on_drop: false }` [INFO] [stdout] 7af6bef39c95d41f602c249056b3ee44e0d4bf951ca7ef5af8c0a5f5b532f4e1