[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#9503ea19edbf01b9435e80e17d60ce1b88390116 for pr-81782 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoaoeudes7%2FAlgoritmos-Rust" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/joaoeudes7/Algoritmos-Rust on toolchain 9503ea19edbf01b9435e80e17d60ce1b88390116 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9503ea19edbf01b9435e80e17d60ce1b88390116" "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-1/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" "+9503ea19edbf01b9435e80e17d60ce1b88390116" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9503ea19edbf01b9435e80e17d60ce1b88390116" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a130608c904a3af1d3c9aae1d336994a79010ab1c17bcb2d2333d228fa1669e2 [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" "a130608c904a3af1d3c9aae1d336994a79010ab1c17bcb2d2333d228fa1669e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a130608c904a3af1d3c9aae1d336994a79010ab1c17bcb2d2333d228fa1669e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a130608c904a3af1d3c9aae1d336994a79010ab1c17bcb2d2333d228fa1669e2", kill_on_drop: false }` [INFO] [stdout] a130608c904a3af1d3c9aae1d336994a79010ab1c17bcb2d2333d228fa1669e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9503ea19edbf01b9435e80e17d60ce1b88390116" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f05c47b6ffff468e7d458a0d87febe706774cc1f4e531f2f43dd29e6629a1ad [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" "8f05c47b6ffff468e7d458a0d87febe706774cc1f4e531f2f43dd29e6629a1ad", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling standback v0.2.11 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Checking rand_core v0.5.1 [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] 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] 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: 1 warning emitted [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: 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[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] 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] [stderr] error: could not compile `rust_algorithms` [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0072, E0277, E0308. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0072`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: 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: build failed [INFO] running `Command { std: "docker" "inspect" "8f05c47b6ffff468e7d458a0d87febe706774cc1f4e531f2f43dd29e6629a1ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f05c47b6ffff468e7d458a0d87febe706774cc1f4e531f2f43dd29e6629a1ad", kill_on_drop: false }` [INFO] [stdout] 8f05c47b6ffff468e7d458a0d87febe706774cc1f4e531f2f43dd29e6629a1ad