[INFO] cloning repository https://github.com/jakubsuchybio/learn_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jakubsuchybio/learn_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakubsuchybio%2Flearn_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakubsuchybio%2Flearn_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7eb0096600b3f86ad3913e70cfabc4c0eab392b0 [INFO] testing jakubsuchybio/learn_rust against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjakubsuchybio%2Flearn_rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/jakubsuchybio/learn_rust [INFO] finished tweaking git repo https://github.com/jakubsuchybio/learn_rust [INFO] tweaked toml for git repo https://github.com/jakubsuchybio/learn_rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jakubsuchybio/learn_rust on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jakubsuchybio/learn_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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 258fd69db6de8820eb066aacc2ce69bfdf408214416f446aabfe9ec0023f910f [INFO] running `Command { std: "docker" "start" "-a" "258fd69db6de8820eb066aacc2ce69bfdf408214416f446aabfe9ec0023f910f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "258fd69db6de8820eb066aacc2ce69bfdf408214416f446aabfe9ec0023f910f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "258fd69db6de8820eb066aacc2ce69bfdf408214416f446aabfe9ec0023f910f", kill_on_drop: false }` [INFO] [stdout] 258fd69db6de8820eb066aacc2ce69bfdf408214416f446aabfe9ec0023f910f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9dd2506ea6f8df267eb6eb3607a21bcce59a768d8d9746fb86f9b76bc005c3bc [INFO] running `Command { std: "docker" "start" "-a" "9dd2506ea6f8df267eb6eb3607a21bcce59a768d8d9746fb86f9b76bc005c3bc", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling escargot v0.5.13 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hello_macro v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/hello_macro) [INFO] [stderr] Compiling compare_licenses v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Compare Licenses) [INFO] [stderr] Compiling combine_traits v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Combine Traits) [INFO] [stderr] Compiling modifying_a_hashmap v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/More Fruits) [INFO] [stderr] Compiling asref_and_asmut v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/AsRef and AsMut) [INFO] [stderr] Compiling lamp_with_switchers v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Switch the Lamp) [INFO] [stdout] error: expected identifier, found `)` [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Combine Traits/src/lib.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn some_func(item: ??) -> bool { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basket` [INFO] [stdout] --> Common Collections/Hashmaps/More Fruits/src/lib.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn fruit_basket(basket: &mut HashMap) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_basket` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fruit` [INFO] [stdout] --> Common Collections/Hashmaps/More Fruits/src/lib.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | for fruit in fruit_kinds { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fruit` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stdout] error[E0425]: cannot find value `item` in this scope [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Combine Traits/src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | item.some_function() && item.other_function() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `item` in this scope [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Combine Traits/src/lib.rs:22:29 [INFO] [stdout] | [INFO] [stdout] 22 | item.some_function() && item.other_function() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling capitalize_first v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Capitalize first) [INFO] [stderr] Compiling use_cow v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Use Cow) [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `combine_traits` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: expected identifier, found `,` [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Compare Licenses/src/lib.rs:15:42 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn compare_license_types(software: ??, software_two: ??) -> bool { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] | [INFO] [stdout] help: remove this comma [INFO] [stdout] | [INFO] [stdout] 15 - pub fn compare_license_types(software: ??, software_two: ??) -> bool { [INFO] [stdout] 15 + pub fn compare_license_types(software: ?? software_two: ??) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected a trait, found type [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Compare Licenses/src/lib.rs:15:41 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn compare_license_types(software: ??, software_two: ??) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `)` [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Compare Licenses/src/lib.rs:15:60 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn compare_license_types(software: ??, software_two: ??) -> bool { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `?` [INFO] [stdout] --> Standard Library Types/Iterators/Capitalize first/src/lib.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | Some(first) => ???, [INFO] [stdout] | -- ^ expected expression [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `words` [INFO] [stdout] --> Standard Library Types/Iterators/Capitalize first/src/lib.rs:10:32 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn capitalize_words_vector(words: &[&str]) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_words` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `words` [INFO] [stdout] --> Standard Library Types/Iterators/Capitalize first/src/lib.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn capitalize_words_string(words: &[&str]) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_words` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for type parameter `T` in the current scope [INFO] [stdout] --> Standard Library Types/Type Conversions/AsRef and AsMut/src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn byte_counter(arg: T) -> usize { [INFO] [stdout] 3 | arg.as_ref().as_bytes().len() [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `as_ref`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 1 | pub fn byte_counter/*Obtain the number of bytes (not characters) in the given argument [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `capitalize_first` (lib) due to 1 previous error; 2 warnings emitted [INFO] [stdout] error[E0599]: no method named `as_ref` found for type parameter `T` in the current scope [INFO] [stdout] --> Standard Library Types/Type Conversions/AsRef and AsMut/src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn char_counter(arg: T) -> usize { [INFO] [stdout] 9 | arg.as_ref().chars().count() [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `as_ref`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 7 | pub fn char_counter/* Obtain the number of characters (not bytes) in the given argument [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `software` in this scope [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Compare Licenses/src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | software.licensing_info() == software_two.licensing_info() [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `software_two` in this scope [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Compare Licenses/src/lib.rs:16:34 [INFO] [stdout] | [INFO] [stdout] 16 | software.licensing_info() == software_two.licensing_info() [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `asref_and_asmut` (lib) due to 2 previous errors [INFO] [stderr] error: could not compile `compare_licenses` (lib) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "9dd2506ea6f8df267eb6eb3607a21bcce59a768d8d9746fb86f9b76bc005c3bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9dd2506ea6f8df267eb6eb3607a21bcce59a768d8d9746fb86f9b76bc005c3bc", kill_on_drop: false }` [INFO] [stdout] 9dd2506ea6f8df267eb6eb3607a21bcce59a768d8d9746fb86f9b76bc005c3bc