[INFO] fetching crate rust-memory-safety-examples 2.0.0... [INFO] testing rust-memory-safety-examples-2.0.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate rust-memory-safety-examples 2.0.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate rust-memory-safety-examples 2.0.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate rust-memory-safety-examples 2.0.0 [INFO] tweaked toml for crates.io crate rust-memory-safety-examples 2.0.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-memory-safety-examples 2.0.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rust-memory-safety-examples 2.0.0 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded web-sys v0.3.83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f13984292012635b40cd257cd62a7f0ed557e0d4728f12da9f2b42d486de6de [INFO] running `Command { std: "docker" "start" "-a" "6f13984292012635b40cd257cd62a7f0ed557e0d4728f12da9f2b42d486de6de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f13984292012635b40cd257cd62a7f0ed557e0d4728f12da9f2b42d486de6de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f13984292012635b40cd257cd62a7f0ed557e0d4728f12da9f2b42d486de6de", kill_on_drop: false }` [INFO] [stdout] 6f13984292012635b40cd257cd62a7f0ed557e0d4728f12da9f2b42d486de6de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9cb4197d0a7281a456233e41b3def2e5853881529a0d056ee66f42de72b72efd [INFO] running `Command { std: "docker" "start" "-a" "9cb4197d0a7281a456233e41b3def2e5853881529a0d056ee66f42de72b72efd", kill_on_drop: false }` [INFO] [stderr] Compiling rust-memory-safety-examples v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] running `Command { std: "docker" "inspect" "9cb4197d0a7281a456233e41b3def2e5853881529a0d056ee66f42de72b72efd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cb4197d0a7281a456233e41b3def2e5853881529a0d056ee66f42de72b72efd", kill_on_drop: false }` [INFO] [stdout] 9cb4197d0a7281a456233e41b3def2e5853881529a0d056ee66f42de72b72efd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98bab7a4679311566ef93aee1e8c0ec5f200260d2f2ad38f0c4c713b277e4d54 [INFO] running `Command { std: "docker" "start" "-a" "98bab7a4679311566ef93aee1e8c0ec5f200260d2f2ad38f0c4c713b277e4d54", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling clap_lex v0.7.6 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling is-terminal v0.4.17 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling clap_builder v4.5.53 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling clap v4.5.53 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling zerocopy-derive v0.8.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling rust-memory-safety-examples v2.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/secure_patterns.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> examples/secure_patterns.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> examples/secure_patterns.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, and `RwLock` [INFO] [stdout] --> examples/secure_patterns.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::{Arc, Mutex, RwLock}; [INFO] [stdout] | ^^^ ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_heartbeat` is never used [INFO] [stdout] --> examples/cve_case_studies.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn safe_heartbeat(payload: &[u8], claimed_length: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0367]: `Drop` impl requires `T: Default` but the struct it is implemented for does not [INFO] [stdout] --> examples/secure_patterns.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | impl Drop for Secret { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the implementor must specify the same requirement [INFO] [stdout] --> examples/secure_patterns.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 241 | pub struct Secret(T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_arguments` is never used [INFO] [stdout] --> examples/cve_case_studies.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn parse_arguments(args: &[&str]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_uid_strict` is never used [INFO] [stdout] --> examples/cve_case_studies.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn validate_uid_strict(input: i64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_eap_packet` is never used [INFO] [stdout] --> examples/cve_case_studies.rs:205:12 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn process_eap_packet(packet: &[u8], max_size: usize) -> Result, &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_resolve_path` is never used [INFO] [stdout] --> examples/cve_case_studies.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn safe_resolve_path(path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0367`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-memory-safety-examples` (example "secure_patterns") due to 1 previous error; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "98bab7a4679311566ef93aee1e8c0ec5f200260d2f2ad38f0c4c713b277e4d54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98bab7a4679311566ef93aee1e8c0ec5f200260d2f2ad38f0c4c713b277e4d54", kill_on_drop: false }` [INFO] [stdout] 98bab7a4679311566ef93aee1e8c0ec5f200260d2f2ad38f0c4c713b277e4d54