[INFO] fetching crate constdb 0.2.3... [INFO] testing constdb-0.2.3 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate constdb 0.2.3 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate constdb 0.2.3 [INFO] finished tweaking crates.io crate constdb 0.2.3 [INFO] tweaked toml for crates.io crate constdb 0.2.3 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate constdb 0.2.3 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 32 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a382fcb152f1d15d1b9a00b566788b9f35399bab25a8cdeffc27c22e1b000e0 [INFO] running `Command { std: "docker" "start" "-a" "4a382fcb152f1d15d1b9a00b566788b9f35399bab25a8cdeffc27c22e1b000e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a382fcb152f1d15d1b9a00b566788b9f35399bab25a8cdeffc27c22e1b000e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a382fcb152f1d15d1b9a00b566788b9f35399bab25a8cdeffc27c22e1b000e0", kill_on_drop: false }` [INFO] [stdout] 4a382fcb152f1d15d1b9a00b566788b9f35399bab25a8cdeffc27c22e1b000e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 76314ef956919cf6030c5e33da0bf68147fb315c1e0b5a7536df476adbba2e5d [INFO] running `Command { std: "docker" "start" "-a" "76314ef956919cf6030c5e33da0bf68147fb315c1e0b5a7536df476adbba2e5d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling addr2line v0.25.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling constdb v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:67:39 [INFO] [stdout] | [INFO] [stdout] 67 | let type_value = unsafe { std::mem::transmute::()]>(INT_KEY_TYPE.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [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: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:68:38 [INFO] [stdout] | [INFO] [stdout] 68 | let key_value = unsafe { std::mem::transmute::()]>(key.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | let offset1 = unsafe { std::mem::transmute::()]>(offset.0.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | let offset2 = unsafe { std::mem::transmute::()]>(offset.1.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:79:39 [INFO] [stdout] | [INFO] [stdout] 79 | let type_value = unsafe { std::mem::transmute::()]>(STR_KEY_TYPE.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | let offset1 = unsafe { std::mem::transmute::()]>(offset.0.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | let offset2 = unsafe { std::mem::transmute::()]>(offset.1.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | let key_len = unsafe { std::mem::transmute::()]>((key_bytes.len() as i64).to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 94 | let table_offset = unsafe { std::mem::transmute::()]>(self.current_offset.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.47s [INFO] running `Command { std: "docker" "inspect" "76314ef956919cf6030c5e33da0bf68147fb315c1e0b5a7536df476adbba2e5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76314ef956919cf6030c5e33da0bf68147fb315c1e0b5a7536df476adbba2e5d", kill_on_drop: false }` [INFO] [stdout] 76314ef956919cf6030c5e33da0bf68147fb315c1e0b5a7536df476adbba2e5d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3164d860ff08aeb4f5c7c2b7dd8236a308e3304f9f733f4d55cc207321ce4af8 [INFO] running `Command { std: "docker" "start" "-a" "3164d860ff08aeb4f5c7c2b7dd8236a308e3304f9f733f4d55cc207321ce4af8", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:67:39 [INFO] [stdout] | [INFO] [stdout] 67 | let type_value = unsafe { std::mem::transmute::()]>(INT_KEY_TYPE.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [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: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:68:38 [INFO] [stdout] | [INFO] [stdout] 68 | let key_value = unsafe { std::mem::transmute::()]>(key.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | let offset1 = unsafe { std::mem::transmute::()]>(offset.0.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | let offset2 = unsafe { std::mem::transmute::()]>(offset.1.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:79:39 [INFO] [stdout] | [INFO] [stdout] 79 | let type_value = unsafe { std::mem::transmute::()]>(STR_KEY_TYPE.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | let offset1 = unsafe { std::mem::transmute::()]>(offset.0.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | let offset2 = unsafe { std::mem::transmute::()]>(offset.1.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | let key_len = unsafe { std::mem::transmute::()]>((key_bytes.len() as i64).to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 94 | let table_offset = unsafe { std::mem::transmute::()]>(self.current_offset.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling constdb v0.2.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:67:39 [INFO] [stdout] | [INFO] [stdout] 67 | let type_value = unsafe { std::mem::transmute::()]>(INT_KEY_TYPE.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [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: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:68:38 [INFO] [stdout] | [INFO] [stdout] 68 | let key_value = unsafe { std::mem::transmute::()]>(key.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:69:36 [INFO] [stdout] | [INFO] [stdout] 69 | let offset1 = unsafe { std::mem::transmute::()]>(offset.0.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | let offset2 = unsafe { std::mem::transmute::()]>(offset.1.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:79:39 [INFO] [stdout] | [INFO] [stdout] 79 | let type_value = unsafe { std::mem::transmute::()]>(STR_KEY_TYPE.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:80:36 [INFO] [stdout] | [INFO] [stdout] 80 | let offset1 = unsafe { std::mem::transmute::()]>(offset.0.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | let offset2 = unsafe { std::mem::transmute::()]>(offset.1.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:85:36 [INFO] [stdout] | [INFO] [stdout] 85 | let key_len = unsafe { std::mem::transmute::()]>((key_bytes.len() as i64).to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/lib.rs:94:37 [INFO] [stdout] | [INFO] [stdout] 94 | let table_offset = unsafe { std::mem::transmute::()]>(self.current_offset.to_le()) }; [INFO] [stdout] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i64::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.40s [INFO] running `Command { std: "docker" "inspect" "3164d860ff08aeb4f5c7c2b7dd8236a308e3304f9f733f4d55cc207321ce4af8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3164d860ff08aeb4f5c7c2b7dd8236a308e3304f9f733f4d55cc207321ce4af8", kill_on_drop: false }` [INFO] [stdout] 3164d860ff08aeb4f5c7c2b7dd8236a308e3304f9f733f4d55cc207321ce4af8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b00a63d217c185a1e4aae551458a18902bc284bb8fce1db812e1c4301962e3a2 [INFO] running `Command { std: "docker" "start" "-a" "b00a63d217c185a1e4aae551458a18902bc284bb8fce1db812e1c4301962e3a2", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:67:39 [INFO] [stderr] | [INFO] [stderr] 67 | let type_value = unsafe { std::mem::transmute::()]>(INT_KEY_TYPE.to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i32::to_ne_bytes` [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: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:68:38 [INFO] [stderr] | [INFO] [stderr] 68 | let key_value = unsafe { std::mem::transmute::()]>(key.to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i64::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:69:36 [INFO] [stderr] | [INFO] [stderr] 69 | let offset1 = unsafe { std::mem::transmute::()]>(offset.0.to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i64::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:70:36 [INFO] [stderr] | [INFO] [stderr] 70 | let offset2 = unsafe { std::mem::transmute::()]>(offset.1.to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i64::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:79:39 [INFO] [stderr] | [INFO] [stderr] 79 | let type_value = unsafe { std::mem::transmute::()]>(STR_KEY_TYPE.to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i32::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:80:36 [INFO] [stderr] | [INFO] [stderr] 80 | let offset1 = unsafe { std::mem::transmute::()]>(offset.0.to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i64::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:81:36 [INFO] [stderr] | [INFO] [stderr] 81 | let offset2 = unsafe { std::mem::transmute::()]>(offset.1.to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i64::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:85:36 [INFO] [stderr] | [INFO] [stderr] 85 | let key_len = unsafe { std::mem::transmute::()]>((key_bytes.len() as i64).to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i64::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/lib.rs:94:37 [INFO] [stderr] | [INFO] [stderr] 94 | let table_offset = unsafe { std::mem::transmute::()]>(self.current_offset.to_le()) }; [INFO] [stderr] | ------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i64::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: `constdb` (lib) generated 9 warnings (run `cargo fix --lib -p constdb` to apply 9 suggestions) [INFO] [stderr] warning: `constdb` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/constdb-336f29f19a486dd3) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::test_int ... 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 constdb [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b00a63d217c185a1e4aae551458a18902bc284bb8fce1db812e1c4301962e3a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b00a63d217c185a1e4aae551458a18902bc284bb8fce1db812e1c4301962e3a2", kill_on_drop: false }` [INFO] [stdout] b00a63d217c185a1e4aae551458a18902bc284bb8fce1db812e1c4301962e3a2