[INFO] cloning repository https://github.com/nasonawa/error-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nasonawa/error-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnasonawa%2Ferror-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnasonawa%2Ferror-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46f263a6265334c86734db4614e4f4ac20484211 [INFO] checking nasonawa/error-test against try#0f31acebf540c89e4a4d5d114959fe91973419cb for pr-147017 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnasonawa%2Ferror-test" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nasonawa/error-test [INFO] finished tweaking git repo https://github.com/nasonawa/error-test [INFO] tweaked toml for git repo https://github.com/nasonawa/error-test written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nasonawa/error-test on toolchain 0f31acebf540c89e4a4d5d114959fe91973419cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nasonawa/error-test 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" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking nasonawa/error-test against try#0f31acebf540c89e4a4d5d114959fe91973419cb for pr-147017 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnasonawa%2Ferror-test" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nasonawa/error-test [INFO] finished tweaking git repo https://github.com/nasonawa/error-test [INFO] tweaked toml for git repo https://github.com/nasonawa/error-test written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nasonawa/error-test on toolchain 0f31acebf540c89e4a4d5d114959fe91973419cb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nasonawa/error-test 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" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ccc2871f4d56f6b594f84bd4120b8a3d4e13e5b98109f96c705a3c06197f5a6 [INFO] running `Command { std: "docker" "start" "-a" "1ccc2871f4d56f6b594f84bd4120b8a3d4e13e5b98109f96c705a3c06197f5a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ccc2871f4d56f6b594f84bd4120b8a3d4e13e5b98109f96c705a3c06197f5a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ccc2871f4d56f6b594f84bd4120b8a3d4e13e5b98109f96c705a3c06197f5a6", kill_on_drop: false }` [INFO] [stdout] 1ccc2871f4d56f6b594f84bd4120b8a3d4e13e5b98109f96c705a3c06197f5a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+0f31acebf540c89e4a4d5d114959fe91973419cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b46daf6462534e1ff918cca00bac4d34a6f9c50a97fb65872023ef1b42e80778 [INFO] running `Command { std: "docker" "start" "-a" "b46daf6462534e1ff918cca00bac4d34a6f9c50a97fb65872023ef1b42e80778", kill_on_drop: false }` [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking error-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `path` and `self` [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Display, fs::{self, File}, path}; [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: `DriverError` [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::storage::driver::{Driver, DriverError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DriverError` [INFO] [stdout] --> src/storage/driver/s3/driver_impl.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::storage::driver::{Driver, DriverError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/storage/driver/s3/driver_impl.rs:9:69 [INFO] [stdout] | [INFO] [stdout] 9 | fn write_file(&self,_path: &str) -> std::result::Result<(), Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - fn write_file(&self,_path: &str) -> std::result::Result<(), Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] 9 + fn write_file(&self,_path: &str) -> std::result::Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/storage/driver/s3/driver_impl.rs:13:73 [INFO] [stdout] | [INFO] [stdout] 13 | fn read_file(&self,_path: &str) -> std::result::Result, Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - fn read_file(&self,_path: &str) -> std::result::Result, Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] 13 + fn read_file(&self,_path: &str) -> std::result::Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `path` and `self` [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Display, fs::{self, File}, path}; [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: `DriverError` [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::storage::driver::{Driver, DriverError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DriverError` [INFO] [stdout] --> src/storage/driver/s3/driver_impl.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::storage::driver::{Driver, DriverError}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/storage/driver/s3/driver_impl.rs:9:69 [INFO] [stdout] | [INFO] [stdout] 9 | fn write_file(&self,_path: &str) -> std::result::Result<(), Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - fn write_file(&self,_path: &str) -> std::result::Result<(), Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] 9 + fn write_file(&self,_path: &str) -> std::result::Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/storage/driver/s3/driver_impl.rs:13:73 [INFO] [stdout] | [INFO] [stdout] 13 | fn read_file(&self,_path: &str) -> std::result::Result, Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - fn read_file(&self,_path: &str) -> std::result::Result, Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] 13 + fn read_file(&self,_path: &str) -> std::result::Result, Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `write_file` has an incompatible type for trait [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | fn write_file(&self,path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ expected `Box<(dyn std::error::Error + 'static)>`, found `local::driver_impl::LocalDriverError` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/storage/driver/driver.rs:40:40 [INFO] [stdout] | [INFO] [stdout] 40 | fn write_file(&self,path: &str) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&local::driver_impl::Local, &_) -> std::result::Result<_, Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found signature `fn(&local::driver_impl::Local, &_) -> std::result::Result<_, local::driver_impl::LocalDriverError>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 24 - fn write_file(&self,path: &str) -> Result<()> { [INFO] [stdout] 24 + fn write_file(&self,path: &str) -> std::result::Result<(), Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `read_file` has an incompatible type for trait [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:31:40 [INFO] [stdout] | [INFO] [stdout] 31 | fn read_file(&self,_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `Box<(dyn std::error::Error + 'static)>`, found `local::driver_impl::LocalDriverError` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/storage/driver/driver.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | fn read_file(&self,path: &str) -> Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&local::driver_impl::Local, &_) -> std::result::Result<_, Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found signature `fn(&local::driver_impl::Local, &_) -> std::result::Result<_, local::driver_impl::LocalDriverError>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 31 - fn read_file(&self,_path: &str) -> Result> { [INFO] [stdout] 31 + fn read_file(&self,_path: &str) -> std::result::Result, Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/storage/driver/driver.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, fmt::Display}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/storage/driver/driver.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | let a =File::open(path)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stdout] error[E0053]: method `write_file` has an incompatible type for trait [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | fn write_file(&self,path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ expected `Box<(dyn std::error::Error + 'static)>`, found `local::driver_impl::LocalDriverError` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/storage/driver/driver.rs:40:40 [INFO] [stdout] | [INFO] [stdout] 40 | fn write_file(&self,path: &str) -> Result<()>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&local::driver_impl::Local, &_) -> std::result::Result<_, Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found signature `fn(&local::driver_impl::Local, &_) -> std::result::Result<_, local::driver_impl::LocalDriverError>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 24 - fn write_file(&self,path: &str) -> Result<()> { [INFO] [stdout] 24 + fn write_file(&self,path: &str) -> std::result::Result<(), Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `read_file` has an incompatible type for trait [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:31:40 [INFO] [stdout] | [INFO] [stdout] 31 | fn read_file(&self,_path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `Box<(dyn std::error::Error + 'static)>`, found `local::driver_impl::LocalDriverError` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/storage/driver/driver.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | fn read_file(&self,path: &str) -> Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected signature `fn(&local::driver_impl::Local, &_) -> std::result::Result<_, Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found signature `fn(&local::driver_impl::Local, &_) -> std::result::Result<_, local::driver_impl::LocalDriverError>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 31 - fn read_file(&self,_path: &str) -> Result> { [INFO] [stdout] 31 + fn read_file(&self,_path: &str) -> std::result::Result, Box<(dyn std::error::Error + 'static)>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::Error` [INFO] [stdout] --> src/storage/driver/driver.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{error::Error, fmt::Display}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `error-test` (bin "error-test" test) due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/storage/driver/driver.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/storage/driver/local/driver_impl.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | let a =File::open(path)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `error-test` (bin "error-test") due to 2 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b46daf6462534e1ff918cca00bac4d34a6f9c50a97fb65872023ef1b42e80778", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b46daf6462534e1ff918cca00bac4d34a6f9c50a97fb65872023ef1b42e80778", kill_on_drop: false }` [INFO] [stdout] b46daf6462534e1ff918cca00bac4d34a6f9c50a97fb65872023ef1b42e80778