[INFO] cloning repository https://github.com/steephengeorge/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/steephengeorge/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteephengeorge%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteephengeorge%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2118acd43f54ebf9edbce7eb837b6aa37e58d04f [INFO] checking steephengeorge/rustlings against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteephengeorge%2Frustlings" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/steephengeorge/rustlings [INFO] finished tweaking git repo https://github.com/steephengeorge/rustlings [INFO] tweaked toml for git repo https://github.com/steephengeorge/rustlings written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/steephengeorge/rustlings on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/steephengeorge/rustlings 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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking steephengeorge/rustlings against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsteephengeorge%2Frustlings" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/steephengeorge/rustlings [INFO] finished tweaking git repo https://github.com/steephengeorge/rustlings [INFO] tweaked toml for git repo https://github.com/steephengeorge/rustlings written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/steephengeorge/rustlings on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/steephengeorge/rustlings 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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded escargot v0.5.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9c3dc5383bc6d3d2d5ae7b192054876cbc710fcc6045e172151d2a856b440d2 [INFO] running `Command { std: "docker" "start" "-a" "c9c3dc5383bc6d3d2d5ae7b192054876cbc710fcc6045e172151d2a856b440d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9c3dc5383bc6d3d2d5ae7b192054876cbc710fcc6045e172151d2a856b440d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9c3dc5383bc6d3d2d5ae7b192054876cbc710fcc6045e172151d2a856b440d2", kill_on_drop: false }` [INFO] [stdout] c9c3dc5383bc6d3d2d5ae7b192054876cbc710fcc6045e172151d2a856b440d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c827977ee453da19df91e0f936fb30b18eb5ceaa040b9e6476933dac41becb9e [INFO] running `Command { std: "docker" "start" "-a" "c827977ee453da19df91e0f936fb30b18eb5ceaa040b9e6476933dac41becb9e", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling escargot v0.5.8 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking hello_macro v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/hello_macro) [INFO] [stderr] Checking loop_over_vector_with_iterators v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Loop Over Vector With Iterators) [INFO] [stderr] Checking errors6 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Custom Errors) [INFO] [stderr] Checking capitalize_first v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Capitalize first) [INFO] [stderr] Checking string_trait v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/String Trait) [INFO] [stderr] Checking declaring_a_vector v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Create a Vector on Your Own) [INFO] [stderr] Checking from_into v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/From Into) [INFO] [stderr] Checking errors5 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Multiple Errors) [INFO] [stderr] Checking process_some_strings v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Process Some Strings) [INFO] [stderr] Checking combine_traits v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Combine Traits) [INFO] [stderr] Checking generics_in_structs v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Generic Data Types/Generics in Structs) [INFO] [stderr] Checking fromstr v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/FromStr) [INFO] [stderr] Checking using_as v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Using As) [INFO] [stderr] Checking license_it v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/License It) [INFO] [stderr] Checking compare_licenses v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Compare Licenses) [INFO] [stderr] Checking asref_and_asmut v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/AsRef and AsMut) [INFO] [stderr] Checking string_transformer v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/String Transformer) [INFO] [stderr] Checking trait_bound_syntax v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Trait Bound Syntax) [INFO] [stdout] warning: unused import: `std::fmt::Pointer` [INFO] [stdout] --> Common Collections/Strings/Process Some Strings/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Pointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> Standard Library Types/Type Conversions/FromStr/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::type_name; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking add_conditions v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Conditions/Add Conditions) [INFO] [stderr] Checking advanced_errors_2 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Advanced Errors 2) [INFO] [stderr] Checking loop_over_a_vector v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Loop Over a Vector) [INFO] [stderr] Checking count_progress v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Count Progress) [INFO] [stderr] Checking trim_a_string v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/The Slice Type/Trim a String) [INFO] [stderr] Checking advanced_errors v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Advanced Errors) [INFO] [stderr] Checking build_team_scores_table v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Build Scores Table) [INFO] [stderr] Checking modifying_a_hashmap v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/More Fruits) [INFO] [stderr] Checking declaring_a_hashmap v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Fruits Delivery) [INFO] [stderr] Checking count_typed_cells v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Count Typed Cells) [INFO] [stderr] Checking vec_trait v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Vec Trait) [INFO] [stderr] Checking lamp_with_switchers v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Switch the Lamp) [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:2:42 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{self, Display, Formatter, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking try_from_into v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Try From Into) [INFO] [stderr] Checking box_task v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Box Task) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | _ => write!(f, "unhandled error!"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 45 | Empty => write!(f, "empty input"), [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 46 | BadLen => write!(f, "incorrect number of fields"), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 47 | NoCity => write!(f, "no city name"), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 48 | ParseFloat(e) => write!(f, "error parsing temperature: {}", e), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 49 | ParseInt(e) => write!(f, "error parsing year: {}", e), [INFO] [stdout] 50 | _ => write!(f, "unhandled error!"), [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking use_cow v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Use Cow) [INFO] [stdout] warning: unused variable: `year` [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | [city, year, temp] if city.is_empty() => return Err(ParseClimateError::NoCity), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_year` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | [city, year, temp] if city.is_empty() => return Err(ParseClimateError::NoCity), [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking workers_in_the_engine v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Workers in the Engine) [INFO] [stderr] Checking home_alone v0.1.0 (/opt/rustwide/workdir/Modules/Modules/Home Alone at Day X) [INFO] [stderr] Checking iterator3 v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Iterator) [INFO] [stderr] Checking if_task v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Conditions/If Task) [INFO] [stderr] Checking optional_value v0.1.0 (/opt/rustwide/workdir/Common Collections/Options/Optional Value) [INFO] [stderr] Checking returning_result v0.1.0 (/opt/rustwide/workdir/Error Handling/Error Handling/Returning Result) [INFO] [stderr] Checking integration_tests v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Running and Organizing Tests/Integration Tests) [INFO] [stderr] Checking iterators4 v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Factorial) [INFO] [stderr] Checking times_two_tests v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Running and Organizing Tests/Times Two Tests) [INFO] [stderr] Checking calculate_price v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables, Functions, and Conditions Test/Calculate Price) [INFO] [stderr] Checking use_option v0.1.0 (/opt/rustwide/workdir/Common Collections/Options/Use Option) [INFO] [stderr] Checking matching_result v0.1.0 (/opt/rustwide/workdir/Error Handling/Error Handling/Matching Result) [INFO] [stderr] Checking result1 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Positive Nonzero Integer) [INFO] [stderr] Checking submodules v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Running and Organizing Tests/Submodules in Integration Tests) [INFO] [stderr] Checking quote v1.0.35 [INFO] [stderr] Checking defining_a_function v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Defining a Function) [INFO] [stderr] Checking calling_methods_without_default_implementations v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Calling Methods Without Default Implementations) [INFO] [stderr] Checking summary_tests v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Running and Organizing Tests/Summary) [INFO] [stderr] Checking the_static_lifetime v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Lifetimes/The Static Lifetime) [INFO] [stderr] Checking macro_arms v0.1.0 (/opt/rustwide/workdir/Macros/Declarative Macros/Macro Arms) [INFO] [stderr] Checking running_tests v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Running and Organizing Tests/Running Tests) [INFO] [stderr] Checking compound_types v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Tuples and Arrays/The Array Type) [INFO] [stderr] Checking repetition_with_loops v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Repetitions/Repetition with Loops) [INFO] [stderr] Checking check_clippy_for_option v0.1.0 (/opt/rustwide/workdir/Common Collections/Options/Check Clippy for Option) [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Lifetimes/The Static Lifetime/src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let s: &'static str = "I have a static lifetime."; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking the_anatomy_of_a_test_function v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/How to Write Tests/The Anatomy of a Test Function) [INFO] [stderr] Checking matches_are_exhaustive v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Matches Are Exhaustive) [INFO] [stderr] Checking dropping_a_vector_drops_its_elements v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Dropping a Vector Drops Its Elements) [INFO] [stderr] Checking associated_functions v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Structs with Methods/Associated Functions and Multiple impl Blocks) [INFO] [stderr] Checking other_slices v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/The Slice Type/Other Slices) [INFO] [stderr] Checking traits v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Traits) [INFO] [stderr] Checking using_message_passing_to_transfer_data_between_threads v0.1.0 (/opt/rustwide/workdir/Fearless Concurrency/Using Message Passing to Transfer Data Between Threads/Intro) [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> Common Programming Concepts/Tuples and Arrays/The Array Type/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let first = a[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> Common Programming Concepts/Tuples and Arrays/The Array Type/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let second = a[1]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> Common Programming Concepts/Tuples and Arrays/The Array Type/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let first = a[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> Common Programming Concepts/Tuples and Arrays/The Array Type/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let second = a[1]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Matches Are Exhaustive/src/main.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn plus_one(x: Option) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking variables6 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Constant Type) [INFO] [stderr] Checking testing_equality_with_the_assert_eq_and_assert_ne_macros v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/How to Write Tests/Testing Equality with the assert_eq and assert_ne Macros) [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> Common Collections/Vectors/Dropping a Vector Drops Its Elements/src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | let v = vec![1, 2, 3, 4]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mutable_references v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/References and Borrowing/Mutable References) [INFO] [stderr] Checking hash_maps_and_ownership v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Hash Maps and Ownership) [INFO] [stderr] Checking summary_macros v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/Summary) [INFO] [stderr] Checking who_owns_the_ring_of_power v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/What is ownership/Who Owns the One Ring) [INFO] [stderr] Checking attribute_like_macros v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/Attribute-like macros) [INFO] [stderr] Checking a_shortcut_for_propagating_errors v0.1.0 (/opt/rustwide/workdir/Error Handling/Error Handling/A Shortcut for Propagating Errors) [INFO] [stderr] Checking intro_sp v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Intro) [INFO] [stderr] Checking matching_with_option v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Matching with Option) [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking patterns_that_bind_to_values v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Patterns that Bind to Values) [INFO] [stderr] Checking default_implementations v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Default Implementations) [INFO] [stderr] Checking code_without_duplications v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Intro/Code without Duplications) [INFO] [stderr] Checking the_tuple_type v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Tuples and Arrays/The Tuple Type) [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Matching with Option/src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Matching with Option/src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> Error Handling/Error Handling/A Shortcut for Propagating Errors/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_2` is never used [INFO] [stdout] --> Error Handling/Error Handling/A Shortcut for Propagating Errors/src/main.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn read_username_from_file_2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking using_if_in_a_let_statement_ v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Conditions/Using if in a let Statement) [INFO] [stdout] warning: function `read_username_from_file_3` is never used [INFO] [stdout] --> Error Handling/Error Handling/A Shortcut for Propagating Errors/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn read_username_from_file_3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ManagingConditions v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Conditions/Managing Conditions) [INFO] [stderr] Checking making_structs_and_enums_public v0.1.0 (/opt/rustwide/workdir/Modules/Modules/Making Structs and Enums Public) [INFO] [stderr] Checking the_slice_type v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/The Slice Type/Intro) [INFO] [stderr] Checking variables1 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/New Variable Binding) [INFO] [stderr] Checking generic_data_types v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Generic Data Types/In Function Definitions) [INFO] [stderr] Checking generic_lifetimes_in_functions v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Lifetimes/Generic Lifetimes in Functions) [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Patterns that Bind to Values/src/main.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let value = value_in_cents(Coin::Quarter(UsState::Alabama)); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alaska` is never constructed [INFO] [stdout] --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Patterns that Bind to Values/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] 4 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Patterns that Bind to Values/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 9 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> Common Programming Concepts/Tuples and Arrays/The Tuple Type/src/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> Common Programming Concepts/Tuples and Arrays/The Tuple Type/src/main.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking lifetime_syntax v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Lifetimes/Intro) [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> Modules/Modules/Making Structs and Enums Public/src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> Modules/Modules/Making Structs and Enums Public/src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking procedural_macros_for_generating_code_from_attributes v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/Procedural Macros for Generating Code from Attributes) [INFO] [stderr] Checking summary_match v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Pattern Matching/Summary) [INFO] [stderr] Checking generics_in_vec v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Generic Data Types/Generics in Vec) [INFO] [stderr] Checking channels_and_ownership_transference v0.1.0 (/opt/rustwide/workdir/Fearless Concurrency/Using Message Passing to Transfer Data Between Threads/Channels and Ownership Transference) [INFO] [stderr] Checking duplicated_code_fragments v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Intro/Duplicated Code Fragments) [INFO] [stderr] Checking preventing_dangling_references_with_lifetimes_ v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Lifetimes/Preventing Dangling References with Lifetimes) [INFO] [stdout] error[E0369]: binary operation `>` cannot be applied to type `&T` [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Generic Data Types/In Function Definitions/src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | if item > largest { // !!! ERROR [INFO] [stdout] | ---- ^ ------- &T [INFO] [stdout] | | [INFO] [stdout] | &T [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `PartialOrd` [INFO] [stdout] | [INFO] [stdout] 1 | fn largest(list: &[T]) -> &T { [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> Understanding Ownership/The Slice Type/Intro/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let word = first_word(&s); // word will get the value 5 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking propagating_errors v0.1.0 (/opt/rustwide/workdir/Error Handling/Error Handling/Propagating Errors) [INFO] [stdout] For more information about this error, try `rustc --explain E0369`. [INFO] [stdout] [INFO] [stderr] Checking fixing_the_largest_function_with_trait_bounds v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Fixing the largest Function with Trait Bounds) [INFO] [stderr] error: could not compile `generic_data_types` (bin "generic_data_types" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `shopping_list` [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Generic Data Types/Generics in Vec/src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let shopping_list: Vec<&str> = vec!["milk"]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shopping_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `x` does not live long enough [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Lifetimes/Preventing Dangling References with Lifetimes/src/main.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 6 | let x = 5; [INFO] [stdout] | - binding `x` declared here [INFO] [stdout] 7 | r = &x; // !!! ERROR: `x` does not live long enough [INFO] [stdout] | ^^ borrowed value does not live long enough [INFO] [stdout] 8 | } [INFO] [stdout] | - `x` dropped here while still borrowed [INFO] [stdout] 9 | [INFO] [stdout] 10 | println!("r: {}", r); [INFO] [stdout] | - borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> Error Handling/Error Handling/Propagating Errors/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `preventing_dangling_references_with_lifetimes_` (bin "preventing_dangling_references_with_lifetimes_" test) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "c827977ee453da19df91e0f936fb30b18eb5ceaa040b9e6476933dac41becb9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c827977ee453da19df91e0f936fb30b18eb5ceaa040b9e6476933dac41becb9e", kill_on_drop: false }` [INFO] [stdout] c827977ee453da19df91e0f936fb30b18eb5ceaa040b9e6476933dac41becb9e