[INFO] fetching crate udpsec 0.2.0... [INFO] checking udpsec-0.2.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate udpsec 0.2.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate udpsec 0.2.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate udpsec 0.2.0 [INFO] finished tweaking crates.io crate udpsec 0.2.0 [INFO] tweaked toml for crates.io crate udpsec 0.2.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 20 packages to latest compatible versions [INFO] [stderr] Adding curve25519-dalek v3.2.1 (available: v4.1.3) [INFO] [stderr] Adding digest v0.9.0 (available: v0.10.7) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding getrandom v0.1.16 (available: v0.2.15) [INFO] [stderr] Adding rand_core v0.5.1 (available: v0.6.4) [INFO] [stderr] Adding wasi v0.9.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding x25519-dalek v1.2.0 (available: v2.0.1) [INFO] [stderr] Adding zeroize v1.3.0 (available: v1.8.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c6e6d02ca7c623044dc2a3388ca6eadb607f38df0b25f25560dc63f28319ad5e [INFO] running `Command { std: "docker" "start" "-a" "c6e6d02ca7c623044dc2a3388ca6eadb607f38df0b25f25560dc63f28319ad5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6e6d02ca7c623044dc2a3388ca6eadb607f38df0b25f25560dc63f28319ad5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6e6d02ca7c623044dc2a3388ca6eadb607f38df0b25f25560dc63f28319ad5e", kill_on_drop: false }` [INFO] [stdout] c6e6d02ca7c623044dc2a3388ca6eadb607f38df0b25f25560dc63f28319ad5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2674864255b6a71caa573dce8a290978abcebaa84c4156622c76e53bff958966 [INFO] running `Command { std: "docker" "start" "-a" "2674864255b6a71caa573dce8a290978abcebaa84c4156622c76e53bff958966", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking wait_not_await v0.2.1 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking x25519-dalek v1.2.0 [INFO] [stderr] Checking udpsec v0.2.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/tests.rs (5 fixes) [INFO] [stdout] warning: function `get_socket` is never used [INFO] [stdout] --> src/tests.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_socket() -> Socket { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_sockets_pair` is never used [INFO] [stdout] --> src/tests.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn get_sockets_pair() -> (Socket, Socket) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rand_data` is never used [INFO] [stdout] --> src/tests.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn get_rand_data(size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:276:21 [INFO] [stdout] | [INFO] [stdout] 276 | receiver.recv(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 276 | let _ = receiver.recv(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:340:25 [INFO] [stdout] | [INFO] [stdout] 340 | self.write(from, Packet::KeyExchangeDone(PublicKey::from(&secret))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 340 | let _ = self.write(from, Packet::KeyExchangeDone(PublicKey::from(&secret))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:349:29 [INFO] [stdout] | [INFO] [stdout] 349 | ... sender.send(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 349 | let _ = sender.send(()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ReusableSecret` [INFO] [stdout] --> src/tests.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | let secret = ReusableSecret::new(OsRng); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `ReusableSecret` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::ReusableSecret; [INFO] [stdout] | [INFO] [stdout] 1 + use x25519_dalek::ReusableSecret; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OsRng` in this scope [INFO] [stdout] --> src/tests.rs:32:38 [INFO] [stdout] | [INFO] [stdout] 32 | let secret = ReusableSecret::new(OsRng); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::OsRng; [INFO] [stdout] | [INFO] [stdout] 1 + use rand_core::OsRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PublicKey` [INFO] [stdout] --> src/tests.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | let public = PublicKey::from(&secret); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `PublicKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::PublicKey; [INFO] [stdout] | [INFO] [stdout] 1 + use x25519_dalek::PublicKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> src/tests.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | let packet = Packet::KeyExchangeInit(public); [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 35 | let packet = Socket::KeyExchangeInit(public); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Packet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> src/tests.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | let decoded = Packet::from_bytes(packet.to_bytes().as_slice()).expect("Couldn't decode KeyExchangeInit packet"); [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 36 | let decoded = Socket::from_bytes(packet.to_bytes().as_slice()).expect("Couldn't decode KeyExchangeInit packet"); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Packet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> src/tests.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | let packet = Packet::KeyExchangeDone(public); [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 40 | let packet = Socket::KeyExchangeDone(public); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Packet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> src/tests.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 41 | let decoded = Packet::from_bytes(packet.to_bytes().as_slice()).expect("Couldn't decode KeyExchangeDone packet"); [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 41 | let decoded = Socket::from_bytes(packet.to_bytes().as_slice()).expect("Couldn't decode KeyExchangeDone packet"); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Packet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> src/tests.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | let packet = Packet::Datagram(data); [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 | let packet = Socket::Datagram(data); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Packet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> src/tests.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | let decoded = Packet::from_bytes(packet.to_bytes().as_slice()).expect("Couldn't decode Datagram packet"); [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 48 | let decoded = Socket::from_bytes(packet.to_bytes().as_slice()).expect("Couldn't decode Datagram packet"); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Packet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> src/tests.rs:59:37 [INFO] [stdout] | [INFO] [stdout] 59 | socket_a.write(socket_b.addr(), Packet::Datagram(data.clone())).expect("Couldn't send datagram to socket_b"); [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 59 | socket_a.write(socket_b.addr(), Socket::Datagram(data.clone())).expect("Couldn't send datagram to socket_b"); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Packet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> src/tests.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(received.1, Packet::Datagram(data.clone())); [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(received.1, Socket::Datagram(data.clone())); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use crate::Packet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `xor_encode` in this scope [INFO] [stdout] --> src/tests.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | assert_eq!(xor_encode(xor_encode(data.clone(), &key), &key), data); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use crate::xor_encode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `xor_encode` in this scope [INFO] [stdout] --> src/tests.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 92 | assert_eq!(xor_encode(xor_encode(data.clone(), &key), &key), data); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use crate::xor_encode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `xor_encode` in this scope [INFO] [stdout] --> src/tests.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 93 | assert_ne!(xor_encode(data.clone(), &key), data); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use crate::xor_encode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `udpsec` (lib test) due to 15 previous errors [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "2674864255b6a71caa573dce8a290978abcebaa84c4156622c76e53bff958966", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2674864255b6a71caa573dce8a290978abcebaa84c4156622c76e53bff958966", kill_on_drop: false }` [INFO] [stdout] 2674864255b6a71caa573dce8a290978abcebaa84c4156622c76e53bff958966