[INFO] fetching crate rend 0.5.2... [INFO] checking rend-0.5.2 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate rend 0.5.2 into /workspace/builds/worker-0-tc2/source [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate rend 0.5.2 [INFO] finished tweaking crates.io crate rend 0.5.2 [INFO] tweaked toml for crates.io crate rend 0.5.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rend 0.5.2 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57dca1d27d945873421e4fc5423657a8974ef91839eab5e3ac2172e2866f38c4 [INFO] running `Command { std: "docker" "start" "-a" "57dca1d27d945873421e4fc5423657a8974ef91839eab5e3ac2172e2866f38c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57dca1d27d945873421e4fc5423657a8974ef91839eab5e3ac2172e2866f38c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57dca1d27d945873421e4fc5423657a8974ef91839eab5e3ac2172e2866f38c4", kill_on_drop: false }` [INFO] [stdout] 57dca1d27d945873421e4fc5423657a8974ef91839eab5e3ac2172e2866f38c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34bb2b43b8e75e438ba2c864720e33c49c39a236aa468bd82cdaa53255c95927 [INFO] running `Command { std: "docker" "start" "-a" "34bb2b43b8e75e438ba2c864720e33c49c39a236aa468bd82cdaa53255c95927", kill_on_drop: false }` [INFO] [stderr] Checking rend v0.5.2 (/opt/rustwide/workdir) [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | warnings, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unnecessary_transmutes)]` implied by `#[deny(warnings)]` [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | unsafe { transmute::(swap_endian!($endian self.0)) } [INFO] [stdout] | ----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `char::from_u32_unchecked` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:220:1 [INFO] [stdout] | [INFO] [stdout] 220 | define_char!(char_le: little); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using `char::from_u32(…).unwrap()` [INFO] [stdout] = note: this error originates in the macro `impl_char` which comes from the expansion of the macro `define_char` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | unsafe { transmute::(swap_endian!($endian self.0)) } [INFO] [stdout] | ----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `char::from_u32_unchecked` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:221:1 [INFO] [stdout] | [INFO] [stdout] 221 | define_char!(char_be: big); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using `char::from_u32(…).unwrap()` [INFO] [stdout] = note: this error originates in the macro `impl_char` which comes from the expansion of the macro `define_char` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | unsafe { transmute::(swap_endian!($endian self.0)) } [INFO] [stdout] | ----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `char::from_u32_unchecked` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 168 | define_unaligned_char!(char_ule: little); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using `char::from_u32(…).unwrap()` [INFO] [stdout] = note: this error originates in the macro `impl_char` which comes from the expansion of the macro `define_unaligned_char` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | unsafe { transmute::(swap_endian!($endian self.0)) } [INFO] [stdout] | ----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `char::from_u32_unchecked` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | define_unaligned_char!(char_ube: big); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using `char::from_u32(…).unwrap()` [INFO] [stdout] = note: this error originates in the macro `impl_char` which comes from the expansion of the macro `define_unaligned_char` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | warnings, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unnecessary_transmutes)]` implied by `#[deny(warnings)]` [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rend` (lib) due to 36 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / define_floats! { [INFO] [stdout] 191 | | f32_le f32_be: 4 f32 as u32, [INFO] [stdout] 192 | | f64_le f64_be: 8 f64 as u64, [INFO] [stdout] 193 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | unsafe { transmute::(swap_endian!($endian self.0)) } [INFO] [stdout] | ----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `char::from_u32_unchecked` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:220:1 [INFO] [stdout] | [INFO] [stdout] 220 | define_char!(char_le: little); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using `char::from_u32(…).unwrap()` [INFO] [stdout] = note: this error originates in the macro `impl_char` which comes from the expansion of the macro `define_char` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | unsafe { transmute::(swap_endian!($endian self.0)) } [INFO] [stdout] | ----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `char::from_u32_unchecked` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:221:1 [INFO] [stdout] | [INFO] [stdout] 221 | define_char!(char_be: big); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using `char::from_u32(…).unwrap()` [INFO] [stdout] = note: this error originates in the macro `impl_char` which comes from the expansion of the macro `define_char` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let value = unsafe { transmute::<$prim, $prim_int>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:151:38 [INFO] [stdout] | [INFO] [stdout] 151 | let value = unsafe { transmute::<$prim_int, $prim>(value) }; [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:170:38 [INFO] [stdout] | [INFO] [stdout] 170 | let value = unsafe { transmute::<$prim, $prim_int>(self.0) }; [INFO] [stdout] | -----------------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | unsafe { transmute::<$prim_int, $prim>(value) } [INFO] [stdout] | -----------------------------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::from_bits` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / define_unaligned_floats! { [INFO] [stdout] 138 | | f32_ule f32_ube: 4 f32 as u32, [INFO] [stdout] 139 | | f64_ule f64_ube: 8 f64 as u64, [INFO] [stdout] 140 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `impl_float` which comes from the expansion of the macro `define_unaligned_floats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | unsafe { transmute::(swap_endian!($endian self.0)) } [INFO] [stdout] | ----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `char::from_u32_unchecked` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 168 | define_unaligned_char!(char_ule: little); [INFO] [stdout] | ---------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using `char::from_u32(…).unwrap()` [INFO] [stdout] = note: this error originates in the macro `impl_char` which comes from the expansion of the macro `define_unaligned_char` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary transmute [INFO] [stdout] --> src/common.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | unsafe { transmute::(swap_endian!($endian self.0)) } [INFO] [stdout] | ----------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `char::from_u32_unchecked` [INFO] [stdout] | [INFO] [stdout] ::: src/unaligned.rs:169:1 [INFO] [stdout] | [INFO] [stdout] 169 | define_unaligned_char!(char_ube: big); [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using `char::from_u32(…).unwrap()` [INFO] [stdout] = note: this error originates in the macro `impl_char` which comes from the expansion of the macro `define_unaligned_char` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rend` (lib test) due to 36 previous errors [INFO] running `Command { std: "docker" "inspect" "34bb2b43b8e75e438ba2c864720e33c49c39a236aa468bd82cdaa53255c95927", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34bb2b43b8e75e438ba2c864720e33c49c39a236aa468bd82cdaa53255c95927", kill_on_drop: false }` [INFO] [stdout] 34bb2b43b8e75e438ba2c864720e33c49c39a236aa468bd82cdaa53255c95927