[INFO] fetching crate constdb 0.2.3... [INFO] checking constdb-0.2.3 against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] extracting crate constdb 0.2.3 into /workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate constdb 0.2.3 on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 50 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d97b25f99df74fdaa2e7b418866a39d31423ac7944e1ef7e61db8e57cfdfffc5 [INFO] running `Command { std: "docker" "start" "-a" "d97b25f99df74fdaa2e7b418866a39d31423ac7944e1ef7e61db8e57cfdfffc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d97b25f99df74fdaa2e7b418866a39d31423ac7944e1ef7e61db8e57cfdfffc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d97b25f99df74fdaa2e7b418866a39d31423ac7944e1ef7e61db8e57cfdfffc5", kill_on_drop: false }` [INFO] [stdout] d97b25f99df74fdaa2e7b418866a39d31423ac7944e1ef7e61db8e57cfdfffc5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7748516af21225de2e3857ebe9ad78b2381129c49fb4ad6144b72b35b01b2d99 [INFO] running `Command { std: "docker" "start" "-a" "7748516af21225de2e3857ebe9ad78b2381129c49fb4ad6144b72b35b01b2d99", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking rustc-demangle v0.1.25 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking object v0.36.7 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking backtrace v0.3.75 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking 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] [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 13.22s [INFO] running `Command { std: "docker" "inspect" "7748516af21225de2e3857ebe9ad78b2381129c49fb4ad6144b72b35b01b2d99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7748516af21225de2e3857ebe9ad78b2381129c49fb4ad6144b72b35b01b2d99", kill_on_drop: false }` [INFO] [stdout] 7748516af21225de2e3857ebe9ad78b2381129c49fb4ad6144b72b35b01b2d99