[INFO] cloning repository https://github.com/modulitos/CtCI-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/modulitos/CtCI-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodulitos%2FCtCI-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodulitos%2FCtCI-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8bbaa49c3eca43a77cf1a2cea1b6f98071ad2c78 [INFO] checking modulitos/CtCI-rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodulitos%2FCtCI-rust" "/workspace/builds/worker-72/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-72/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/modulitos/CtCI-rust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/modulitos/CtCI-rust [INFO] finished tweaking git repo https://github.com/modulitos/CtCI-rust [INFO] tweaked toml for git repo https://github.com/modulitos/CtCI-rust written to /workspace/builds/worker-72/source/Cargo.toml [INFO] crate git repo https://github.com/modulitos/CtCI-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0207012b464a419f1d418f7dfffeec8f1b1060c0ac74d1c510a3229555027ef7 [INFO] running `Command { std: "docker" "start" "-a" "0207012b464a419f1d418f7dfffeec8f1b1060c0ac74d1c510a3229555027ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0207012b464a419f1d418f7dfffeec8f1b1060c0ac74d1c510a3229555027ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0207012b464a419f1d418f7dfffeec8f1b1060c0ac74d1c510a3229555027ef7", kill_on_drop: false }` [INFO] [stdout] 0207012b464a419f1d418f7dfffeec8f1b1060c0ac74d1c510a3229555027ef7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44f8bdf8785e6328fc13afe9ebad48e6816f9e265d35ee8d84dda8435b9a7618 [INFO] running `Command { std: "docker" "start" "-a" "44f8bdf8785e6328fc13afe9ebad48e6816f9e265d35ee8d84dda8435b9a7618", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Checking getrandom v0.1.7 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Compiling regex v1.3.1 [INFO] [stderr] Compiling derive_more v0.15.0 [INFO] [stderr] Checking rust-solutions v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/binary_search_tree.rs (1 fix) [INFO] [stderr] Fixed src/linked_list/third.rs (1 fix) [INFO] [stderr] Fixed src/stack.rs (1 fix) [INFO] [stderr] Fixed src/linked_list/second.rs (2 fixes) [INFO] [stderr] Fixed src/graph.rs (2 fixes) [INFO] [stderr] Fixed src/linked_list/fifth.rs (1 fix) [INFO] [stderr] Fixed src/binary_tree.rs (1 fix) [INFO] [stderr] Fixed src/binary_search_tree_refcell.rs (1 fix) [INFO] [stderr] Fixed src/binary_tree_refcell.rs (1 fix) [INFO] [stderr] Fixed src/linked_list/refcell_singly.rs (1 fix) [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/linked_list/second.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_iter` [INFO] [stdout] --> src/linked_list/second.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn into_iter(self) -> IntoIter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter` [INFO] [stdout] --> src/linked_list/second.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter_mut` [INFO] [stdout] --> src/linked_list/second.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn iter_mut(&mut self) -> IterMut<'_, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/linked_list/second.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek` [INFO] [stdout] --> src/linked_list/second.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_mut` [INFO] [stdout] --> src/linked_list/second.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn peek_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/linked_list/third.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/linked_list/third.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn append(&mut self, elem: T) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tail` [INFO] [stdout] --> src/linked_list/third.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn tail(&self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `head` [INFO] [stdout] --> src/linked_list/third.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn head(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter` [INFO] [stdout] --> src/linked_list/third.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn iter(&self) -> Iter<'_, T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/linked_list/fourth.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn new(elem: T) -> Rc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/linked_list/fourth.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_front` [INFO] [stdout] --> src/linked_list/fourth.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn push_front(&mut self, elem: T) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_front` [INFO] [stdout] --> src/linked_list/fourth.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn peek_front(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `prev` [INFO] [stdout] --> src/linked_list/brandon.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | prev: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tail` [INFO] [stdout] --> src/linked_list/brandon.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn tail(node: &NodeRef) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/linked_list/brandon.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn remove(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/linked_list/brandon.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `append` [INFO] [stdout] --> src/linked_list/brandon.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | fn append(&mut self, new_value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tail` [INFO] [stdout] --> src/linked_list/brandon.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | fn tail(&self) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `iter` [INFO] [stdout] --> src/linked_list/brandon.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 96 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `list_has_duplicates` [INFO] [stdout] --> src/linked_list/brandon.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn list_has_duplicates(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove_duplicates` [INFO] [stdout] --> src/linked_list/brandon.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn remove_duplicates(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/linked_list/brandon.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 228 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/linked_list/fifth.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> src/linked_list/fifth.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn push(&mut self, elem: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop` [INFO] [stdout] --> src/linked_list/fifth.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/linked_list/second.rs:171:24 [INFO] [stdout] | [INFO] [stdout] 171 | let mut list = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fifth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fourth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::second::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::third::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/linked_list/second.rs:200:24 [INFO] [stdout] | [INFO] [stdout] 200 | let mut list = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fifth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fourth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::second::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::third::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/linked_list/second.rs:219:24 [INFO] [stdout] | [INFO] [stdout] 219 | let mut list = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fifth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fourth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::second::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::third::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/linked_list/second.rs:233:24 [INFO] [stdout] | [INFO] [stdout] 233 | let mut list = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fifth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fourth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::second::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::third::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/linked_list/second.rs:246:24 [INFO] [stdout] | [INFO] [stdout] 246 | let mut list = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fifth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fourth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::second::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::third::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/linked_list/second.rs:259:24 [INFO] [stdout] | [INFO] [stdout] 259 | let mut list = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fifth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fourth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::second::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::third::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `List` [INFO] [stdout] --> src/linked_list/second.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | let mut list2 = List::new(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fifth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::fourth::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::second::List; [INFO] [stdout] | [INFO] [stdout] 170 | use crate::linked_list::third::List; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashSet` in this scope [INFO] [stdout] --> src/linked_list/refcell_singly.rs:356:22 [INFO] [stdout] | [INFO] [stdout] 356 | let mut set: HashSet> = HashSet::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 356 | let mut set: Hasher> = HashSet::new(); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 219 | use crate::graph::HashSet; [INFO] [stdout] | [INFO] [stdout] 219 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet` [INFO] [stdout] --> src/linked_list/refcell_singly.rs:356:49 [INFO] [stdout] | [INFO] [stdout] 356 | let mut set: HashSet> = HashSet::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 356 | let mut set: HashSet> = Hasher::new(); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 219 | use crate::graph::HashSet; [INFO] [stdout] | [INFO] [stdout] 219 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | let _: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let _: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:125:16 [INFO] [stdout] | [INFO] [stdout] 125 | let _: Stack = Stack::new().with_capacity(3).create(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | let _: Stack = Stack::new().with_capacity(3).create(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:132:20 [INFO] [stdout] | [INFO] [stdout] 132 | let mut s: Stack = Stack::new().with_capacity(3).is_growable(false).create(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:132:33 [INFO] [stdout] | [INFO] [stdout] 132 | let mut s: Stack = Stack::new().with_capacity(3).is_growable(false).create(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:141:33 [INFO] [stdout] | [INFO] [stdout] 141 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:147:20 [INFO] [stdout] | [INFO] [stdout] 147 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:147:33 [INFO] [stdout] | [INFO] [stdout] 147 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 153 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:153:33 [INFO] [stdout] | [INFO] [stdout] 153 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:159:20 [INFO] [stdout] | [INFO] [stdout] 159 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:159:33 [INFO] [stdout] | [INFO] [stdout] 159 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 167 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:167:33 [INFO] [stdout] | [INFO] [stdout] 167 | let mut s: Stack = Stack::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:174:20 [INFO] [stdout] | [INFO] [stdout] 174 | let mut s: Stack = Stack::new().with_capacity(2).create(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:174:33 [INFO] [stdout] | [INFO] [stdout] 174 | let mut s: Stack = Stack::new().with_capacity(2).create(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Stack` in this scope [INFO] [stdout] --> src/stack.rs:188:20 [INFO] [stdout] | [INFO] [stdout] 188 | let mut s: Stack = Stack::new().with_capacity(2).create(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stack` [INFO] [stdout] --> src/stack.rs:188:33 [INFO] [stdout] | [INFO] [stdout] 188 | let mut s: Stack = Stack::new().with_capacity(2).create(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 118 | use crate::Stack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | let _ = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:134:23 [INFO] [stdout] | [INFO] [stdout] 134 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:147:23 [INFO] [stdout] | [INFO] [stdout] 147 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:182:19 [INFO] [stdout] | [INFO] [stdout] 182 | let bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:187:23 [INFO] [stdout] | [INFO] [stdout] 187 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:193:23 [INFO] [stdout] | [INFO] [stdout] 193 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:209:23 [INFO] [stdout] | [INFO] [stdout] 209 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:218:23 [INFO] [stdout] | [INFO] [stdout] 218 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree.rs:231:23 [INFO] [stdout] | [INFO] [stdout] 231 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 127 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 127 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let _ = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | let mut g = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut g = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:202:21 [INFO] [stdout] | [INFO] [stdout] 202 | let mut g = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | let mut g = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:223:21 [INFO] [stdout] | [INFO] [stdout] 223 | let mut g = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:233:21 [INFO] [stdout] | [INFO] [stdout] 233 | let mut g = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:243:21 [INFO] [stdout] | [INFO] [stdout] 243 | let mut g = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch4-p5_validate-bst.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyType` [INFO] [stdout] --> src/graph.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | let mut u = KeyType::from(u32::from(a)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 181 | use crate::KeyType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch1-p2_urlify.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `KeyType` [INFO] [stdout] --> src/graph.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | u = KeyType::from(u32::from(x)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 181 | use crate::KeyType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch1-p5_one-away.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graph` [INFO] [stdout] --> src/graph.rs:263:21 [INFO] [stdout] | [INFO] [stdout] 263 | let mut g = Graph::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Graph; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch2-p4_partition.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet` [INFO] [stdout] --> src/graph.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | HashSet::::from_iter(vec![Edge::new('a')].into_iter()) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 | use crate::graph::HashSet; [INFO] [stdout] | [INFO] [stdout] 181 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch1-p9_string-rotation.rs from 2018 edition to 2021 [INFO] [stdout] error[E0412]: cannot find type `Edge` in this scope [INFO] [stdout] --> src/graph.rs:269:23 [INFO] [stdout] | [INFO] [stdout] 269 | HashSet::::from_iter(vec![Edge::new('a')].into_iter()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch4-p12_paths-with-sum.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Edge` [INFO] [stdout] --> src/graph.rs:269:45 [INFO] [stdout] | [INFO] [stdout] 269 | HashSet::::from_iter(vec![Edge::new('a')].into_iter()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch7-p3_jukebox.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet` [INFO] [stdout] --> src/graph.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | HashSet::::from_iter( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 | use crate::graph::HashSet; [INFO] [stdout] | [INFO] [stdout] 181 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch3-p6_animal-shelter.rs from 2018 edition to 2021 [INFO] [stdout] error[E0412]: cannot find type `Edge` in this scope [INFO] [stdout] --> src/graph.rs:273:23 [INFO] [stdout] | [INFO] [stdout] 273 | HashSet::::from_iter( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch2-p3_delete-middle-node.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Edge` [INFO] [stdout] --> src/graph.rs:274:22 [INFO] [stdout] | [INFO] [stdout] 274 | vec![Edge::new('a'), Edge::new('b'), Edge::new('c')].into_iter() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch4-p2_minimal-tree.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Edge` [INFO] [stdout] --> src/graph.rs:274:38 [INFO] [stdout] | [INFO] [stdout] 274 | vec![Edge::new('a'), Edge::new('b'), Edge::new('c')].into_iter() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch4-p7_build-order.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Edge` [INFO] [stdout] --> src/graph.rs:274:54 [INFO] [stdout] | [INFO] [stdout] 274 | vec![Edge::new('a'), Edge::new('b'), Edge::new('c')].into_iter() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch7-p5_online-book-reader.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet` [INFO] [stdout] --> src/graph.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | HashSet::::from_iter(vec![].into_iter()) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 | use crate::graph::HashSet; [INFO] [stdout] | [INFO] [stdout] 181 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Edge` in this scope [INFO] [stdout] --> src/graph.rs:279:23 [INFO] [stdout] | [INFO] [stdout] 279 | HashSet::::from_iter(vec![].into_iter()) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet` [INFO] [stdout] --> src/graph.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | HashSet::::from_iter( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 | use crate::graph::HashSet; [INFO] [stdout] | [INFO] [stdout] 181 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Edge` in this scope [INFO] [stdout] --> src/graph.rs:283:23 [INFO] [stdout] | [INFO] [stdout] 283 | HashSet::::from_iter( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Edge` [INFO] [stdout] --> src/graph.rs:284:22 [INFO] [stdout] | [INFO] [stdout] 284 | vec![Edge::new('a'), Edge::new('b'), Edge::new('c')].into_iter() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Edge` [INFO] [stdout] --> src/graph.rs:284:38 [INFO] [stdout] | [INFO] [stdout] 284 | vec![Edge::new('a'), Edge::new('b'), Edge::new('c')].into_iter() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Edge` [INFO] [stdout] --> src/graph.rs:284:54 [INFO] [stdout] | [INFO] [stdout] 284 | vec![Edge::new('a'), Edge::new('b'), Edge::new('c')].into_iter() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 181 | use crate::Edge; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | let node = Node::new(1, Node::new(2, None, None), None); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | let node = Node::new(1, Node::new(2, None, None), None); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryTree` [INFO] [stdout] --> src/binary_tree.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | BinaryTree::::new(node); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::BinaryTree; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree_refcell::BinaryTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | let node = Node::new( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | Node::new(2, None, None), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | Node::new(3, Node::new(4, None, None), Node::new(5, None, None)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | Node::new(3, Node::new(4, None, None), Node::new(5, None, None)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree.rs:57:52 [INFO] [stdout] | [INFO] [stdout] 57 | Node::new(3, Node::new(4, None, None), Node::new(5, None, None)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryTree` [INFO] [stdout] --> src/binary_tree.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | BinaryTree::::new(node); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 46 | use crate::BinaryTree; [INFO] [stdout] | [INFO] [stdout] 46 | use crate::binary_tree_refcell::BinaryTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | let node = Node::new(1, Node::new(2, None, None), None); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:55:33 [INFO] [stdout] | [INFO] [stdout] 55 | let node = Node::new(1, Node::new(2, None, None), None); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryTree` [INFO] [stdout] --> src/binary_tree_refcell.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | BinaryTree::::new(node); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::BinaryTree; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree_refcell::BinaryTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 62 | let node = Node::new( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | Node::new(2, None, None), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | Node::new(3, Node::new(4, None, None), Node::new(5, None, None)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | Node::new(3, Node::new(4, None, None), Node::new(5, None, None)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:65:52 [INFO] [stdout] | [INFO] [stdout] 65 | Node::new(3, Node::new(4, None, None), Node::new(5, None, None)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryTree` [INFO] [stdout] --> src/binary_tree_refcell.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | BinaryTree::::new(node); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::BinaryTree; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree_refcell::BinaryTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:73:26 [INFO] [stdout] | [INFO] [stdout] 73 | let grandchild = Node::new(4, None, None); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | let child = Node::new(3, grandchild.clone(), Node::new(5, None, None)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:74:54 [INFO] [stdout] | [INFO] [stdout] 74 | let child = Node::new(3, grandchild.clone(), Node::new(5, None, None)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rc` [INFO] [stdout] --> src/binary_tree_refcell.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | assert!(Rc::ptr_eq( [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree_refcell::Rc; [INFO] [stdout] | [INFO] [stdout] 54 | use std::rc::Rc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | let node = Node::new(1, Node::new(2, None, None), child); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Node` [INFO] [stdout] --> src/binary_tree_refcell.rs:79:33 [INFO] [stdout] | [INFO] [stdout] 79 | let node = Node::new(1, Node::new(2, None, None), child); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_search_tree_refcell::Node; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree::Node; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinaryTree` [INFO] [stdout] --> src/binary_tree_refcell.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | BinaryTree::::new(node); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 54 | use crate::BinaryTree; [INFO] [stdout] | [INFO] [stdout] 54 | use crate::binary_tree_refcell::BinaryTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | let _ = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 138 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:151:23 [INFO] [stdout] | [INFO] [stdout] 151 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:168:23 [INFO] [stdout] | [INFO] [stdout] 168 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:186:19 [INFO] [stdout] | [INFO] [stdout] 186 | let bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:191:23 [INFO] [stdout] | [INFO] [stdout] 191 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:197:23 [INFO] [stdout] | [INFO] [stdout] 197 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:222:23 [INFO] [stdout] | [INFO] [stdout] 222 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BinarySearchTree` [INFO] [stdout] --> src/binary_search_tree_refcell.rs:235:23 [INFO] [stdout] | [INFO] [stdout] 235 | let mut bst = BinarySearchTree::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 131 | use crate::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] 131 | use crate::binary_search_tree_refcell::BinarySearchTree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch4-p11_random-node.rs from 2018 edition to 2021 [INFO] [stdout] warning: function is never used: `urlify_2` [INFO] [stdout] --> src/bin/ch1-p2_urlify.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn urlify_2(url: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/ch2-p7_check-intersection.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch5-p1_insertaion.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch5-p2_binary-to-string.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch1-p7_rotate-matrix.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch5-p4_next-number.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch5-p5_debugger.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch4-p10_check-subtree.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch5-p6_conversion.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch5-p7_pairwise-swap.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch1-p3_check-permutation.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch5-p3_flip-bit-to-win.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch4-p1_route-between-nodes.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch2-p5_sum-lists.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch2-p6_check-palindrome.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch3-p5_sort-stack.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch5-p8_draw-line.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch1-p8_zero-matrix.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch7-p2_call-center.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch7-p1_deck-of-cards.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch2-p1_remove-duplicates.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch4-p8_first-common-ancestor.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch3-p4_queue-via-stacks.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch1-p6_string-compression.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch2-p2_return-kth-to-last.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch2-p8_loop-detection.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch3-p2_stack-with-min.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch4-p3_list-of-depths.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch3-p1_three-in-one.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch1-p1_is-unique.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch7-p6_jigsaw.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch7-p4_parking-lot.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch3-p3_stack-of-plates.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch4-p4_check-balanced.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch1-p4_palindrom-permutation.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch4-p6_successor.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/ch4-p9_bst-sequences.rs from 2018 edition to 2021 [INFO] [stdout] error[E0599]: no function or associated item named `try_from` found for type `u8` in the current scope [INFO] [stdout] --> src/graph.rs:255:35 [INFO] [stdout] | [INFO] [stdout] 255 | assert_eq!(char::from(u8::try_from(u).unwrap()), 'a'); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `u8` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::convert::TryFrom;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `try_from` found for type `u8` in the current scope [INFO] [stdout] --> src/graph.rs:258:35 [INFO] [stdout] | [INFO] [stdout] 258 | assert_eq!(char::from(u8::try_from(u).unwrap()), 'x'); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `u8` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::convert::TryFrom;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 102 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `partition` [INFO] [stdout] --> src/bin/ch2-p4_partition.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | fn partition(&mut self, partition_value: T) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `verify_partition` [INFO] [stdout] --> src/bin/ch2-p4_partition.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | fn verify_partition(&mut self, value: T) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-solutions` due to 103 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `BTreeNode as Node` [INFO] [stdout] --> src/bin/ch4-p12_paths-with-sum.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | use cracking::{BTree as Tree, BTreeNode as Node}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p12_paths_with_sum` [INFO] [stdout] --> src/bin/ch4-p12_paths-with-sum.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / use cracking::{BTree as Tree, BTreeNode as Node}; [INFO] [stdout] 12 | | use std::collections::HashMap; [INFO] [stdout] 13 | | [INFO] [stdout] 14 | | // Counts paths adding to the sum, starting at the given node: [INFO] [stdout] ... | [INFO] [stdout] 153 | | assert_eq!(count_paths_optimized(&node_fixture, 8), 3); [INFO] [stdout] 154 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p12_paths-with-sum.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `TreeNode` [INFO] [stdout] --> src/bin/ch4-p5_validate-bst.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | use cracking::{BinarySearchTree, Tree, TreeNode}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p5_validate-bst.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p5_validate_bst` [INFO] [stdout] --> src/bin/ch4-p5_validate-bst.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / use cracking::{BinarySearchTree, Tree, TreeNode}; [INFO] [stdout] 9 | | [INFO] [stdout] 10 | | trait ValidateBST { [INFO] [stdout] 11 | | fn validate_bst(&self) -> bool; [INFO] [stdout] ... | [INFO] [stdout] 192 | | } [INFO] [stdout] 193 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p5_validate-bst.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_middle_node` [INFO] [stdout] --> src/bin/ch2-p3_delete-middle-node.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | fn delete_middle_node(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p2_minimal-tree.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p2_minimal_tree` [INFO] [stdout] --> src/bin/ch4-p2_minimal-tree.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / use cracking::BinarySearchTree; [INFO] [stdout] 6 | | use std::collections::VecDeque; [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | trait MinimalTree { [INFO] [stdout] ... | [INFO] [stdout] 101 | | } [INFO] [stdout] 102 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p2_minimal-tree.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p7_build-order.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p7_build_order` [INFO] [stdout] --> src/bin/ch4-p7_build-order.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / use cracking::{Graph, IntoChar}; [INFO] [stdout] 21 | | use std::collections::HashSet; [INFO] [stdout] 22 | | use std::iter::FromIterator; [INFO] [stdout] 23 | | [INFO] [stdout] ... | [INFO] [stdout] 139 | | } [INFO] [stdout] 140 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p7_build-order.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch7_p5_online_book_reader` [INFO] [stdout] --> src/bin/ch7-p5_online-book-reader.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / use std::collections::HashMap; [INFO] [stdout] 15 | | #[macro_use] [INFO] [stdout] 16 | | extern crate derive_more; [INFO] [stdout] 17 | | [INFO] [stdout] ... | [INFO] [stdout] 268 | | assert_eq!(reader.turn_page().current_page, Some(3)); [INFO] [stdout] 269 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch7-p5_online-book-reader.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] Fixed src/bin/ch4-p11_random-node.rs (1 fix) [INFO] [stdout] warning: function is never used: `is_one_away` [INFO] [stdout] --> src/bin/ch1-p5_one-away.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn is_one_away(s1: &str, s2: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch5_p2_binary_to_string` [INFO] [stdout] --> src/bin/ch5-p2_binary-to-string.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / use std::fmt::Write; [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | fn get_binary_float(mut n: f32) -> String { [INFO] [stdout] 9 | | if n < 0.0 || n >= 1.0 { [INFO] [stdout] ... | [INFO] [stdout] 47 | | assert_eq!(get_binary_float(0.9999999999999), "ERROR"); [INFO] [stdout] 48 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch5-p2_binary-to-string.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch5_p5_debugger` [INFO] [stdout] --> src/bin/ch5-p5_debugger.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / fn debugger(n: u8) -> bool { [INFO] [stdout] 7 | | (n & (n - 1)) == 0 [INFO] [stdout] 8 | | } [INFO] [stdout] 9 | | [INFO] [stdout] ... | [INFO] [stdout] 20 | | assert_eq!(debugger(0b01000000_u8), true); [INFO] [stdout] 21 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch5-p5_debugger.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeNode as Node`, `BinaryTree` [INFO] [stdout] --> src/bin/ch4-p10_check-subtree.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 11 | use cracking::{BTree as Tree, BTreeNode as Node, BinaryTree}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p10_check-subtree.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p10_check_subtree` [INFO] [stdout] --> src/bin/ch4-p10_check-subtree.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / use cracking::{BTree as Tree, BTreeNode as Node, BinaryTree}; [INFO] [stdout] 12 | | [INFO] [stdout] 13 | | // Uses a string comparison approach - serialize the trees into [INFO] [stdout] 14 | | // strings, then check whether the substree's string is contained [INFO] [stdout] ... | [INFO] [stdout] 124 | | } [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p10_check-subtree.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p11_random_node` [INFO] [stdout] --> src/bin/ch4-p11_random-node.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / use rand::{thread_rng, Rng}; [INFO] [stdout] 8 | | use std::fmt; [INFO] [stdout] 9 | | [INFO] [stdout] 10 | | type BareTree = Box>; [INFO] [stdout] ... | [INFO] [stdout] 204 | | assert!((1..10).contains(&v)); [INFO] [stdout] 205 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p11_random-node.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: function is never used: `determine_bits_basic` [INFO] [stdout] --> src/bin/ch5-p6_conversion.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn determine_bits_basic(mut n1: u16, mut n2: u16) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/ch7-p5_online-book-reader.rs (2 fixes) [INFO] [stdout] error[E0601]: `main` function not found in crate `ch5_p6_conversion` [INFO] [stdout] --> src/bin/ch5-p6_conversion.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / fn determine_bits_basic(mut n1: u16, mut n2: u16) -> u8 { [INFO] [stdout] 8 | | let mut bits = 0; [INFO] [stdout] 9 | | while n1 > 0 || n2 > 0 { [INFO] [stdout] 10 | | // println!("n1: {:b}", n1); [INFO] [stdout] ... | [INFO] [stdout] 41 | | assert_eq!(determine_bits(0b11101_u16, 0b01111_u16), 2); [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch5-p6_conversion.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p1_route-between-nodes.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p1_route_between_nodes` [INFO] [stdout] --> src/bin/ch4-p1_route-between-nodes.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / use std::collections::HashSet; [INFO] [stdout] 5 | | use std::collections::VecDeque; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | struct ASimpleGraph { [INFO] [stdout] ... | [INFO] [stdout] 110 | | } [INFO] [stdout] 111 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p1_route-between-nodes.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch5_p7_pairwise_swap` [INFO] [stdout] --> src/bin/ch5-p7_pairwise-swap.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / fn pairwise_swap(n: u8) -> u8 { [INFO] [stdout] 6 | | let even_mask = 0b10101010_u8; [INFO] [stdout] 7 | | let odd_mask = even_mask >> 1; [INFO] [stdout] 8 | | [INFO] [stdout] ... | [INFO] [stdout] 16 | | assert_eq!(pairwise_swap(0b01010111_u8), 0b10101011_u8); [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch5-p7_pairwise-swap.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch5_p3_flip_bit_to_win` [INFO] [stdout] --> src/bin/ch5-p3_flip-bit-to-win.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / use std::cmp; [INFO] [stdout] 9 | | [INFO] [stdout] 10 | | // This is O(b) time and space complexity, where b is the length of [INFO] [stdout] 11 | | // the binary representation. [INFO] [stdout] ... | [INFO] [stdout] 72 | | assert_eq!(flip_to_win(0b101110011), 5); [INFO] [stdout] 73 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch5-p3_flip-bit-to-win.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bin/ch1-p3_check-permutation.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 14 | if let Some(count) = map.get(&c) { [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] 15 | map.insert(c, count + 1); [INFO] [stdout] | ^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch3_p5_sort_stack` [INFO] [stdout] --> src/bin/ch3-p5_sort-stack.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / extern crate cracking; [INFO] [stdout] 8 | | use cracking::Stack; [INFO] [stdout] 9 | | [INFO] [stdout] 10 | | pub trait SortStack { [INFO] [stdout] ... | [INFO] [stdout] 111 | | } [INFO] [stdout] 112 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch3-p5_sort-stack.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch3-p4_queue-via-stacks.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch3_p4_queue_via_stacks` [INFO] [stdout] --> src/bin/ch3-p4_queue-via-stacks.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / use cracking::Stack; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | struct MyQueue { [INFO] [stdout] 7 | | incoming: Stack, [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch3-p4_queue-via-stacks.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `RCBTreeNode as Node` [INFO] [stdout] --> src/bin/ch4-p8_first-common-ancestor.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use cracking::{RCBTree as Tree, RCBTreeNode as Node, RCBinaryTree as BinaryTree}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p8_first-common-ancestor.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p8_first_common_ancestor` [INFO] [stdout] --> src/bin/ch4-p8_first-common-ancestor.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / use cracking::{RCBTree as Tree, RCBTreeNode as Node, RCBinaryTree as BinaryTree}; [INFO] [stdout] 7 | | use std::rc::Rc; [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | trait FirstCommonAncestor { [INFO] [stdout] ... | [INFO] [stdout] 242 | | } [INFO] [stdout] 243 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p8_first-common-ancestor.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_conversion_width_1` [INFO] [stdout] --> src/bin/ch5-p8_draw-line.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn test_conversion_width_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> src/bin/ch2-p7_check-intersection.rs:11:48 [INFO] [stdout] | [INFO] [stdout] 11 | use cracking::{SinglyLinkedList as LinkedList, Node}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/bin/ch2-p7_check-intersection.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch2-p7_check-intersection.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch2_p7_check_intersection` [INFO] [stdout] --> src/bin/ch2-p7_check-intersection.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / extern crate cracking; [INFO] [stdout] 11 | | use cracking::{SinglyLinkedList as LinkedList, Node}; [INFO] [stdout] 12 | | [INFO] [stdout] 13 | | use std::rc::Rc; [INFO] [stdout] ... | [INFO] [stdout] 145 | | } [INFO] [stdout] 146 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch2-p7_check-intersection.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Manager` [INFO] [stdout] --> src/bin/ch7-p2_call-center.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Manager, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `from` [INFO] [stdout] --> src/bin/ch7-p2_call-center.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | from: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> src/bin/ch2-p8_loop-detection.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | use cracking::{HashedNode, Node, NodeRef, SinglyLinkedList as LinkedList}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/bin/ch2-p8_loop-detection.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch2-p8_loop-detection.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch2_p8_loop_detection` [INFO] [stdout] --> src/bin/ch2-p8_loop-detection.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / extern crate cracking; [INFO] [stdout] 10 | | use cracking::{HashedNode, Node, NodeRef, SinglyLinkedList as LinkedList}; [INFO] [stdout] 11 | | [INFO] [stdout] 12 | | use std::collections::HashSet; [INFO] [stdout] ... | [INFO] [stdout] 165 | | } [INFO] [stdout] 166 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch2-p8_loop-detection.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch3-p2_stack-with-min.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch3_p2_stack_with_min` [INFO] [stdout] --> src/bin/ch3-p2_stack-with-min.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / use cracking::Stack; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | struct MinStack { [INFO] [stdout] 7 | | stack: Stack, [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [INFO] [stdout] 103 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch3-p2_stack-with-min.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p3_list-of-depths.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p3_list_of_depths` [INFO] [stdout] --> src/bin/ch4-p3_list-of-depths.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / use cracking::{BinarySearchTree, Tree}; [INFO] [stdout] 6 | | [INFO] [stdout] 7 | | trait ListOfDepths { [INFO] [stdout] 8 | | fn get_lists(&self) -> Vec>; [INFO] [stdout] ... | [INFO] [stdout] 167 | | } [INFO] [stdout] 168 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p3_list-of-depths.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: field is never read: `from` [INFO] [stdout] --> src/bin/ch7-p2_call-center.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | from: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch3_p1_three_in_one` [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / use std::boxed::Box; [INFO] [stdout] 4 | | use std::cmp; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | type Node = Option; [INFO] [stdout] ... | [INFO] [stdout] 173 | | } [INFO] [stdout] 174 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch3-p1_three-in-one.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch7_p6_jigsaw` [INFO] [stdout] --> src/bin/ch7-p6_jigsaw.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / use rand::distributions::Uniform; [INFO] [stdout] 7 | | use rand::prelude::*; [INFO] [stdout] 8 | | use std::cmp::PartialEq; [INFO] [stdout] 9 | | use std::collections::HashMap; [INFO] [stdout] ... | [INFO] [stdout] 441 | | assert_eq!(p, solved); [INFO] [stdout] 442 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch7-p6_jigsaw.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] Fixed src/bin/ch2-p6_check-palindrome.rs (1 fix) [INFO] [stdout] error[E0601]: `main` function not found in crate `ch5_p4_next_number` [INFO] [stdout] --> src/bin/ch5-p4_next-number.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / fn next_numbers(n: i32) -> (i32, i32) { [INFO] [stdout] 8 | | (get_next_smallest(n), get_next_largest(n)) [INFO] [stdout] 9 | | } [INFO] [stdout] 10 | | [INFO] [stdout] ... | [INFO] [stdout] 82 | | ) [INFO] [stdout] 83 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch5-p4_next-number.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch3-p6_animal-shelter.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch3_p6_animal_shelter` [INFO] [stdout] --> src/bin/ch3-p6_animal-shelter.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / use std::collections::LinkedList; [INFO] [stdout] 13 | | use std::time::Instant; [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | #[derive(Debug, PartialEq, Clone)] [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] 134 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch3-p6_animal-shelter.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bin/ch1-p4_palindrom-permutation.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 30 | if let Some(value) = map.get(&c) { [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] 31 | map.insert(c, value + 1); [INFO] [stdout] | ^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch7_p4_parking_lot` [INFO] [stdout] --> src/bin/ch7-p4_parking-lot.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / #[derive(Debug, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 18 | | enum VehicleSize { [INFO] [stdout] 19 | | Motorcycle, [INFO] [stdout] 20 | | Compact, [INFO] [stdout] ... | [INFO] [stdout] 350 | | assert_eq!(bus.parked, None); [INFO] [stdout] 351 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch7-p4_parking-lot.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bin/ch1-p3_check-permutation.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 14 | if let Some(count) = map.get(&c) { [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] 15 | map.insert(c, count + 1); [INFO] [stdout] | ^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p4_check-balanced.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p4_check_balanced` [INFO] [stdout] --> src/bin/ch4-p4_check-balanced.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / use cracking::{BinarySearchTree, Tree}; [INFO] [stdout] 7 | | use std::cmp; [INFO] [stdout] 8 | | [INFO] [stdout] 9 | | trait CheckBalanced { [INFO] [stdout] ... | [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p4_check-balanced.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch3-p3_stack-of-plates.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch3_p3_stack_of_plates` [INFO] [stdout] --> src/bin/ch3-p3_stack-of-plates.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / use cracking::Stack; [INFO] [stdout] 16 | | use std::vec::Vec; [INFO] [stdout] 17 | | [INFO] [stdout] 18 | | struct SetOfStacks { [INFO] [stdout] ... | [INFO] [stdout] 195 | | } [INFO] [stdout] 196 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch3-p3_stack-of-plates.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p6_successor.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p6_successor` [INFO] [stdout] --> src/bin/ch4-p6_successor.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / use cracking::{RCBinarySearchTree as BinarySearchTree, RCTree as Tree}; [INFO] [stdout] 10 | | use std::rc::Rc; [INFO] [stdout] 11 | | [INFO] [stdout] 12 | | trait FindSuccessor { [INFO] [stdout] ... | [INFO] [stdout] 162 | | } [INFO] [stdout] 163 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p6_successor.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] Fixed src/bin/ch7-p6_jigsaw.rs (1 fix) [INFO] [stdout] warning: associated function is never used: `rotate_counterclockwise` [INFO] [stdout] --> src/bin/ch7-p6_jigsaw.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn rotate_counterclockwise(self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Matrix` [INFO] [stdout] --> src/bin/ch1-p8_zero-matrix.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | type Matrix<'a> = &'a mut [&'a mut [u32]]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `zero_matrix` [INFO] [stdout] --> src/bin/ch1-p8_zero-matrix.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn zero_matrix(matrix: Matrix) -> Matrix { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/bin/ch1-p4_palindrom-permutation.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 30 | if let Some(value) = map.get(&c) { [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] 31 | map.insert(c, value + 1); [INFO] [stdout] | ^^^ ----- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch5_p1_insertaion` [INFO] [stdout] --> src/bin/ch5-p1_insertaion.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / fn update_bits(n: u32, m: u32, i: u8, j: u8) -> u32 { [INFO] [stdout] 17 | | // First, clear the values between bits i and j. [INFO] [stdout] 18 | | // Do this by creating 2 masks, then combining them. [INFO] [stdout] 19 | | // Make the left mask (left = 0b111_1000_0000): [INFO] [stdout] ... | [INFO] [stdout] 37 | | assert_eq!(updated, 0b100_1101_0110); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch5-p1_insertaion.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] Fixed src/bin/ch3-p1_three-in-one.rs (1 fix) [INFO] [stdout] warning: associated function is never used: `grow` [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | fn grow(&mut self, min_cap: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | s.push(1, 0).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | s.push(1, 0).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | s.push(2, 0).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | s.push(3, 0).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | s.push(1, 1).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | s.push(2, 1).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | s.push(3, 1).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | s.push(1, 2).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | s.push(2, 2).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | s.push(3, 2).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | s.push(1, 0).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | s.push(2, 0).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | s.push(3, 0).is_ok(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_err` that must be used [INFO] [stdout] --> src/bin/ch3-p1_three-in-one.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | s.push(4, 0).is_err(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is err, consider `.unwrap_err()` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/ch2-p5_sum-lists.rs (1 fix) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/bin/ch4-p9_bst-sequences.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch4_p9_bst_sequences` [INFO] [stdout] --> src/bin/ch4-p9_bst-sequences.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / use cracking::{BinarySearchTree, Tree}; [INFO] [stdout] 20 | | use std::collections::HashSet; [INFO] [stdout] 21 | | [INFO] [stdout] 22 | | fn get_all_arrays(bst: BinarySearchTree) -> HashSet> [INFO] [stdout] ... | [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch4-p9_bst-sequences.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `ch5_p8_draw_line` [INFO] [stdout] --> src/bin/ch5-p8_draw-line.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / const MAX: u8 = std::u8::MAX; [INFO] [stdout] 14 | | use std::convert::TryFrom; [INFO] [stdout] 15 | | [INFO] [stdout] 16 | | // draws a line from (x1, x2) (inclusive), at row y. [INFO] [stdout] ... | [INFO] [stdout] 195 | | assert_eq!(screen, screen_result); [INFO] [stdout] 196 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/ch5-p8_draw-line.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_rotation` [INFO] [stdout] --> src/bin/ch1-p9_string-rotation.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn is_rotation(s1: &str, s2: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `urlify_2` [INFO] [stdout] --> src/bin/ch1-p2_urlify.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn urlify_2(url: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "44f8bdf8785e6328fc13afe9ebad48e6816f9e265d35ee8d84dda8435b9a7618", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44f8bdf8785e6328fc13afe9ebad48e6816f9e265d35ee8d84dda8435b9a7618", kill_on_drop: false }` [INFO] [stdout] 44f8bdf8785e6328fc13afe9ebad48e6816f9e265d35ee8d84dda8435b9a7618