[INFO] cloning repository https://github.com/joaoeudes7/Algoritmos-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/joaoeudes7/Algoritmos-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoaoeudes7%2FAlgoritmos-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoaoeudes7%2FAlgoritmos-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c7926854c71573e0bb84d3c9be85611c8ee6ae6d [INFO] checking joaoeudes7/Algoritmos-Rust against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoaoeudes7%2FAlgoritmos-Rust" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/joaoeudes7/Algoritmos-Rust on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/joaoeudes7/Algoritmos-Rust [INFO] finished tweaking git repo https://github.com/joaoeudes7/Algoritmos-Rust [INFO] tweaked toml for git repo https://github.com/joaoeudes7/Algoritmos-Rust written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/joaoeudes7/Algoritmos-Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf12f842632c1ea3d3effbf30e9cdfdb574fe62f9a289a9fb7afef974fbf9649 [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" "bf12f842632c1ea3d3effbf30e9cdfdb574fe62f9a289a9fb7afef974fbf9649", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf12f842632c1ea3d3effbf30e9cdfdb574fe62f9a289a9fb7afef974fbf9649", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf12f842632c1ea3d3effbf30e9cdfdb574fe62f9a289a9fb7afef974fbf9649", kill_on_drop: false }` [INFO] [stdout] bf12f842632c1ea3d3effbf30e9cdfdb574fe62f9a289a9fb7afef974fbf9649 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f92435b80f8c9ae53f620b3cdd37ae0d0dfbc93f6fb82d344d2cab9fbc4f7773 [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" "f92435b80f8c9ae53f620b3cdd37ae0d0dfbc93f6fb82d344d2cab9fbc4f7773", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling standback v0.2.11 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking rust_algorithms v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected type, found keyword `mut` [INFO] [stdout] --> src/bin/binary_tree.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | fn b_search(array: mut [i32], start: i32, end: i32, k: i32) -> [i32] { [INFO] [stdout] | ^^^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found keyword `mut` [INFO] [stdout] --> src/bin/binary_tree.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | fn b_search(array: mut [i32], start: i32, end: i32, k: i32) -> [i32] { [INFO] [stdout] | ^^^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `has_item` [INFO] [stdout] --> src/bin/unknown.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn has_item(vec: Vec, item: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0072]: recursive type `Tree` has infinite size [INFO] [stdout] --> src/bin/binary_tree.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | struct Tree { [INFO] [stdout] | ^^^^^^^^^^^^^^ recursive type has infinite size [INFO] [stdout] 2 | value: T, [INFO] [stdout] 3 | left: Option>, [INFO] [stdout] | --------------- recursive without indirection [INFO] [stdout] 4 | right: Option> [INFO] [stdout] | --------------- recursive without indirection [INFO] [stdout] | [INFO] [stdout] help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `Tree` representable [INFO] [stdout] | [INFO] [stdout] 3 | left: Box>>, [INFO] [stdout] 4 | right: Box>> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0072]: recursive type `Tree` has infinite size [INFO] [stdout] --> src/bin/binary_tree.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | struct Tree { [INFO] [stdout] | ^^^^^^^^^^^^^^ recursive type has infinite size [INFO] [stdout] 2 | value: T, [INFO] [stdout] 3 | left: Option>, [INFO] [stdout] | --------------- recursive without indirection [INFO] [stdout] 4 | right: Option> [INFO] [stdout] | --------------- recursive without indirection [INFO] [stdout] | [INFO] [stdout] help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `Tree` representable [INFO] [stdout] | [INFO] [stdout] 3 | left: Box>>, [INFO] [stdout] 4 | right: Box>> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `has_item` [INFO] [stdout] --> src/bin/unknown.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn has_item(vec: Vec, item: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/binary_tree.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 20 | fn insert(&mut self, new_value: T) -> Self { [INFO] [stdout] | ---- expected `Tree` because of return type [INFO] [stdout] ... [INFO] [stdout] 29 | return node; [INFO] [stdout] | ^^^^ expected struct `Tree`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Tree<_>` [INFO] [stdout] found enum `Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/binary_tree.rs:33:64 [INFO] [stdout] | [INFO] [stdout] 33 | fn b_search(array: mut [i32], start: i32, end: i32, k: i32) -> [i32] { [INFO] [stdout] | -------- ^^^^^ expected slice `[i32]`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/binary_tree.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 20 | fn insert(&mut self, new_value: T) -> Self { [INFO] [stdout] | ---- expected `Tree` because of return type [INFO] [stdout] ... [INFO] [stdout] 29 | return node; [INFO] [stdout] | ^^^^ expected struct `Tree`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Tree<_>` [INFO] [stdout] found enum `Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/binary_tree.rs:33:64 [INFO] [stdout] | [INFO] [stdout] 33 | fn b_search(array: mut [i32], start: i32, end: i32, k: i32) -> [i32] { [INFO] [stdout] | -------- ^^^^^ expected slice `[i32]`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[i32]` cannot be known at compilation time [INFO] [stdout] --> src/bin/binary_tree.rs:33:64 [INFO] [stdout] | [INFO] [stdout] 33 | fn b_search(array: mut [i32], start: i32, end: i32, k: i32) -> [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] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[i32]` cannot be known at compilation time [INFO] [stdout] --> src/bin/binary_tree.rs:33:64 [INFO] [stdout] | [INFO] [stdout] 33 | fn b_search(array: mut [i32], start: i32, end: i32, k: i32) -> [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] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0072, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0072`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0072, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0072`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_algorithms` due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f92435b80f8c9ae53f620b3cdd37ae0d0dfbc93f6fb82d344d2cab9fbc4f7773", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f92435b80f8c9ae53f620b3cdd37ae0d0dfbc93f6fb82d344d2cab9fbc4f7773", kill_on_drop: false }` [INFO] [stdout] f92435b80f8c9ae53f620b3cdd37ae0d0dfbc93f6fb82d344d2cab9fbc4f7773