[INFO] fetching crate x25519-parser 0.1.0... [INFO] checking x25519-parser-0.1.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate x25519-parser 0.1.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate x25519-parser 0.1.0 [INFO] finished tweaking crates.io crate x25519-parser 0.1.0 [INFO] tweaked toml for crates.io crate x25519-parser 0.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate x25519-parser 0.1.0 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 46 packages to latest compatible versions [INFO] [stderr] Adding der-parser v9.0.0 (available: v10.0.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8adddda723ecb284f041977f0c111392008412630880029491be790bf3116e8e [INFO] running `Command { std: "docker" "start" "-a" "8adddda723ecb284f041977f0c111392008412630880029491be790bf3116e8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8adddda723ecb284f041977f0c111392008412630880029491be790bf3116e8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8adddda723ecb284f041977f0c111392008412630880029491be790bf3116e8e", kill_on_drop: false }` [INFO] [stdout] 8adddda723ecb284f041977f0c111392008412630880029491be790bf3116e8e [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d075a4d52635339e56e60cb37844fdaa5d8fa9e6c7bdfe7792acc8185ffd6491 [INFO] running `Command { std: "docker" "start" "-a" "d075a4d52635339e56e60cb37844fdaa5d8fa9e6c7bdfe7792acc8185ffd6491", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking pem v3.0.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling asn1-rs-impl v0.2.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling asn1-rs-derive v0.5.1 [INFO] [stderr] Checking x25519-dalek v2.0.1 [INFO] [stderr] Checking rusticata-macros v4.1.0 [INFO] [stderr] Checking asn1-rs v0.6.2 [INFO] [stderr] Checking der-parser v9.0.0 [INFO] [stderr] Checking x25519-parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `src/../../samples/test_x25519.der`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:339:32 [INFO] [stdout] | [INFO] [stdout] 339 | static X_DER_PRIV: &[u8] = include_bytes!("../../samples/test_x25519.der"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../../samples/test_x25519_pub.der`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:341:31 [INFO] [stdout] | [INFO] [stdout] 341 | static X_DER_PUB: &[u8] = include_bytes!("../../samples/test_x25519_pub.der"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../../samples/test_ed25519.der`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:344:33 [INFO] [stdout] | [INFO] [stdout] 344 | static ED_DER_PRIV: &[u8] = include_bytes!("../../samples/test_ed25519.der"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../../samples/test_ed25519_pub.der`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:346:32 [INFO] [stdout] | [INFO] [stdout] 346 | static ED_DER_PUB: &[u8] = include_bytes!("../../samples/test_ed25519_pub.der"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../../samples/test_ed25519_pub.pem`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:349:29 [INFO] [stdout] | [INFO] [stdout] 349 | static PEM_PUB: &[u8] = include_bytes!("../../samples/test_ed25519_pub.pem"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../../samples/test_ed25519.pem`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:351:30 [INFO] [stdout] | [INFO] [stdout] 351 | static PEM_PRIV: &[u8] = include_bytes!("../../samples/test_ed25519.pem"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../../samples/test_25519_pub_many.pem`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:354:34 [INFO] [stdout] | [INFO] [stdout] 354 | static PEM_PUB_MANY: &[u8] = include_bytes!("../../samples/test_25519_pub_many.pem"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:98:34 [INFO] [stdout] | [INFO] [stdout] 98 | fn parse_25519_private_header(i: &[u8]) -> IResult<&[u8], Der25519PrivateHeader, BerError> { [INFO] [stdout] | ^^^^^ ----- --------------------- the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 98 | fn parse_25519_private_header(i: &[u8]) -> IResult<&[u8], Der25519PrivateHeader<'_>, BerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | fn parse_25519_private(i: &[u8]) -> IResult<&[u8], Der25519PrivateStruct, BerError> { [INFO] [stdout] | ^^^^^ ----- --------------------- the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 109 | fn parse_25519_private(i: &[u8]) -> IResult<&[u8], Der25519PrivateStruct<'_>, BerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:181:33 [INFO] [stdout] | [INFO] [stdout] 181 | fn parse_25519_public_header(i: &[u8]) -> IResult<&[u8], DerEd25519PublicHeader, BerError> { [INFO] [stdout] | ^^^^^ ----- ---------------------- the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 181 | fn parse_25519_public_header(i: &[u8]) -> IResult<&[u8], DerEd25519PublicHeader<'_>, BerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:192:26 [INFO] [stdout] | [INFO] [stdout] 192 | fn parse_25519_public(i: &[u8]) -> IResult<&[u8], DerEd25519PublicStruct, BerError> { [INFO] [stdout] | ^^^^^ ----- ---------------------- the same lifetime is hidden here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 192 | fn parse_25519_public(i: &[u8]) -> IResult<&[u8], DerEd25519PublicStruct<'_>, BerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `OsRng: rand_core::RngCore` is not satisfied [INFO] [stdout] --> src/lib.rs:408:40 [INFO] [stdout] | [INFO] [stdout] 408 | let keypair = generate_keypair(&mut csprng).unwrap(); [INFO] [stdout] | ---------------- ^^^^^^^^^^^ the trait `DerefMut` is not implemented for `OsRng` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: there are multiple different versions of crate `rand_core` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.3/src/lib.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | pub trait RngCore { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use x25519_dalek::{PublicKey, StaticSecret}; [INFO] [stdout] | ------------ one version of crate `rand_core` used here, as a dependency of crate `x25519_dalek` [INFO] [stdout] 16 | [INFO] [stdout] 17 | use rand_core::{CryptoRng, RngCore}; [INFO] [stdout] | --------- one version of crate `rand_core` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.6.4/src/os.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct OsRng; [INFO] [stdout] | ---------------- this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.6.4/src/block.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub trait BlockRngCore { [INFO] [stdout] | ---------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `OsRng` to implement `rand_core::RngCore` [INFO] [stdout] note: required by a bound in `generate_keypair` [INFO] [stdout] --> src/lib.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 301 | pub fn generate_keypair(csprng: &mut T) -> Option [INFO] [stdout] | ---------------- required by a bound in this function [INFO] [stdout] 302 | where [INFO] [stdout] 303 | T: RngCore + CryptoRng, [INFO] [stdout] | ^^^^^^^ required by this bound in `generate_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `x25519-parser` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "d075a4d52635339e56e60cb37844fdaa5d8fa9e6c7bdfe7792acc8185ffd6491", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d075a4d52635339e56e60cb37844fdaa5d8fa9e6c7bdfe7792acc8185ffd6491", kill_on_drop: false }` [INFO] [stdout] d075a4d52635339e56e60cb37844fdaa5d8fa9e6c7bdfe7792acc8185ffd6491