[INFO] cloning repository https://github.com/elroykanye/rust-50-coding-challenges [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/elroykanye/rust-50-coding-challenges" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felroykanye%2Frust-50-coding-challenges", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felroykanye%2Frust-50-coding-challenges'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6bdfdc06448d953643d8720a6bf98f22409adfe9 [INFO] checking elroykanye/rust-50-coding-challenges against try#8552849d5ae3b6c66b89a0ac2e9c1e3ef5cde346 for pr-86194 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felroykanye%2Frust-50-coding-challenges" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elroykanye/rust-50-coding-challenges on toolchain 8552849d5ae3b6c66b89a0ac2e9c1e3ef5cde346 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8552849d5ae3b6c66b89a0ac2e9c1e3ef5cde346" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/elroykanye/rust-50-coding-challenges [INFO] finished tweaking git repo https://github.com/elroykanye/rust-50-coding-challenges [INFO] tweaked toml for git repo https://github.com/elroykanye/rust-50-coding-challenges written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/elroykanye/rust-50-coding-challenges already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8552849d5ae3b6c66b89a0ac2e9c1e3ef5cde346" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+8552849d5ae3b6c66b89a0ac2e9c1e3ef5cde346" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 889e76a6ff7024a3f32155baba617c461aa607e05dd879dfc9be384d8cc8c87b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "889e76a6ff7024a3f32155baba617c461aa607e05dd879dfc9be384d8cc8c87b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "889e76a6ff7024a3f32155baba617c461aa607e05dd879dfc9be384d8cc8c87b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "889e76a6ff7024a3f32155baba617c461aa607e05dd879dfc9be384d8cc8c87b", kill_on_drop: false }` [INFO] [stdout] 889e76a6ff7024a3f32155baba617c461aa607e05dd879dfc9be384d8cc8c87b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+8552849d5ae3b6c66b89a0ac2e9c1e3ef5cde346" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25815c93798412f9a497f324a1b8870a11e0db7864b68fdbb0e868bb39e622b8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "25815c93798412f9a497f324a1b8870a11e0db7864b68fdbb0e868bb39e622b8", kill_on_drop: false }` [INFO] [stderr] Checking rust-50-code-exercises v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/part_one.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | const size: usize = count_array(&arr); [INFO] [stdout] | ---------- ^^^ non-constant value [INFO] [stdout] | | [INFO] [stdout] | help: consider using `let` instead of `const`: `let size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/part_one.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 112 | let mut i: usize = 0; [INFO] [stdout] | -------- help: consider using `const` instead of `let`: `const i` [INFO] [stdout] ... [INFO] [stdout] 121 | let mut final_result: [i32; i] = [0; i]; [INFO] [stdout] | ^ non-constant value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/part_one.rs:121:42 [INFO] [stdout] | [INFO] [stdout] 112 | let mut i: usize = 0; [INFO] [stdout] | -------- help: consider using `const` instead of `let`: `const i` [INFO] [stdout] ... [INFO] [stdout] 121 | let mut final_result: [i32; i] = [0; i]; [INFO] [stdout] | ^ non-constant value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/part_one.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | const size: usize = count_array(&arr); [INFO] [stdout] | ---------- ^^^ non-constant value [INFO] [stdout] | | [INFO] [stdout] | help: consider using `let` instead of `const`: `let size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/part_one.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 112 | let mut i: usize = 0; [INFO] [stdout] | -------- help: consider using `const` instead of `let`: `const i` [INFO] [stdout] ... [INFO] [stdout] 121 | let mut final_result: [i32; i] = [0; i]; [INFO] [stdout] | ^ non-constant value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> src/part_one.rs:121:42 [INFO] [stdout] | [INFO] [stdout] 112 | let mut i: usize = 0; [INFO] [stdout] | -------- help: consider using `const` instead of `let`: `const i` [INFO] [stdout] ... [INFO] [stdout] 121 | let mut final_result: [i32; i] = [0; i]; [INFO] [stdout] | ^ non-constant value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[i32]` cannot be known at compilation time [INFO] [stdout] --> src/part_one.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn exercise_twelve(arr: [i32]) -> &'static [i32] { [INFO] [stdout] | ^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[i32]` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 106 | pub fn exercise_twelve(arr: &[i32]) -> &'static [i32] { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0435. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-50-code-exercises` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the size for values of type `[i32]` cannot be known at compilation time [INFO] [stdout] --> src/part_one.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn exercise_twelve(arr: [i32]) -> &'static [i32] { [INFO] [stdout] | ^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[i32]` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 106 | pub fn exercise_twelve(arr: &[i32]) -> &'static [i32] { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0435. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "25815c93798412f9a497f324a1b8870a11e0db7864b68fdbb0e868bb39e622b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25815c93798412f9a497f324a1b8870a11e0db7864b68fdbb0e868bb39e622b8", kill_on_drop: false }` [INFO] [stdout] 25815c93798412f9a497f324a1b8870a11e0db7864b68fdbb0e868bb39e622b8