[INFO] fetching crate supply-chain-trust-example-crate-000094 3.19.1... [INFO] building supply-chain-trust-example-crate-000094-3.19.1 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate supply-chain-trust-example-crate-000094 3.19.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate supply-chain-trust-example-crate-000094 3.19.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate supply-chain-trust-example-crate-000094 3.19.1 [INFO] tweaked toml for crates.io crate supply-chain-trust-example-crate-000094 3.19.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate supply-chain-trust-example-crate-000094 3.19.1 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 26 packages to latest compatible versions [INFO] [stderr] Adding windows-sys v0.59.0 (available: v0.61.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3468ee9df7c08791dc28b302d26d9368a6a71a28ddfe59f2500676f219b68e6c [INFO] running `Command { std: "docker" "start" "-a" "3468ee9df7c08791dc28b302d26d9368a6a71a28ddfe59f2500676f219b68e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3468ee9df7c08791dc28b302d26d9368a6a71a28ddfe59f2500676f219b68e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3468ee9df7c08791dc28b302d26d9368a6a71a28ddfe59f2500676f219b68e6c", kill_on_drop: false }` [INFO] [stdout] 3468ee9df7c08791dc28b302d26d9368a6a71a28ddfe59f2500676f219b68e6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f94a63ad57e54227297adeed1525f708f66ab648d6ad60063e41ff5e95a62f8 [INFO] running `Command { std: "docker" "start" "-a" "2f94a63ad57e54227297adeed1525f708f66ab648d6ad60063e41ff5e95a62f8", kill_on_drop: false }` [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling supply-chain-trust-example-crate-000094 v3.19.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.94s [INFO] running `Command { std: "docker" "inspect" "2f94a63ad57e54227297adeed1525f708f66ab648d6ad60063e41ff5e95a62f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f94a63ad57e54227297adeed1525f708f66ab648d6ad60063e41ff5e95a62f8", kill_on_drop: false }` [INFO] [stdout] 2f94a63ad57e54227297adeed1525f708f66ab648d6ad60063e41ff5e95a62f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2ab10dfe0112a9bc438c5d9a9bd73129697aa1e2b444325dbda8a96f8c01b602 [INFO] running `Command { std: "docker" "start" "-a" "2ab10dfe0112a9bc438c5d9a9bd73129697aa1e2b444325dbda8a96f8c01b602", kill_on_drop: false }` [INFO] [stderr] Compiling supply-chain-trust-example-crate-000094 v3.19.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `tempfile` [INFO] [stdout] --> tests/spooled.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tempfile::{spooled_tempfile, SpooledTempFile}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tempfile` [INFO] [stdout] --> tests/namedtempfile.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tempfile::{env, tempdir, Builder, NamedTempFile, TempPath}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tempfile` [INFO] [stdout] --> tests/tempdir.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tempfile::{Builder, TempDir}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 13 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/tempfile.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | let mut tmpfile = tempfile::tempfile().unwrap(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/tempfile.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | let tmpdir = tempfile::tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/tempfile.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | let mut tmpfile = tempfile::tempfile_in(&tmpdir).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/tempfile.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | let tmpdir = tempfile::tempdir().unwrap(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/tempfile.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | let mut tmpfile = tempfile::tempfile_in(&tmpdir).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000094` (test "tempfile") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000094` (test "tempdir") due to 1 previous error [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/namedtempfile.rs:310:26 [INFO] [stdout] | [INFO] [stdout] 310 | let path = temp_path.to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/namedtempfile.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 316 | write!(file, "efgh").expect("write failed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/namedtempfile.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | assert!(exists(&temp_path)); [INFO] [stdout] | ^^^^^^ cannot infer type of the type parameter `P` declared on the function `exists` [INFO] [stdout] 344 | path = temp_path.keep().unwrap(); [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 343 | assert!(exists::<&_>(&temp_path)); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/namedtempfile.rs:348:11 [INFO] [stdout] | [INFO] [stdout] 348 | f.seek(SeekFrom::Start(0)).unwrap(); [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> tests/namedtempfile.rs:444:18 [INFO] [stdout] | [INFO] [stdout] 444 | .take_while(|r| match r { [INFO] [stdout] | ^ [INFO] [stdout] 445 | Ok(_) => true, [INFO] [stdout] 446 | Err(e) if matches!(e.kind(), ErrorKind::AddrInUse | ErrorKind::AlreadyExists) => false, [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 444 | .take_while(|r: Result| match r { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/namedtempfile.rs:462:24 [INFO] [stdout] | [INFO] [stdout] 462 | assert!(socket.path().exists()); [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000094` (test "spooled") due to 1 previous error [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000094` (test "namedtempfile") due to 7 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/env.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(tempfile::env::temp_dir(), std::env::temp_dir()); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 3 + use std::env; [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000094::env; [INFO] [stdout] | [INFO] [stdout] help: if you import `env`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 7 - assert_eq!(tempfile::env::temp_dir(), std::env::temp_dir()); [INFO] [stdout] 7 + assert_eq!(env::temp_dir(), std::env::temp_dir()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/env.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | tempfile::env::override_temp_dir(new_tmp).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000094::env; [INFO] [stdout] | [INFO] [stdout] help: if you import `env`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 10 - tempfile::env::override_temp_dir(new_tmp).unwrap(); [INFO] [stdout] 10 + env::override_temp_dir(new_tmp).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/env.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | assert_eq!(tempfile::env::temp_dir(), new_tmp); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 3 + use std::env; [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000094::env; [INFO] [stdout] | [INFO] [stdout] help: if you import `env`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 11 - assert_eq!(tempfile::env::temp_dir(), new_tmp); [INFO] [stdout] 11 + assert_eq!(env::temp_dir(), new_tmp); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] --> tests/env.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | tempfile::env::override_temp_dir(new_tmp2).expect_err("override should only be possible once"); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `tempfile` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file tests/tempfile.rs, use `mod tempfile` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 3 + mod tempfile; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000094::env; [INFO] [stdout] | [INFO] [stdout] help: if you import `env`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 14 - tempfile::env::override_temp_dir(new_tmp2).expect_err("override should only be possible once"); [INFO] [stdout] 14 + env::override_temp_dir(new_tmp2).expect_err("override should only be possible once"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000094` (test "env") due to 4 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2ab10dfe0112a9bc438c5d9a9bd73129697aa1e2b444325dbda8a96f8c01b602", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ab10dfe0112a9bc438c5d9a9bd73129697aa1e2b444325dbda8a96f8c01b602", kill_on_drop: false }` [INFO] [stdout] 2ab10dfe0112a9bc438c5d9a9bd73129697aa1e2b444325dbda8a96f8c01b602