[INFO] cloning repository https://github.com/Live4dreamCH/leetcode_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Live4dreamCH/leetcode_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLive4dreamCH%2Fleetcode_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLive4dreamCH%2Fleetcode_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5ff7cf81fab53729991ad1652f701d2f17ea72f8 [INFO] building Live4dreamCH/leetcode_rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLive4dreamCH%2Fleetcode_rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Live4dreamCH/leetcode_rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Live4dreamCH/leetcode_rs [INFO] finished tweaking git repo https://github.com/Live4dreamCH/leetcode_rs [INFO] tweaked toml for git repo https://github.com/Live4dreamCH/leetcode_rs written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Live4dreamCH/leetcode_rs 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1fd2bc2fff09657a29c67706c457c6f93e5765a3cbe205a6b5f01614b7f6430 [INFO] running `Command { std: "docker" "start" "-a" "b1fd2bc2fff09657a29c67706c457c6f93e5765a3cbe205a6b5f01614b7f6430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1fd2bc2fff09657a29c67706c457c6f93e5765a3cbe205a6b5f01614b7f6430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1fd2bc2fff09657a29c67706c457c6f93e5765a3cbe205a6b5f01614b7f6430", kill_on_drop: false }` [INFO] [stdout] b1fd2bc2fff09657a29c67706c457c6f93e5765a3cbe205a6b5f01614b7f6430 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be1d332cb856373943d59698b349e2e7b2a0d055713870b5e6ee1dc1a485ed0a [INFO] running `Command { std: "docker" "start" "-a" "be1d332cb856373943d59698b349e2e7b2a0d055713870b5e6ee1dc1a485ed0a", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/bin/lc1096.rs:32:57 [INFO] [stdout] | [INFO] [stdout] 31 | impl<'a> Lexer<'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 32 | pub fn from(str_iter: core::slice::Iter<'a, u8>) -> Lexer { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ordered_multi_set::OrderedMutiSet` [INFO] [stdout] --> src/bin/algo/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use ordered_multi_set::OrderedMutiSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/lc1817.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `finding_users_active_minutes` is never used [INFO] [stdout] --> src/bin/lc1817.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn finding_users_active_minutes(logs: Vec>, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/lc982.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/bin/lc982.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bit_set` [INFO] [stdout] --> src/bin/lc982.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let bit_set=0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bit_set` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums` [INFO] [stdout] --> src/bin/lc982.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn count_triplets(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mono_stack::MonoStack` [INFO] [stdout] --> src/bin/algo/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use mono_stack::MonoStack; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/lc1096.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let mut tokenizer = Lexer::from(expression.as_bytes().iter()); [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/lc1096.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut root = self.expr(lexer)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/bin/lc1096.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 113 | fn expr(&self, lexer: &mut Lexer) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/lc1096.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut node = ParseTreeNode { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/bin/lc1096.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | fn union(&self, lexer: &mut Lexer) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexer` [INFO] [stdout] --> src/bin/lc1096.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | fn concat(&self, lexer: &mut Lexer) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lexer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Union`, `Concat`, and `Id` are never constructed [INFO] [stdout] --> src/bin/lc1096.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 73 | enum Symbol { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 74 | Expr, [INFO] [stdout] 75 | Union, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 76 | Concat, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 77 | Id(String), [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `curr` and `children` are never read [INFO] [stdout] --> src/bin/lc1096.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct ParseTreeNode { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 82 | curr: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 83 | children: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/bin/lc1096.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub struct ParseTree { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 87 | root: ParseTreeNode, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `visited_path` is never read [INFO] [stdout] --> src/bin/lc1096.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct RecursiveDecent { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 98 | visited_path: VecDeque<(Symbol, bool)>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `union` and `concat` are never used [INFO] [stdout] --> src/bin/lc1096.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl RecursiveDecent { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | fn union(&self, lexer: &mut Lexer) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn concat(&self, lexer: &mut Lexer) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `push` is never used [INFO] [stdout] --> src/bin/algo/mono_stack.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a, T: Ord> MonoStack<'a, T> { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn push(&mut self, item: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MKAverage` is never constructed [INFO] [stdout] --> src/bin/lc1825.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct MKAverage { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `balance_sets`, `add_element`, and `calculate_mk_average` are never used [INFO] [stdout] --> src/bin/lc1825.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl MKAverage { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 21 | fn new(m: i32, k: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn balance_sets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn add_element(&mut self, num: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn calculate_mk_average(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MonoStack` is never constructed [INFO] [stdout] --> src/bin/algo/mono_stack.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MonoStack<'a, T: Ord> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderedMutiSet` is never constructed [INFO] [stdout] --> src/bin/algo/ordered_multi_set.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OrderedMutiSet { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderedMutiSet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `push_once`, `push`, `pop`, and `top` are never used [INFO] [stdout] --> src/bin/algo/mono_stack.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a, T: Ord> MonoStack<'a, T> { [INFO] [stdout] | --------------------------------- associated items in this implementation [INFO] [stdout] 21 | pub fn new(array: &Vec, order: Ordering, strict: bool) -> MonoStack { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn push_once(&mut self, item: usize) -> Result, usize> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn push(&mut self, item: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn top(&self) -> Option<&usize> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderedMutiSet` is never constructed [INFO] [stdout] --> src/bin/algo/ordered_multi_set.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OrderedMutiSet { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderedMutiSet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/algo/ordered_multi_set.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl OrderedMutiSet { [INFO] [stdout] | ------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn push(&mut self, item: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn pop_min(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn pop_max(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn peek_min(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn peek_max(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn remove_one(&mut self, item: &T) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/algo/ordered_multi_set.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl OrderedMutiSet { [INFO] [stdout] | ------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn push(&mut self, item: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn pop_min(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn pop_max(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn peek_min(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn peek_max(&self) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn remove_one(&mut self, item: &T) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `1` [INFO] [stdout] --> src/bin/lc1615.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | count_map.iter() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 22 | 1 [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "lc1615") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/lc1487.rs:40:53 [INFO] [stdout] | [INFO] [stdout] 40 | name_times_map.insert(name.clone(), 1); [INFO] [stdout] | ------ ^ expected `(HashSet, usize)`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(HashSet, usize)` [INFO] [stdout] found type `{integer}` [INFO] [stdout] help: the return type of this call is `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/bin/lc1487.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | name_times_map.insert(name.clone(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `insert` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/std/src/collections/hash/map.rs:1190:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `(HashSet, usize)` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/bin/lc1487.rs:44:74 [INFO] [stdout] | [INFO] [stdout] 44 | let actual_name = name.clone() + "(" + &name_times_map[name].to_string() + ")"; [INFO] [stdout] | ^^^^^^^^^ `(HashSet, usize)` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `(HashSet, usize): std::fmt::Display` [INFO] [stdout] which is required by `(HashSet, usize): ToString` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0368]: binary assignment operation `+=` cannot be applied to type `(HashSet, usize)` [INFO] [stdout] --> src/bin/lc1487.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | *name_times_map.get_mut(name).unwrap() += 1; [INFO] [stdout] | --------------------------------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | cannot use `+=` on type `(HashSet, usize)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/lc1487.rs:47:58 [INFO] [stdout] | [INFO] [stdout] 47 | *name_times_map.entry(actual_name).or_insert(0) += 1; [INFO] [stdout] | --------- ^ expected `(HashSet, usize)`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(HashSet, usize)` [INFO] [stdout] found type `{integer}` [INFO] [stdout] help: the return type of this call is `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/bin/lc1487.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | *name_times_map.entry(actual_name).or_insert(0) += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `or_insert` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/std/src/collections/hash/map.rs:2794:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0368]: binary assignment operation `+=` cannot be applied to type `(HashSet, usize)` [INFO] [stdout] --> src/bin/lc1487.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | *name_times_map.entry(actual_name).or_insert(0) += 1; [INFO] [stdout] | -----------------------------------------------^^^^^ [INFO] [stdout] | | [INFO] [stdout] | cannot use `+=` on type `(HashSet, usize)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0368, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "lc1487") due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "be1d332cb856373943d59698b349e2e7b2a0d055713870b5e6ee1dc1a485ed0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be1d332cb856373943d59698b349e2e7b2a0d055713870b5e6ee1dc1a485ed0a", kill_on_drop: false }` [INFO] [stdout] be1d332cb856373943d59698b349e2e7b2a0d055713870b5e6ee1dc1a485ed0a