[INFO] fetching crate dcrypt-kem 0.14.0-beta.6... [INFO] checking dcrypt-kem-0.14.0-beta.6 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate dcrypt-kem 0.14.0-beta.6 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate dcrypt-kem 0.14.0-beta.6 [INFO] finished tweaking crates.io crate dcrypt-kem 0.14.0-beta.6 [INFO] tweaked toml for crates.io crate dcrypt-kem 0.14.0-beta.6 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate dcrypt-kem 0.14.0-beta.6 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate dcrypt-kem 0.14.0-beta.6 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dcrypt-internal v0.14.0-beta.6 [INFO] [stderr] Downloaded dcrypt-common v0.14.0-beta.6 [INFO] [stderr] Downloaded dcrypt-params v0.14.0-beta.6 [INFO] [stderr] Downloaded dcrypt-api v0.14.0-beta.6 [INFO] [stderr] Downloaded dcrypt-algorithms v0.14.0-beta.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd21249d9cb1d47fe5e8971777046ca9a93b5e1ed3dce3d206dabf715504e590 [INFO] running `Command { std: "docker" "start" "-a" "fd21249d9cb1d47fe5e8971777046ca9a93b5e1ed3dce3d206dabf715504e590", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd21249d9cb1d47fe5e8971777046ca9a93b5e1ed3dce3d206dabf715504e590", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd21249d9cb1d47fe5e8971777046ca9a93b5e1ed3dce3d206dabf715504e590", kill_on_drop: false }` [INFO] [stdout] fd21249d9cb1d47fe5e8971777046ca9a93b5e1ed3dce3d206dabf715504e590 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3231ab4efa6bfd724d4a8078eadc8c4b62c6e5e08a44a814fd082f862b923149 [INFO] running `Command { std: "docker" "start" "-a" "3231ab4efa6bfd724d4a8078eadc8c4b62c6e5e08a44a814fd082f862b923149", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking dcrypt-params v0.14.0-beta.6 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking clap_builder v4.5.41 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking clap v4.5.41 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking dcrypt-internal v0.14.0-beta.6 [INFO] [stderr] Checking dcrypt-api v0.14.0-beta.6 [INFO] [stderr] Checking dcrypt-common v0.14.0-beta.6 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking dcrypt-algorithms v0.14.0-beta.6 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking dcrypt-kem v0.14.0-beta.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/kyber/kem.rs:163:19 [INFO] [stdout] | [INFO] [stdout] 150 | impl KyberSharedSecret { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | pub(crate) fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EcdhP521PublicKey` and `EcdhP521SecretKey` [INFO] [stdout] --> benches/ecdh_p521.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use dcrypt_kem::ecdh::p521::{EcdhP521, EcdhP521PublicKey, EcdhP521SecretKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:63:38 [INFO] [stdout] | [INFO] [stdout] 63 | shared_secret_sender.as_ref(), [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:64:41 [INFO] [stdout] | [INFO] [stdout] 64 | shared_secret_recipient.as_ref() [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP384SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p384.rs:51:40 [INFO] [stdout] | [INFO] [stdout] 51 | debug_assert_eq!(ss_sender.as_ref(), ss_recipient.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP384SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EcdhP224Ciphertext`, `EcdhP224PublicKey`, and `EcdhP224SecretKey` [INFO] [stdout] --> benches/ecdh_p224.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use dcrypt_kem::ecdh::p224::{EcdhP224, EcdhP224Ciphertext, EcdhP224PublicKey, EcdhP224SecretKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP384SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p384.rs:51:63 [INFO] [stdout] | [INFO] [stdout] 51 | debug_assert_eq!(ss_sender.as_ref(), ss_recipient.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP384SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EcdhP192Ciphertext`, `EcdhP192PublicKey`, and `EcdhP192SecretKey` [INFO] [stdout] --> benches/ecdh_p192.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use dcrypt_kem::ecdh::p192::{EcdhP192, EcdhP192Ciphertext, EcdhP192PublicKey, EcdhP192SecretKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> benches/ecdh_p192.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let mut rng = OsRng; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> benches/ecdh_p192.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | let mut rng = OsRng; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:151:31 [INFO] [stdout] | [INFO] [stdout] 151 | let _pk_size = pk.as_ref().len(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BenchmarkId` [INFO] [stdout] --> benches/ecdh_comparison.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | criterion_group, criterion_main, AxisScale, BenchmarkId, Criterion, PlotConfiguration, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP384SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p384.rs:139:34 [INFO] [stdout] | [INFO] [stdout] 139 | debug_assert_eq!(ss1.as_ref(), ss2.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP384SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP192PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:247:53 [INFO] [stdout] | [INFO] [stdout] 247 | println!(" Public key: {:3} bytes", pk_p192.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP192PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP192SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | println!(" Secret key: {:3} bytes", sk_p192.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP192SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhB283kPublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_b283k.rs:149:28 [INFO] [stdout] | [INFO] [stdout] 149 | let bytes = pk.as_ref(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhB283kPublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:152:31 [INFO] [stdout] | [INFO] [stdout] 152 | let _sk_size = sk.as_ref().len(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhB283kSecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_b283k.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | let bytes = sk.as_ref(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhB283kSecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP384SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p384.rs:139:48 [INFO] [stdout] | [INFO] [stdout] 139 | debug_assert_eq!(ss1.as_ref(), ss2.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP384SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP224PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_p224.rs:174:30 [INFO] [stdout] | [INFO] [stdout] 174 | let pk_size = pk.as_ref().len(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP224PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP192Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:249:53 [INFO] [stdout] | [INFO] [stdout] 249 | println!(" Ciphertext: {:3} bytes", ct_p192.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP192Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhB283kCiphertext` in the current scope [INFO] [stdout] --> benches/ecdh_b283k.rs:163:28 [INFO] [stdout] | [INFO] [stdout] 163 | let bytes = ct.as_ref(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhB283kCiphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:153:31 [INFO] [stdout] | [INFO] [stdout] 153 | let _ct_size = ct.as_ref().len(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:154:31 [INFO] [stdout] | [INFO] [stdout] 154 | let _ss_size = ss.as_ref().len(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP192SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:250:53 [INFO] [stdout] | [INFO] [stdout] 250 | println!(" Shared secret: {:3} bytes", ss_p192.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP192SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dcrypt-kem` (bench "ecdh_p384") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP224SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_p224.rs:175:30 [INFO] [stdout] | [INFO] [stdout] 175 | let sk_size = sk.as_ref().len(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP224SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:159:43 [INFO] [stdout] | [INFO] [stdout] 159 | println!(" Public key: {} bytes", pk.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP224PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:256:53 [INFO] [stdout] | [INFO] [stdout] 256 | println!(" Public key: {:3} bytes", pk_p224.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP224PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP224SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:257:53 [INFO] [stdout] | [INFO] [stdout] 257 | println!(" Secret key: {:3} bytes", sk_p224.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP224SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_p256.rs:145:27 [INFO] [stdout] | [INFO] [stdout] 145 | black_box((pk.as_ref().len(), sk.as_ref().len())); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP224Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:258:53 [INFO] [stdout] | [INFO] [stdout] 258 | println!(" Ciphertext: {:3} bytes", ct_p224.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP224Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP224Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_p224.rs:176:30 [INFO] [stdout] | [INFO] [stdout] 176 | let ct_size = ct.as_ref().len(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP224Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:160:43 [INFO] [stdout] | [INFO] [stdout] 160 | println!(" Secret key: {} bytes", sk.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dcrypt-kem` (bench "ecdh_b283k") due to 3 previous errors [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP224SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:259:53 [INFO] [stdout] | [INFO] [stdout] 259 | println!(" Shared secret: {:3} bytes", ss_p224.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP224SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:265:53 [INFO] [stdout] | [INFO] [stdout] 265 | println!(" Public key: {:3} bytes", pk_p256.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:266:53 [INFO] [stdout] | [INFO] [stdout] 266 | println!(" Secret key: {:3} bytes", sk_p256.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_p256.rs:145:46 [INFO] [stdout] | [INFO] [stdout] 145 | black_box((pk.as_ref().len(), sk.as_ref().len())); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:161:43 [INFO] [stdout] | [INFO] [stdout] 161 | println!(" Ciphertext: {} bytes", ct.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP224SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p224.rs:177:30 [INFO] [stdout] | [INFO] [stdout] 177 | let ss_size = ss.as_ref().len(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP224SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:267:53 [INFO] [stdout] | [INFO] [stdout] 267 | println!(" Ciphertext: {:3} bytes", ct_p256.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:268:53 [INFO] [stdout] | [INFO] [stdout] 268 | println!(" Shared secret: {:3} bytes", ss_p256.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p521.rs:162:46 [INFO] [stdout] | [INFO] [stdout] 162 | println!(" Shared secret: {} bytes", ss.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP384PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:274:53 [INFO] [stdout] | [INFO] [stdout] 274 | println!(" Public key: {:3} bytes", pk_p384.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP384PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_p256.rs:154:26 [INFO] [stdout] | [INFO] [stdout] 154 | black_box(ct.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dcrypt-kem` (bench "ecdh_p521") due to 10 previous errors; 1 warning emitted [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP384SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:275:53 [INFO] [stdout] | [INFO] [stdout] 275 | println!(" Secret key: {:3} bytes", sk_p384.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP384SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut` found for struct `EcdhP256PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_p256.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 171 | invalid_pk.as_mut().fill(0); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256PublicKey` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/convert/mod.rs:377:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box` here [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box<&mut EcdhP256PublicKey>` here [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box<&EcdhP256PublicKey>` here [INFO] [stdout] | [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 171 | Box::new(invalid_pk).as_mut().fill(0); [INFO] [stdout] | +++++++++ + [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 171 | Box::new(&mut invalid_pk).as_mut().fill(0); [INFO] [stdout] | +++++++++++++ + [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 171 | Box::new(&invalid_pk).as_mut().fill(0); [INFO] [stdout] | ++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dcrypt-kem` (bench "ecdh_p224") due to 4 previous errors; 1 warning emitted [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP384Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:276:53 [INFO] [stdout] | [INFO] [stdout] 276 | println!(" Ciphertext: {:3} bytes", ct_p384.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP384Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut` found for struct `EcdhP256Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_p256.rs:184:20 [INFO] [stdout] | [INFO] [stdout] 184 | invalid_ct.as_mut().fill(0); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256Ciphertext` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/convert/mod.rs:377:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box` here [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box<&mut EcdhP256Ciphertext>` here [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box<&EcdhP256Ciphertext>` here [INFO] [stdout] | [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 184 | Box::new(invalid_ct).as_mut().fill(0); [INFO] [stdout] | +++++++++ + [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 184 | Box::new(&mut invalid_ct).as_mut().fill(0); [INFO] [stdout] | +++++++++++++ + [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 184 | Box::new(&invalid_ct).as_mut().fill(0); [INFO] [stdout] | ++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP384SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:277:53 [INFO] [stdout] | [INFO] [stdout] 277 | println!(" Shared secret: {:3} bytes", ss_p384.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP384SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_mut` found for struct `EcdhP256Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_p256.rs:197:21 [INFO] [stdout] | [INFO] [stdout] 197 | tampered_ct.as_mut()[0] ^= 0xFF; [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256Ciphertext` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/convert/mod.rs:377:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box` here [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box<&mut EcdhP256Ciphertext>` here [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `Box<&EcdhP256Ciphertext>` here [INFO] [stdout] | [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 197 | Box::new(tampered_ct).as_mut()[0] ^= 0xFF; [INFO] [stdout] | +++++++++ + [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 197 | Box::new(&mut tampered_ct).as_mut()[0] ^= 0xFF; [INFO] [stdout] | +++++++++++++ + [INFO] [stdout] help: consider wrapping the receiver expression with the appropriate type [INFO] [stdout] | [INFO] [stdout] 197 | Box::new(&tampered_ct).as_mut()[0] ^= 0xFF; [INFO] [stdout] | ++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:283:53 [INFO] [stdout] | [INFO] [stdout] 283 | println!(" Public key: {:3} bytes", pk_p521.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/kyber/kem.rs:163:19 [INFO] [stdout] | [INFO] [stdout] 150 | impl KyberSharedSecret { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | pub(crate) fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:284:53 [INFO] [stdout] | [INFO] [stdout] 284 | println!(" Secret key: {:3} bytes", sk_p521.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:285:53 [INFO] [stdout] | [INFO] [stdout] 285 | println!(" Ciphertext: {:3} bytes", ct_p521.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_p256.rs:222:37 [INFO] [stdout] | [INFO] [stdout] 222 | black_box(shared_secret.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP521SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:286:53 [INFO] [stdout] | [INFO] [stdout] 286 | println!(" Shared secret: {:3} bytes", ss_p521.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP521SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhK256PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:292:53 [INFO] [stdout] | [INFO] [stdout] 292 | println!(" Public key: {:3} bytes", pk_k256.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhK256PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhK256SecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:293:53 [INFO] [stdout] | [INFO] [stdout] 293 | println!(" Secret key: {:3} bytes", sk_k256.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhK256SecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhP256PublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_p256.rs:240:31 [INFO] [stdout] | [INFO] [stdout] 240 | let pk_bytes = pk.as_ref(); [INFO] [stdout] | ^^^^^^ method not found in `EcdhP256PublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhK256Ciphertext` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:294:53 [INFO] [stdout] | [INFO] [stdout] 294 | println!(" Ciphertext: {:3} bytes", ct_k256.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhK256Ciphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhK256SharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:295:53 [INFO] [stdout] | [INFO] [stdout] 295 | println!(" Shared secret: {:3} bytes", ss_k256.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhK256SharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhB283kPublicKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:301:54 [INFO] [stdout] | [INFO] [stdout] 301 | println!(" Public key: {:3} bytes", pk_b283k.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhB283kPublicKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhB283kSecretKey` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:302:54 [INFO] [stdout] | [INFO] [stdout] 302 | println!(" Secret key: {:3} bytes", sk_b283k.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhB283kSecretKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dcrypt-kem` (bench "ecdh_p256") due to 8 previous errors [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhB283kCiphertext` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:303:54 [INFO] [stdout] | [INFO] [stdout] 303 | println!(" Ciphertext: {:3} bytes", ct_b283k.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhB283kCiphertext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for struct `EcdhB283kSharedSecret` in the current scope [INFO] [stdout] --> benches/ecdh_comparison.rs:304:54 [INFO] [stdout] | [INFO] [stdout] 304 | println!(" Shared secret: {:3} bytes", ss_b283k.as_ref().len()); [INFO] [stdout] | ^^^^^^ method not found in `EcdhB283kSharedSecret` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dcrypt-kem` (bench "ecdh_comparison") due to 28 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "3231ab4efa6bfd724d4a8078eadc8c4b62c6e5e08a44a814fd082f862b923149", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3231ab4efa6bfd724d4a8078eadc8c4b62c6e5e08a44a814fd082f862b923149", kill_on_drop: false }` [INFO] [stdout] 3231ab4efa6bfd724d4a8078eadc8c4b62c6e5e08a44a814fd082f862b923149