[INFO] cloning repository https://github.com/ThamizhiniyanCS/jetbrains-academy-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/ThamizhiniyanCS/jetbrains-academy-learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThamizhiniyanCS%2Fjetbrains-academy-learn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThamizhiniyanCS%2Fjetbrains-academy-learn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 65f7172d47a08d0f8ebe154b33af91cf4a132969 [INFO] checking ThamizhiniyanCS/jetbrains-academy-learn-rust against try#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThamizhiniyanCS%2Fjetbrains-academy-learn-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] started tweaking git repo https://github.com/ThamizhiniyanCS/jetbrains-academy-learn-rust [INFO] finished tweaking git repo https://github.com/ThamizhiniyanCS/jetbrains-academy-learn-rust [INFO] tweaked toml for git repo https://github.com/ThamizhiniyanCS/jetbrains-academy-learn-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ThamizhiniyanCS/jetbrains-academy-learn-rust on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ThamizhiniyanCS/jetbrains-academy-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" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e20201f5231044e2e0b4823896c05b25286669d9a200b36ff10f8d30457a5c5 [INFO] running `Command { std: "docker" "start" "-a" "3e20201f5231044e2e0b4823896c05b25286669d9a200b36ff10f8d30457a5c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e20201f5231044e2e0b4823896c05b25286669d9a200b36ff10f8d30457a5c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e20201f5231044e2e0b4823896c05b25286669d9a200b36ff10f8d30457a5c5", kill_on_drop: false }` [INFO] [stdout] 3e20201f5231044e2e0b4823896c05b25286669d9a200b36ff10f8d30457a5c5 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18805ceb20e78151137a0196701233040ed1c7db18a3bb074dcc9f27fe290c90 [INFO] running `Command { std: "docker" "start" "-a" "18805ceb20e78151137a0196701233040ed1c7db18a3bb074dcc9f27fe290c90", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling escargot v0.5.13 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking once_cell v1.21.1 [INFO] [stderr] Checking log v0.4.26 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking hello_macro v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/hello_macro) [INFO] [stderr] Checking build_team_scores_table v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Build Scores Table) [INFO] [stderr] Checking add_conditions v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Conditions/Add Conditions) [INFO] [stderr] Checking count_typed_cells v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Count Typed Cells) [INFO] [stderr] Checking asref_and_asmut v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/AsRef and AsMut) [INFO] [stderr] Checking count_progress v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Count Progress) [INFO] [stderr] Checking advanced_errors_2 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Advanced Errors 2) [INFO] [stderr] Checking declaring_a_vector v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Create a Vector on Your Own) [INFO] [stderr] Checking fromstr v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/FromStr) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | _ => 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:49:13 [INFO] [stdout] | [INFO] [stdout] 44 | NoCity => write!(f, "no city name"), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 45 | ParseFloat(e) => write!(f, "error parsing temperature: {}", e), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 46 | Empty => write!(f, "empty input"), [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 47 | BadLen => write!(f, "incorrect number of fields"), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 48 | ParseInt(e) => write!(f, "error parsing year: {}", e), [INFO] [stdout] 49 | _ => 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] [stdout] warning: unused variable: `year` [INFO] [stdout] --> Error Handling/Errors Primer/Advanced Errors 2/src/lib.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | [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:69:26 [INFO] [stdout] | [INFO] [stdout] 69 | [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 from_into v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/From Into) [INFO] [stderr] Checking try_from_into v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Try From Into) [INFO] [stderr] Checking modifying_a_hashmap v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/More Fruits) [INFO] [stderr] Checking string_trait v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/String Trait) [INFO] [stderr] Checking trait_bound_syntax v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Trait Bound Syntax) [INFO] [stderr] Checking capitalize_first v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Capitalize first) [INFO] [stderr] Checking vec_trait v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Vec Trait) [INFO] [stderr] Checking loop_over_a_vector v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Loop Over a Vector) [INFO] [stderr] Checking process_some_strings v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Process Some Strings) [INFO] [stderr] Checking errors5 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Multiple Errors) [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 lamp_with_switchers v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Switch the Lamp) [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 license_it v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/License It) [INFO] [stderr] Checking declaring_a_hashmap v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Fruits Delivery) [INFO] [stderr] Checking errors6 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Custom Errors) [INFO] [stderr] Checking combine_traits v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Combine Traits) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Traits/Combine Traits/src/lib.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn some_func(item: (impl SomeTrait + OtherTrait)) -> bool { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - pub fn some_func(item: (impl SomeTrait + OtherTrait)) -> bool { [INFO] [stdout] 21 + pub fn some_func(item: impl SomeTrait + OtherTrait) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [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 using_as v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Using As) [INFO] [stderr] Checking compare_licenses v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/Compare Licenses) [INFO] [stderr] Checking box_task v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Box Task) [INFO] [stderr] Checking string_transformer v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/String Transformer) [INFO] [stderr] Checking home_alone v0.1.0 (/opt/rustwide/workdir/Modules/Modules/Home Alone at Day X) [INFO] [stderr] Checking use_cow v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Use Cow) [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 matching_result v0.1.0 (/opt/rustwide/workdir/Error Handling/Error Handling/Matching Result) [INFO] [stderr] Checking calculate_price v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables, Functions, and Conditions Test/Calculate Price) [INFO] [stderr] Checking quote v1.0.40 [INFO] [stderr] Checking if_task v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Conditions/If Task) [INFO] [stderr] Checking submodules v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Running and Organizing Tests/Submodules in Integration Tests) [INFO] [stderr] Checking result1 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Positive Nonzero Integer) [INFO] [stderr] Checking optional_value v0.1.0 (/opt/rustwide/workdir/Common Collections/Options/Optional Value) [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 iterators4 v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Factorial) [INFO] [stderr] Checking returning_result v0.1.0 (/opt/rustwide/workdir/Error Handling/Error Handling/Returning Result) [INFO] [stderr] Checking use_option v0.1.0 (/opt/rustwide/workdir/Common Collections/Options/Use Option) [INFO] [stderr] Checking iterator3 v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Iterator) [INFO] [stderr] Checking integration_tests v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Running and Organizing Tests/Integration Tests) [INFO] [stdout] warning: unused imports: `DivideByZero` and `NotDivisible` [INFO] [stdout] --> Standard Library Types/Iterators/Iterator/src/lib.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::DivisionError::{DivideByZero, NotDivisible}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ranges v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Repetitions/Looping through Ranges) [INFO] [stderr] Checking the_api_of_mutex v0.1.0 (/opt/rustwide/workdir/Fearless Concurrency/Shared-State Concurrency/The API of Mutex) [INFO] [stderr] Checking summary_modules v0.1.0 (/opt/rustwide/workdir/Modules/Modules/Summary) [INFO] [stderr] Checking option3 v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Lifetimes/Pattern Binding) [INFO] [stderr] Checking the_iterator_trait_and_the_next_method v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/The Iterator Trait and the next Method) [INFO] [stderr] Checking updating_a_hash_map v0.1.0 (/opt/rustwide/workdir/Common Collections/Hashmaps/Updating a Hash Map) [INFO] [stderr] Checking updating_a_string v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Updating a String) [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Lifetimes/Pattern Binding/src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | y; // Fix without deleting this line. [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking updating_a_vector v0.1.0 (/opt/rustwide/workdir/Common Collections/Vectors/Updating a Vector) [INFO] [stderr] Checking shadowing v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Shadowing) [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> Common Collections/Strings/Updating a String/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let s3 = s1 + &s2; // note s1 has been moved here and can no longer be used [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> Common Collections/Strings/Updating a String/src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let s = format!("{}-{}-{}", s1, s2, s3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking variables4 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Value) [INFO] [stderr] Checking color_structs v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Structs/Play with Color Structs) [INFO] [stderr] Checking boolean v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Basic Data Types/Boolean Test) [INFO] [stderr] Checking extract_function v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Intro/Removing Duplication by Refactorings) [INFO] [stderr] Checking intro v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Intro) [INFO] [stderr] Checking lifetime_annotations_in_struct_definitions v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Lifetimes/Lifetime Annotations in Struct Definitions) [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] [stderr] Checking refactoring_with_structs__adding_more_meaning v0.1.0 (/opt/rustwide/workdir/Structs, Methods, Enums, and Pattern Matching/Structs/Refactoring with Structs, Adding More Meaning) [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] [stderr] Checking rectangles v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Closures/Example sort_by_key) [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `preventing_dangling_references_with_lifetimes_` (bin "preventing_dangling_references_with_lifetimes_") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Lifetimes/Lifetime Annotations in Struct Definitions/src/main.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let i = ImportantExcerpt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> Generic Types, Traits, and Lifetime/Lifetimes/Lifetime Annotations in Struct Definitions/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 2 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sort_operations` [INFO] [stdout] --> Standard Library Types/Closures/Example sort_by_key/src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut sort_operations: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sort_operations` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> Standard Library Types/Closures/Example sort_by_key/src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let value = String::from("by key called"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> Standard Library Types/Closures/Example sort_by_key/src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut sort_operations: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> Standard Library Types/Closures/Example sort_by_key/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` 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] running `Command { std: "docker" "inspect" "18805ceb20e78151137a0196701233040ed1c7db18a3bb074dcc9f27fe290c90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18805ceb20e78151137a0196701233040ed1c7db18a3bb074dcc9f27fe290c90", kill_on_drop: false }` [INFO] [stdout] 18805ceb20e78151137a0196701233040ed1c7db18a3bb074dcc9f27fe290c90