[INFO] cloning repository https://github.com/kennethdsheridan/rusting [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kennethdsheridan/rusting" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkennethdsheridan%2Frusting", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkennethdsheridan%2Frusting'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f0564cd9df6f179f5585577d8965958ce155eabe [INFO] checking kennethdsheridan/rusting against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkennethdsheridan%2Frusting" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kennethdsheridan/rusting [INFO] finished tweaking git repo https://github.com/kennethdsheridan/rusting [INFO] tweaked toml for git repo https://github.com/kennethdsheridan/rusting written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kennethdsheridan/rusting on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kennethdsheridan/rusting 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" "+f70ee28831acc074c109afab32d287057c3eca46" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e57cac01f9a0cd8c1d051b526e647537bae47ce335d96b6ef7ec3ac1809a02db [INFO] running `Command { std: "docker" "start" "-a" "e57cac01f9a0cd8c1d051b526e647537bae47ce335d96b6ef7ec3ac1809a02db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e57cac01f9a0cd8c1d051b526e647537bae47ce335d96b6ef7ec3ac1809a02db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e57cac01f9a0cd8c1d051b526e647537bae47ce335d96b6ef7ec3ac1809a02db", kill_on_drop: false }` [INFO] [stdout] e57cac01f9a0cd8c1d051b526e647537bae47ce335d96b6ef7ec3ac1809a02db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fdaf69e75d50a8c18f05b1011b8ce1f221830350555a910b446dab81f1c7c474 [INFO] running `Command { std: "docker" "start" "-a" "fdaf69e75d50a8c18f05b1011b8ce1f221830350555a910b446dab81f1c7c474", kill_on_drop: false }` [INFO] [stderr] Checking rusting-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::Reverse` [INFO] [stdout] --> src/bin/merge_k_sorted_lists.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::cmp::Reverse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fun_two_sum` is never used [INFO] [stdout] --> src/bin/fucntional_two_sum.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn fun_two_sum(nums: Vec, target: i32) -> Option<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/climb_stairs.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | for i in 1..=n { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/bin/34_find_fist_and_last_in_sorted_array.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | if let Ok(index) = nums.binary_search(&target) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `ListNode` [INFO] [stdout] --> src/bin/linkedlists.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 4 | / pub struct ListNode { [INFO] [stdout] 5 | | val: i32, [INFO] [stdout] 6 | | next: Option>, [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- `ListNode` defined here [INFO] [stdout] ... [INFO] [stdout] 30 | next:Some(Box::new(ListNode)) [INFO] [stdout] | ^^^^^^^^ help: use struct literal syntax instead: `ListNode { val: val, next: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fun_two_sum` is never used [INFO] [stdout] --> src/bin/fucntional_two_sum.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn fun_two_sum(nums: Vec, target: i32) -> Option<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/merge_k_sorted_lists.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn merge_lists(lists: Vec) -> List { [INFO] [stdout] | ----------- ^^^^ expected `Option>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_anagrams` is never used [INFO] [stdout] --> src/bin/group_anagrams.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anagram` is never used [INFO] [stdout] --> src/bin/group_anagrams.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn anagram(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `fruit_list_strings` [INFO] [stdout] --> src/bin/rust_iterators.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 22 | let fruit_list_strings = fruit_list.iter().map(|e| String::from(*e)); [INFO] [stdout] | ------------------ move occurs because `fruit_list_strings` has type `Map, {closure@src/bin/rust_iterators.rs:22:52: 22:55}>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 25 | fruit_list_strings.peekable().next(); [INFO] [stdout] | ---------- `fruit_list_strings` moved due to this method call [INFO] [stdout] 26 | [INFO] [stdout] 27 | let food = fruit_list_strings.peekable().peek(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `peekable` takes ownership of the receiver `self`, which moves `fruit_list_strings` [INFO] [stdout] --> /rustc/f70ee28831acc074c109afab32d287057c3eca46/library/core/src/iter/traits/iterator.rs:1056:16 [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 25 | fruit_list_strings.clone().peekable().next(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food` [INFO] [stdout] --> src/bin/rust_iterators.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let food = fruit_list_strings.peekable().peek(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_food` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusting-rs` (bin "rust_iterators" test) due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rusting-rs` (bin "merge_k_sorted_lists") due to 1 previous error; 1 warning emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/linkedlists.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 17 | let mut cur = None; [INFO] [stdout] | ---- expected due to this value [INFO] [stdout] ... [INFO] [stdout] 22 | cur = new_node; [INFO] [stdout] | ^^^^^^^^ expected `Option>`, found `ListNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>` [INFO] [stdout] found struct `ListNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `[{integer}; 5]` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/bin/array_temperature.rs:15:38 [INFO] [stdout] | [INFO] [stdout] 15 | println!("Temperatures are: {}", &temperatures); [INFO] [stdout] | -- ^^^^^^^^^^^^^ `[{integer}; 5]` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `[{integer}; 5]` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required for `&[{integer}; 5]` to implement `std::fmt::Display` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `merge_two_lists` [INFO] [stdout] --> src/bin/merge_two_lists.rs:4:2 [INFO] [stdout] | [INFO] [stdout] 4 | [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/merge_two_lists.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rusting-rs` (bin "linkedlists" test) due to 2 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `[{integer}; 5]` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/bin/array_temperature.rs:15:38 [INFO] [stdout] | [INFO] [stdout] 15 | println!("Temperatures are: {}", &temperatures); [INFO] [stdout] | -- ^^^^^^^^^^^^^ `[{integer}; 5]` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `[{integer}; 5]` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required for `&[{integer}; 5]` to implement `std::fmt::Display` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/filter.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let input = 45; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Reverse` [INFO] [stdout] --> src/bin/merge_k_sorted_lists.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::cmp::Reverse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rusting-rs` (bin "array_temperature") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusting-rs` (bin "merge_two_lists") due to 1 previous error [INFO] [stderr] error: could not compile `rusting-rs` (bin "array_temperature" test) due to 1 previous error [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/merge_k_sorted_lists.rs:26:45 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn merge_lists(lists: Vec) -> List { [INFO] [stdout] | ----------- ^^^^ expected `Option>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusting-rs` (bin "merge_k_sorted_lists" test) due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "fdaf69e75d50a8c18f05b1011b8ce1f221830350555a910b446dab81f1c7c474", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdaf69e75d50a8c18f05b1011b8ce1f221830350555a910b446dab81f1c7c474", kill_on_drop: false }` [INFO] [stdout] fdaf69e75d50a8c18f05b1011b8ce1f221830350555a910b446dab81f1c7c474