[INFO] fetching crate susurrus 0.1.0... [INFO] checking susurrus-0.1.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate susurrus 0.1.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate susurrus 0.1.0 [INFO] finished tweaking crates.io crate susurrus 0.1.0 [INFO] tweaked toml for crates.io crate susurrus 0.1.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate susurrus 0.1.0 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 30 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f30cb450a2d28a250beffa3b292e8a941cdcd4a64ae89761adf458d764bc4d4b [INFO] running `Command { std: "docker" "start" "-a" "f30cb450a2d28a250beffa3b292e8a941cdcd4a64ae89761adf458d764bc4d4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f30cb450a2d28a250beffa3b292e8a941cdcd4a64ae89761adf458d764bc4d4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f30cb450a2d28a250beffa3b292e8a941cdcd4a64ae89761adf458d764bc4d4b", kill_on_drop: false }` [INFO] [stdout] f30cb450a2d28a250beffa3b292e8a941cdcd4a64ae89761adf458d764bc4d4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6dda0a7d921c71f926631a08adeeae64c24d8345c5a4ebe7617fc2e05d6c3e1e [INFO] running `Command { std: "docker" "start" "-a" "6dda0a7d921c71f926631a08adeeae64c24d8345c5a4ebe7617fc2e05d6c3e1e", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling libsodium-sys v0.2.7 [INFO] [stderr] Checking sodiumoxide v0.2.7 [INFO] [stderr] Checking susurrus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `HASHBYTES` in module `sha512` [INFO] [stdout] --> src/session.rs:43:39 [INFO] [stdout] | [INFO] [stdout] 43 | let nkey = if key.len() > sha512::HASHBYTES { [INFO] [stdout] | ^^^^^^^^^ not found in `sha512` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HASHBYTES` in module `sha512` [INFO] [stdout] --> src/session.rs:46:37 [INFO] [stdout] | [INFO] [stdout] 46 | let mut arr = [0u8; sha512::HASHBYTES]; [INFO] [stdout] | ^^^^^^^^^ not found in `sha512` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/session.rs:227:67 [INFO] [stdout] | [INFO] [stdout] 227 | self.rs = Some(PubKey(make_fixed!(u8, DH_LEN, try!(NoiseBody::read(&data[off..off+DH_LEN+MAC_LEN]) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/session.rs:242:23 [INFO] [stdout] | [INFO] [stdout] 242 | let payload = try!(NoiseBody::read(&data[off..]).decrypt(&k, &n, &a[..])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `0` on type `Result` [INFO] [stdout] --> src/session.rs:66:95 [INFO] [stdout] | [INFO] [stdout] 66 | curve25519::scalarmult(&curve25519::Scalar(*privkey), &curve25519::GroupElement(*pubkey)).0 [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 66 | curve25519::scalarmult(&curve25519::Scalar(*privkey), &curve25519::GroupElement(*pubkey)).unwrap().0 [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HASHBYTES` in module `sha512` [INFO] [stdout] --> src/session.rs:43:39 [INFO] [stdout] | [INFO] [stdout] 43 | let nkey = if key.len() > sha512::HASHBYTES { [INFO] [stdout] | ^^^^^^^^^ not found in `sha512` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HASHBYTES` in module `sha512` [INFO] [stdout] --> src/session.rs:46:37 [INFO] [stdout] | [INFO] [stdout] 46 | let mut arr = [0u8; sha512::HASHBYTES]; [INFO] [stdout] | ^^^^^^^^^ not found in `sha512` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `gen_nonce` in module `chacha20` [INFO] [stdout] --> src/session.rs:319:27 [INFO] [stdout] | [INFO] [stdout] 319 | let nonce = chacha20::gen_nonce(); [INFO] [stdout] | ^^^^^^^^^ not found in `chacha20` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use sodiumoxide::crypto::aead::gen_nonce; [INFO] [stdout] | [INFO] [stdout] 2 + use sodiumoxide::crypto::box_::gen_nonce; [INFO] [stdout] | [INFO] [stdout] 2 + use sodiumoxide::crypto::secretbox::gen_nonce; [INFO] [stdout] | [INFO] [stdout] 2 + use sodiumoxide::crypto::stream::gen_nonce; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] help: if you import `gen_nonce`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 319 - let nonce = chacha20::gen_nonce(); [INFO] [stdout] 319 + let nonce = gen_nonce(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/session.rs:227:67 [INFO] [stdout] | [INFO] [stdout] 227 | self.rs = Some(PubKey(make_fixed!(u8, DH_LEN, try!(NoiseBody::read(&data[off..off+DH_LEN+MAC_LEN]) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/session.rs:242:23 [INFO] [stdout] | [INFO] [stdout] 242 | let payload = try!(NoiseBody::read(&data[off..]).decrypt(&k, &n, &a[..])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `susurrus` (lib) due to 3 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0609]: no field `0` on type `Result` [INFO] [stdout] --> src/session.rs:66:95 [INFO] [stdout] | [INFO] [stdout] 66 | curve25519::scalarmult(&curve25519::Scalar(*privkey), &curve25519::GroupElement(*pubkey)).0 [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 66 | curve25519::scalarmult(&curve25519::Scalar(*privkey), &curve25519::GroupElement(*pubkey)).unwrap().0 [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `susurrus` (lib test) due to 4 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6dda0a7d921c71f926631a08adeeae64c24d8345c5a4ebe7617fc2e05d6c3e1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6dda0a7d921c71f926631a08adeeae64c24d8345c5a4ebe7617fc2e05d6c3e1e", kill_on_drop: false }` [INFO] [stdout] 6dda0a7d921c71f926631a08adeeae64c24d8345c5a4ebe7617fc2e05d6c3e1e