[INFO] cloning repository https://github.com/qparrod/rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qparrod/rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqparrod%2Frust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqparrod%2Frust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d40f3bc5513856e7a293b59b61b06f8686e3f0d7 [INFO] checking qparrod/rust against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqparrod%2Frust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qparrod/rust on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qparrod/rust [INFO] finished tweaking git repo https://github.com/qparrod/rust [INFO] tweaked toml for git repo https://github.com/qparrod/rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/qparrod/rust 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded time v0.1.34 [INFO] [stderr] Downloaded kernel32-sys v0.2.1 [INFO] [stderr] Downloaded libc v0.2.7 [INFO] [stderr] Downloaded winapi v0.2.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a91ecbbc670b98c1b9cae25e65bc3fc8afab2e8a946a17978e6926b96d7d58d0 [INFO] running `Command { std: "docker" "start" "-a" "a91ecbbc670b98c1b9cae25e65bc3fc8afab2e8a946a17978e6926b96d7d58d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a91ecbbc670b98c1b9cae25e65bc3fc8afab2e8a946a17978e6926b96d7d58d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a91ecbbc670b98c1b9cae25e65bc3fc8afab2e8a946a17978e6926b96d7d58d0", kill_on_drop: false }` [INFO] [stdout] a91ecbbc670b98c1b9cae25e65bc3fc8afab2e8a946a17978e6926b96d7d58d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 843b0cf9f8158a0a39c89564e82f08067ca9dc874845cb4fed7e6d79a08a30d0 [INFO] running `Command { std: "docker" "start" "-a" "843b0cf9f8158a0a39c89564e82f08067ca9dc874845cb4fed7e6d79a08a30d0", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking winapi v0.2.5 [INFO] [stderr] Checking libc v0.2.7 [INFO] [stderr] Compiling kernel32-sys v0.2.1 [INFO] [stderr] Checking time v0.1.34 [INFO] [stderr] Checking rust-learning v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod lib; // lib as folder lib [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/log.rs:16:70 [INFO] [stdout] | [INFO] [stdout] 16 | Err(why) => panic!("couldn't create {}: {}", display, Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/log.rs:29:74 [INFO] [stdout] | [INFO] [stdout] 29 | Err(why) => { panic!("couldn't write to {}: {}", display, Error::description(&why)) }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/log.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | static path : Path = Path::new("log/test.log"); [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/path.rs:1993:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/log.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | static path : Path = Path::new("log/test.log"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/path.rs:1993:12 [INFO] [stdout] = note: constant expressions must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod lib; // lib as folder lib [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/log.rs:16:70 [INFO] [stdout] | [INFO] [stdout] 16 | Err(why) => panic!("couldn't create {}: {}", display, Error::description(&why)), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/log.rs:29:74 [INFO] [stdout] | [INFO] [stdout] 29 | Err(why) => { panic!("couldn't write to {}: {}", display, Error::description(&why)) }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/log.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | static path : Path = Path::new("log/test.log"); [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/path.rs:1993:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/log.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | static path : Path = Path::new("log/test.log"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/path.rs:1993:12 [INFO] [stdout] = note: constant expressions must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/log.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | static path : Path = Path::new("log/test.log"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Path`, found `&Path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `i32` as `File` [INFO] [stdout] --> src/log.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | const file : File = 0 as File; [INFO] [stdout] | ^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Path::display` in statics [INFO] [stdout] --> src/log.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | static display : Display = path.display(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/log.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | static path : Path = Path::new("log/test.log"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Path`, found `&Path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/log.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | file = match File::open(&path) [INFO] [stdout] | ---- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `i32` as `File` [INFO] [stdout] --> src/log.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | const file : File = 0 as File; [INFO] [stdout] | ^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `TmFmt<'_>` to `&str` [INFO] [stdout] --> src/log.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | let line = "[" + time::now().rfc822() + "] " + to_print; [INFO] [stdout] | --- ^ -------------------- TmFmt<'_> [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const fn `Path::display` in statics [INFO] [stdout] --> src/log.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | static display : Display = path.display(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in statics are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/log.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | file = match File::open(&path) [INFO] [stdout] | ---- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `TmFmt<'_>` to `&str` [INFO] [stdout] --> src/log.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | let line = "[" + time::now().rfc822() + "] " + to_print; [INFO] [stdout] | --- ^ -------------------- TmFmt<'_> [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `File` in the current scope [INFO] [stdout] --> src/log.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | match file.write_all(line.as_bytes()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/io/mod.rs:1701:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `File` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `write_all_at` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/os/unix/fs.rs:248:5 [INFO] [stdout] help: trait `Write` which provides `write_all` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_all` found for struct `File` in the current scope [INFO] [stdout] --> src/log.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | match file.write_all(line.as_bytes()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/io/mod.rs:1701:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `File` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `write_all_at` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/os/unix/fs.rs:248:5 [INFO] [stdout] help: trait `Write` which provides `write_all` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Write; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0070, E0277, E0308, E0369, E0599, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0015, E0070, E0277, E0308, E0369, E0599, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-learning` (bin "rust-learning") due to 9 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-learning` (bin "rust-learning" test) due to 9 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "843b0cf9f8158a0a39c89564e82f08067ca9dc874845cb4fed7e6d79a08a30d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "843b0cf9f8158a0a39c89564e82f08067ca9dc874845cb4fed7e6d79a08a30d0", kill_on_drop: false }` [INFO] [stdout] 843b0cf9f8158a0a39c89564e82f08067ca9dc874845cb4fed7e6d79a08a30d0