[INFO] fetching crate frand 0.10.1... [INFO] testing frand-0.10.1 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate frand 0.10.1 into /workspace/builds/worker-3-tc1/source [INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain.toml [INFO] started tweaking crates.io crate frand 0.10.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate frand 0.10.1 [INFO] tweaked toml for crates.io crate frand 0.10.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate frand 0.10.1 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate frand 0.10.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ppv-lite86 v0.2.20 [INFO] [stderr] Downloaded unicode-ident v1.0.13 [INFO] [stderr] Downloaded adler2 v2.0.0 [INFO] [stderr] Downloaded getrandom v0.2.15 [INFO] [stderr] Downloaded simd-adler32 v0.3.7 [INFO] [stderr] Downloaded fastrand v2.1.1 [INFO] [stderr] Downloaded fdeflate v0.3.4 [INFO] [stderr] Downloaded autocfg v1.3.0 [INFO] [stderr] Downloaded crc32fast v1.4.2 [INFO] [stderr] Downloaded zerocopy-derive v0.7.35 [INFO] [stderr] Downloaded miniz_oxide v0.8.0 [INFO] [stderr] Downloaded miniz_oxide v0.7.4 [INFO] [stderr] Downloaded bytemuck v1.18.0 [INFO] [stderr] Downloaded png v0.17.13 [INFO] [stderr] Downloaded flate2 v1.0.33 [INFO] [stderr] Downloaded proc-macro2 v1.0.86 [INFO] [stderr] Downloaded zerocopy v0.7.35 [INFO] [stderr] Downloaded quote v1.0.37 [INFO] [stderr] Downloaded syn v2.0.77 [INFO] [stderr] Downloaded glam v0.29.0 [INFO] [stderr] Downloaded libc v0.2.158 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6e7e7da757a8f0ac7d95433b043296d271d87749d681771d638071219a2fbcd7 [INFO] running `Command { std: "docker" "start" "-a" "6e7e7da757a8f0ac7d95433b043296d271d87749d681771d638071219a2fbcd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e7e7da757a8f0ac7d95433b043296d271d87749d681771d638071219a2fbcd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e7e7da757a8f0ac7d95433b043296d271d87749d681771d638071219a2fbcd7", kill_on_drop: false }` [INFO] [stdout] 6e7e7da757a8f0ac7d95433b043296d271d87749d681771d638071219a2fbcd7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2450ab40739acdfb5ade3156bda4cbb8ed52c0545abb8917399e598aa4b9c755 [INFO] running `Command { std: "docker" "start" "-a" "2450ab40739acdfb5ade3156bda4cbb8ed52c0545abb8917399e598aa4b9c755", kill_on_drop: false }` [INFO] [stderr] Compiling glam v0.29.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling frand v0.10.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u8::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u16::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u32::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u64::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u128::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { usize::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u16::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u32::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u64::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u128::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.53s [INFO] running `Command { std: "docker" "inspect" "2450ab40739acdfb5ade3156bda4cbb8ed52c0545abb8917399e598aa4b9c755", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2450ab40739acdfb5ade3156bda4cbb8ed52c0545abb8917399e598aa4b9c755", kill_on_drop: false }` [INFO] [stdout] 2450ab40739acdfb5ade3156bda4cbb8ed52c0545abb8917399e598aa4b9c755 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a69bf92522c7f07b5a0322edeffe2a942a5f23bb8fb6379cfa8a6f80389a1b4 [INFO] running `Command { std: "docker" "start" "-a" "1a69bf92522c7f07b5a0322edeffe2a942a5f23bb8fb6379cfa8a6f80389a1b4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling bytemuck v1.18.0 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling flate2 v1.0.33 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling frand v0.10.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u8::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u16::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u32::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u64::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u128::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { usize::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u16::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u32::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u64::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u128::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u8::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u16::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u32::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u64::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u128::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { usize::cast_signed(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u16::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u32::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u64::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/gen/int.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | / implement_cast! { [INFO] [stdout] 80 | | u8 => i8, [INFO] [stdout] 81 | | u16 => i16, [INFO] [stdout] 82 | | u32 => i32, [INFO] [stdout] ... | [INFO] [stdout] 108 | | u128 => [i64; 2], [INFO] [stdout] 109 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stdout] 73 + unsafe { u128::to_ne_bytes(<$from>::random(rng)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.24s [INFO] running `Command { std: "docker" "inspect" "1a69bf92522c7f07b5a0322edeffe2a942a5f23bb8fb6379cfa8a6f80389a1b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a69bf92522c7f07b5a0322edeffe2a942a5f23bb8fb6379cfa8a6f80389a1b4", kill_on_drop: false }` [INFO] [stdout] 1a69bf92522c7f07b5a0322edeffe2a942a5f23bb8fb6379cfa8a6f80389a1b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1e66648abfd9bc4ca154a8b6cf4d35f9b04281ed147e9a16b03d1a85c8e08bdc [INFO] running `Command { std: "docker" "start" "-a" "1e66648abfd9bc4ca154a8b6cf4d35f9b04281ed147e9a16b03d1a85c8e08bdc", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u8::cast_signed(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u16::cast_signed(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u32::cast_signed(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u64::cast_signed(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u128::cast_signed(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { usize::cast_signed(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u16::to_ne_bytes(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u32::to_ne_bytes(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u64::to_ne_bytes(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/gen/int.rs:73:30 [INFO] [stderr] | [INFO] [stderr] 73 | unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | / implement_cast! { [INFO] [stderr] 80 | | u8 => i8, [INFO] [stderr] 81 | | u16 => i16, [INFO] [stderr] 82 | | u32 => i32, [INFO] [stderr] ... | [INFO] [stderr] 108 | | u128 => [i64; 2], [INFO] [stderr] 109 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: this warning originates in the macro `implement_cast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: replace this with [INFO] [stderr] | [INFO] [stderr] 73 - unsafe { transmute(<$from>::random(rng)) } [INFO] [stderr] 73 + unsafe { u128::to_ne_bytes(<$from>::random(rng)) } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `frand` (lib) generated 10 warnings (run `cargo fix --lib -p frand` to apply 10 suggestions) [INFO] [stderr] warning: `frand` (lib test) generated 10 warnings (10 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/frand-76795ee7297f70ad) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test thread::test::test_thread_rng ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests frand [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 22) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "1e66648abfd9bc4ca154a8b6cf4d35f9b04281ed147e9a16b03d1a85c8e08bdc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e66648abfd9bc4ca154a8b6cf4d35f9b04281ed147e9a16b03d1a85c8e08bdc", kill_on_drop: false }` [INFO] [stdout] 1e66648abfd9bc4ca154a8b6cf4d35f9b04281ed147e9a16b03d1a85c8e08bdc