[INFO] fetching crate booklibrs 1.1.9... [INFO] testing booklibrs-1.1.9 against 1.60.0 for beta-1.61-1 [INFO] extracting crate booklibrs 1.1.9 into /workspace/builds/worker-54/source [INFO] validating manifest of crates.io crate booklibrs 1.1.9 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate booklibrs 1.1.9 [INFO] finished tweaking crates.io crate booklibrs 1.1.9 [INFO] tweaked toml for crates.io crate booklibrs 1.1.9 written to /workspace/builds/worker-54/source/Cargo.toml [INFO] crate crates.io crate booklibrs 1.1.9 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cmake v0.1.45 [INFO] [stderr] Downloaded cc v1.0.66 [INFO] [stderr] Downloaded syn v1.0.68 [INFO] [stderr] Downloaded fltk-derive v0.16.4 [INFO] [stderr] Downloaded fltk v0.16.4 [INFO] [stderr] Downloaded raw-window-handle v0.3.3 [INFO] [stderr] Downloaded fltk-sys v0.16.4 [INFO] [stderr] Downloaded fltk-calendar v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 204aee9da750e3dc5d788b3dbc6f10ad7f932a0c1eca722335be95a66070e3e6 [INFO] running `Command { std: "docker" "start" "-a" "204aee9da750e3dc5d788b3dbc6f10ad7f932a0c1eca722335be95a66070e3e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "204aee9da750e3dc5d788b3dbc6f10ad7f932a0c1eca722335be95a66070e3e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "204aee9da750e3dc5d788b3dbc6f10ad7f932a0c1eca722335be95a66070e3e6", kill_on_drop: false }` [INFO] [stdout] 204aee9da750e3dc5d788b3dbc6f10ad7f932a0c1eca722335be95a66070e3e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b4501a85103955ce5fe3281a99a1496138661dcbb783e0febee6201744ed56e7 [INFO] running `Command { std: "docker" "start" "-a" "b4501a85103955ce5fe3281a99a1496138661dcbb783e0febee6201744ed56e7", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.92 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling syn v1.0.68 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Compiling fltk-sys v0.16.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling fltk-derive v0.16.4 [INFO] [stderr] Compiling fltk v0.16.4 [INFO] [stderr] Compiling fltk-calendar v0.2.0 [INFO] [stderr] Compiling booklibrs v1.1.9 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 54.83s [INFO] running `Command { std: "docker" "inspect" "b4501a85103955ce5fe3281a99a1496138661dcbb783e0febee6201744ed56e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4501a85103955ce5fe3281a99a1496138661dcbb783e0febee6201744ed56e7", kill_on_drop: false }` [INFO] [stdout] b4501a85103955ce5fe3281a99a1496138661dcbb783e0febee6201744ed56e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-54/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c23570efc4fa11ca8801455d3a1826fe52516ddc28c5965ddec974538bc542f4 [INFO] running `Command { std: "docker" "start" "-a" "c23570efc4fa11ca8801455d3a1826fe52516ddc28c5965ddec974538bc542f4", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling booklibrs v1.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated constant `tests::book_test::date_tests::date_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/book_test.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / fn date_test() { [INFO] [stdout] 11 | | let mut date = Date::new(0, 0, 0); [INFO] [stdout] 12 | | assert!(date.is_err()); [INFO] [stdout] 13 | | [INFO] [stdout] ... | [INFO] [stdout] 21 | | assert!(date.is_ok()); [INFO] [stdout] 22 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::book_test::book_tests::book_new_changing_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/book_test.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / fn book_new_changing_test() { [INFO] [stdout] 36 | | let book = Rc::new(RefCell::new(Book::new( [INFO] [stdout] 37 | | "Title1".to_string(), [INFO] [stdout] 38 | | "Author1".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 52 | | format!("{:?}", (*book).borrow())); [INFO] [stdout] 53 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::book_test::book_tests::book_readers_manipulation_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/book_test.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / fn book_readers_manipulation_test() { [INFO] [stdout] 57 | | let book = Rc::new(RefCell::new(Book::new( [INFO] [stdout] 58 | | "Title1".to_string(), [INFO] [stdout] 59 | | "Author1".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 128 | | format!("{:?}", x.remove_all_readers())); [INFO] [stdout] 129 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::book_test::the_book_tests::the_book_new_add_remove_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/book_test.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | / fn the_book_new_add_remove_test() { [INFO] [stdout] 143 | | let mut the_book = TheBook::new("Title".to_string(), "Author".to_string(), 200, 1); [INFO] [stdout] 144 | | assert_eq!( [INFO] [stdout] 145 | | "The Book { title: \"Title\", author: \"Author\", pages: 200, books.yaml: [\"Book { title: \\\"Title\\\", author: \\\"Author\... [INFO] [stdout] ... | [INFO] [stdout] 194 | | ); [INFO] [stdout] 195 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::book_test::the_book_tests::the_book_changing_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/book_test.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 198 | / fn the_book_changing_test() { [INFO] [stdout] 199 | | let mut the_book = TheBook::new("Title".to_string(), "Author".to_string(), 200, 1); [INFO] [stdout] 200 | | let reader = Rc::new(RefCell::new(Reader::new( [INFO] [stdout] 201 | | "Michael".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 220 | | format!("{:?}", *(*reader).borrow())); [INFO] [stdout] 221 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::reader_test::reader_tests::reader_new_eq_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/reader_test.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | / fn reader_new_eq_test() { [INFO] [stdout] 15 | | let reader1 = Reader::new( [INFO] [stdout] 16 | | "Name".to_string(), [INFO] [stdout] 17 | | "Family".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 56 | | assert_ne!(reader3, reader2); [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::reader_test::reader_tests::reader_change_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/reader_test.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / fn reader_change_test() { [INFO] [stdout] 61 | | let mut reader = Reader::new( [INFO] [stdout] 62 | | "Name".to_string(), [INFO] [stdout] 63 | | "Family".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 92 | | ); [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::reader_test::reader_tests::reader_books_manipulations_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/reader_test.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | / fn reader_books_manipulations_test() { [INFO] [stdout] 97 | | let reader = Rc::new(RefCell::new(Reader::new( [INFO] [stdout] 98 | | "Name".to_string(), [INFO] [stdout] 99 | | "Family".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 175 | | ); [INFO] [stdout] 176 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::reader_test::reader_base_tests::reader_base_new_find_add_remove_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/reader_test.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | / fn reader_base_new_find_add_remove_test() { [INFO] [stdout] 190 | | let mut reader_base = ReaderBase::new(); [INFO] [stdout] 191 | | assert_eq!( [INFO] [stdout] 192 | | "Reader Base { readers.yaml: [] }", [INFO] [stdout] ... | [INFO] [stdout] 303 | | format!("{:?}", *(*book3).borrow())); [INFO] [stdout] 304 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `tests::reader_test::reader_base_tests::reader_base_changing_test`: It has been a lot of changes since I need it,since everything works correct, I have no need for tests [INFO] [stdout] --> src/tests/reader_test.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 307 | / fn reader_base_changing_test() { [INFO] [stdout] 308 | | let mut reader_base = ReaderBase::new(); [INFO] [stdout] 309 | | [INFO] [stdout] 310 | | assert_eq!("Reader Base { readers.yaml: [\"Reader { name: \\\"Name1\\\", family: \\\"Family1\\\", father: \\\"Father1\\\", age: 1... [INFO] [stdout] ... | [INFO] [stdout] 333 | | assert!(reader_base.change_age(0, "aba".to_string()).is_err()); [INFO] [stdout] 334 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/book_test.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | "Title1".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Rc>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/book_test.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | "Author1".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `&App`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/book_test.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | 200, [INFO] [stdout] | ^^^ expected enum `Lang`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `change_title` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:47:14 [INFO] [stdout] | [INFO] [stdout] 47 | .change_title("Title2".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `BookInterface` defines an item `change_title`, perhaps you need to implement it [INFO] [stdout] --> src/books/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) trait BookInterface { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/book_test.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | "Title1".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Rc>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/book_test.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | "Author1".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `&App`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/book_test.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | 200, [INFO] [stdout] | ^^^ expected enum `Lang`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/book_test.rs:63:44 [INFO] [stdout] | [INFO] [stdout] 63 | let reader1 = Rc::new(RefCell::new(Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 64 | "Name".to_string(), [INFO] [stdout] | ------------------ [INFO] [stdout] 65 | "Family".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 66 | "Father".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 67 | 50, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/book_test.rs:70:44 [INFO] [stdout] | [INFO] [stdout] 70 | let reader2 = Rc::new(RefCell::new(Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 71 | "Another Name".to_string(), [INFO] [stdout] | -------------------------- [INFO] [stdout] 72 | "Another Family".to_string(), [INFO] [stdout] | ---------------------------- [INFO] [stdout] 73 | "Another Father".to_string(), [INFO] [stdout] | ---------------------------- [INFO] [stdout] 74 | 60, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/tests/book_test.rs:77:33 [INFO] [stdout] | [INFO] [stdout] 77 | (*reader1).borrow_mut().start_reading(&book); [INFO] [stdout] | ^^^^^^^^^^^^^ ----- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:199:19 [INFO] [stdout] | [INFO] [stdout] 199 | pub(crate) fn start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 200 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 201 | book: &Rc>, [INFO] [stdout] | ------------------------ [INFO] [stdout] 202 | date: &Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | .start_reading(&reader1, Date::new(1, 1, 1).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/tests/book_test.rs:83:33 [INFO] [stdout] | [INFO] [stdout] 83 | (*reader2).borrow_mut().start_reading(&book); [INFO] [stdout] | ^^^^^^^^^^^^^ ----- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:199:19 [INFO] [stdout] | [INFO] [stdout] 199 | pub(crate) fn start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 200 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 201 | book: &Rc>, [INFO] [stdout] | ------------------------ [INFO] [stdout] 202 | date: &Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:87:14 [INFO] [stdout] | [INFO] [stdout] 87 | .start_reading(&reader2, Date::new(1, 1, 1).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `finish_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:92:41 [INFO] [stdout] | [INFO] [stdout] 92 | assert_eq!((*book).borrow_mut().finish_reading().err().unwrap(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/tests/book_test.rs:97:33 [INFO] [stdout] | [INFO] [stdout] 97 | (*reader2).borrow_mut().start_reading(&book); [INFO] [stdout] | ^^^^^^^^^^^^^ ----- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:199:19 [INFO] [stdout] | [INFO] [stdout] 199 | pub(crate) fn start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 200 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 201 | book: &Rc>, [INFO] [stdout] | ------------------------ [INFO] [stdout] 202 | date: &Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | .start_reading(&reader2, Date::new(1, 1, 1).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find_reader_first` found for struct `Ref<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:106:37 [INFO] [stdout] | [INFO] [stdout] 106 | assert_eq!((*book).borrow().find_reader_first(&reader1).unwrap(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `Ref<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find_reader_first` found for struct `Ref<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:107:37 [INFO] [stdout] | [INFO] [stdout] 107 | assert_eq!((*book).borrow().find_reader_first(&reader2).unwrap(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `Ref<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/book_test.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | .change_age(60); [INFO] [stdout] | ^^ expected struct `date::Date`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_reader` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:123:57 [INFO] [stdout] | [INFO] [stdout] 123 | format!("{:?}", (*book).borrow_mut().remove_reader(&(*(*reader2).borrow())))); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remove_all_readers` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:128:27 [INFO] [stdout] | [INFO] [stdout] 128 | format!("{:?}", x.remove_all_readers())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/book_test.rs:143:28 [INFO] [stdout] | [INFO] [stdout] 143 | let mut the_book = TheBook::new("Title".to_string(), "Author".to_string(), 200, 1); [INFO] [stdout] | ^^^^^^^^^^^^ ------------------- -------------------- --- - supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/books/the_book.rs:79:25 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) const fn new(new_title: String, new_author: String, new_pages: u16) -> Self { [INFO] [stdout] | ^^^ ----------------- ------------------ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/book_test.rs:149:43 [INFO] [stdout] | [INFO] [stdout] 149 | let reader = Rc::new(RefCell::new(Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 150 | "Name".to_string(), [INFO] [stdout] | ------------------ [INFO] [stdout] 151 | "Family".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 152 | "Father".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 153 | 50, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/tests/book_test.rs:163:18 [INFO] [stdout] | [INFO] [stdout] 163 | .start_reading(the_book.books.get(ind.unwrap()).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^ ----------------------------------------- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:199:19 [INFO] [stdout] | [INFO] [stdout] 199 | pub(crate) fn start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 200 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 201 | book: &Rc>, [INFO] [stdout] | ------------------------ [INFO] [stdout] 202 | date: &Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add_book` found for struct `TheBook` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:169:22 [INFO] [stdout] | [INFO] [stdout] 169 | the_book.add_book(); [INFO] [stdout] | ^^^^^^^^ method not found in `TheBook` [INFO] [stdout] | [INFO] [stdout] ::: src/books/the_book.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct TheBook { [INFO] [stdout] | ------------------ method `add_book` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/book_test.rs:199:28 [INFO] [stdout] | [INFO] [stdout] 199 | let mut the_book = TheBook::new("Title".to_string(), "Author".to_string(), 200, 1); [INFO] [stdout] | ^^^^^^^^^^^^ ------------------- -------------------- --- - supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/books/the_book.rs:79:25 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) const fn new(new_title: String, new_author: String, new_pages: u16) -> Self { [INFO] [stdout] | ^^^ ----------------- ------------------ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/book_test.rs:200:43 [INFO] [stdout] | [INFO] [stdout] 200 | let reader = Rc::new(RefCell::new(Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 201 | "Michael".to_string(), [INFO] [stdout] | --------------------- [INFO] [stdout] 202 | "Jackson".to_string(), [INFO] [stdout] | --------------------- [INFO] [stdout] 203 | "Joseph".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 204 | 60, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/tests/book_test.rs:209:14 [INFO] [stdout] | [INFO] [stdout] 209 | .start_reading(the_book.books.first().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^ ------------------------------- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:199:19 [INFO] [stdout] | [INFO] [stdout] 199 | pub(crate) fn start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 200 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 201 | book: &Rc>, [INFO] [stdout] | ------------------------ [INFO] [stdout] 202 | date: &Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/reader_test.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | let reader1 = Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 16 | "Name".to_string(), [INFO] [stdout] | ------------------ [INFO] [stdout] 17 | "Family".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 18 | "Father".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 19 | 50, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/reader_test.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | let reader2 = Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 23 | "Name".to_string(), [INFO] [stdout] | ------------------ [INFO] [stdout] 24 | "Family".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 25 | "Father".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 26 | 50, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/reader_test.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | let reader3 = Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 30 | "Another Name".to_string(), [INFO] [stdout] | -------------------------- [INFO] [stdout] 31 | "Another Family".to_string(), [INFO] [stdout] | ---------------------------- [INFO] [stdout] 32 | "Another Father".to_string(), [INFO] [stdout] | ---------------------------- [INFO] [stdout] 33 | 50, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/reader_test.rs:61:26 [INFO] [stdout] | [INFO] [stdout] 61 | let mut reader = Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 62 | "Name".to_string(), [INFO] [stdout] | ------------------ [INFO] [stdout] 63 | "Family".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 64 | "Father".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 65 | 50, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:91:47 [INFO] [stdout] | [INFO] [stdout] 91 | format!("{:?}", reader.change_age(60)) [INFO] [stdout] | ^^ expected struct `date::Date`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/reader_test.rs:97:43 [INFO] [stdout] | [INFO] [stdout] 97 | let reader = Rc::new(RefCell::new(Reader::new( [INFO] [stdout] | ^^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 98 | "Name".to_string(), [INFO] [stdout] | ------------------ [INFO] [stdout] 99 | "Family".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 100 | "Father".to_string(), [INFO] [stdout] | -------------------- [INFO] [stdout] 101 | 50, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | pub(crate) const fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] 116 | new_name: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 117 | new_family: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 118 | new_father: String, [INFO] [stdout] | ------------------ [INFO] [stdout] 119 | new_info: String, [INFO] [stdout] | ---------------- [INFO] [stdout] 120 | new_birth: Date, [INFO] [stdout] | --------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | "Title1".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Rc>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | "Author1".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `&App`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | 50, [INFO] [stdout] | ^^ expected enum `Lang`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | "Title2".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Rc>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | "Author2".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `&App`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | 60, [INFO] [stdout] | ^^ expected enum `Lang`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | "Title3".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Rc>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | "Author3".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `&App`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | 70, [INFO] [stdout] | ^^ expected enum `Lang`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/tests/reader_test.rs:126:37 [INFO] [stdout] | [INFO] [stdout] 126 | ... .start_reading(&book1) [INFO] [stdout] | ^^^^^^^^^^^^^ ------ supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:199:19 [INFO] [stdout] | [INFO] [stdout] 199 | pub(crate) fn start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 200 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 201 | book: &Rc>, [INFO] [stdout] | ------------------------ [INFO] [stdout] 202 | date: &Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for enum `Result` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | ... .start_reading(&book2) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Result<&mut Reader, u8>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:132:14 [INFO] [stdout] | [INFO] [stdout] 132 | .start_reading(&reader, Date::new(1, 1, 1).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | .start_reading(&reader, Date::new(1, 1, 1).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:140:14 [INFO] [stdout] | [INFO] [stdout] 140 | .start_reading(&reader, Date::new(1, 1, 1).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `change_title` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:144:14 [INFO] [stdout] | [INFO] [stdout] 144 | .change_title("KEK".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `BookInterface` defines an item `change_title`, perhaps you need to implement it [INFO] [stdout] --> src/books/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) trait BookInterface { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `change_title` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:150:14 [INFO] [stdout] | [INFO] [stdout] 150 | .change_title("LOL".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `BookInterface` defines an item `change_title`, perhaps you need to implement it [INFO] [stdout] --> src/books/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) trait BookInterface { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `change_title` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | .change_title("KOK".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `BookInterface` defines an item `change_title`, perhaps you need to implement it [INFO] [stdout] --> src/books/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) trait BookInterface { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:166:26 [INFO] [stdout] | [INFO] [stdout] 166 | .remove_book(&mut (*(*book1).borrow_mut())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Book`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Book` [INFO] [stdout] found mutable reference `&mut Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/reader_test.rs:199:22 [INFO] [stdout] | [INFO] [stdout] 199 | .add_reader( [INFO] [stdout] | ^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 200 | "Name1".to_string(), [INFO] [stdout] | ------------------- [INFO] [stdout] 201 | "Family1".to_string(), [INFO] [stdout] | --------------------- [INFO] [stdout] 202 | "Father1".to_string(), [INFO] [stdout] | --------------------- [INFO] [stdout] 203 | 50, ) [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/read_base.rs:173:19 [INFO] [stdout] | [INFO] [stdout] 173 | pub(crate) fn add_reader( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 174 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 175 | name: String, [INFO] [stdout] | ------------ [INFO] [stdout] 176 | family: String, [INFO] [stdout] | -------------- [INFO] [stdout] 177 | father: String, [INFO] [stdout] | -------------- [INFO] [stdout] 178 | info: String, [INFO] [stdout] | ------------ [INFO] [stdout] 179 | birth: Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/reader_test.rs:205:22 [INFO] [stdout] | [INFO] [stdout] 205 | .add_reader( [INFO] [stdout] | ^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 206 | "Name2".to_string(), [INFO] [stdout] | ------------------- [INFO] [stdout] 207 | "Family2".to_string(), [INFO] [stdout] | --------------------- [INFO] [stdout] 208 | "Father2".to_string(), [INFO] [stdout] | --------------------- [INFO] [stdout] 209 | 60, ) [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/read_base.rs:173:19 [INFO] [stdout] | [INFO] [stdout] 173 | pub(crate) fn add_reader( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 174 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 175 | name: String, [INFO] [stdout] | ------------ [INFO] [stdout] 176 | family: String, [INFO] [stdout] | -------------- [INFO] [stdout] 177 | father: String, [INFO] [stdout] | -------------- [INFO] [stdout] 178 | info: String, [INFO] [stdout] | ------------ [INFO] [stdout] 179 | birth: Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | 50 [INFO] [stdout] | ^^ expected struct `date::Date`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | 60 [INFO] [stdout] | ^^ expected struct `date::Date`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | 50 [INFO] [stdout] | ^^ expected struct `date::Date`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | "Title1".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Rc>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | "Author1".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `&App`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | 50, [INFO] [stdout] | ^^ expected enum `Lang`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | "Title2".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Rc>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | "Author2".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `&App`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | 60, [INFO] [stdout] | ^^ expected enum `Lang`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | "Title3".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected struct `Rc`, found struct `std::string::String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Rc>` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | "Author3".to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `&App`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | 70, [INFO] [stdout] | ^^ expected enum `Lang`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/tests/reader_test.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 262 | .start_reading(&book1) [INFO] [stdout] | ^^^^^^^^^^^^^ ------ supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/reader.rs:199:19 [INFO] [stdout] | [INFO] [stdout] 199 | pub(crate) fn start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 200 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 201 | book: &Rc>, [INFO] [stdout] | ------------------------ [INFO] [stdout] 202 | date: &Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for enum `Result` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:263:14 [INFO] [stdout] | [INFO] [stdout] 263 | .start_reading(&book2) [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Result<&mut Reader, u8>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:266:31 [INFO] [stdout] | [INFO] [stdout] 266 | (*book1).borrow_mut().start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:271:31 [INFO] [stdout] | [INFO] [stdout] 271 | (*book2).borrow_mut().start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start_reading` found for struct `RefMut<'_, Option>` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:276:31 [INFO] [stdout] | [INFO] [stdout] 276 | (*book3).borrow_mut().start_reading( [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RefMut<'_, Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/tests/reader_test.rs:313:26 [INFO] [stdout] | [INFO] [stdout] 313 | .add_reader( [INFO] [stdout] | ^^^^^^^^^^ expected 5 arguments [INFO] [stdout] 314 | "Name1".to_string(), [INFO] [stdout] | ------------------- [INFO] [stdout] 315 | "Family1".to_string(), [INFO] [stdout] | --------------------- [INFO] [stdout] 316 | "Father1".to_string(), [INFO] [stdout] | --------------------- [INFO] [stdout] 317 | 10, [INFO] [stdout] | -- supplied 4 arguments [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/reading/read_base.rs:173:19 [INFO] [stdout] | [INFO] [stdout] 173 | pub(crate) fn add_reader( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 174 | &mut self, [INFO] [stdout] | --------- [INFO] [stdout] 175 | name: String, [INFO] [stdout] | ------------ [INFO] [stdout] 176 | family: String, [INFO] [stdout] | -------------- [INFO] [stdout] 177 | father: String, [INFO] [stdout] | -------------- [INFO] [stdout] 178 | info: String, [INFO] [stdout] | ------------ [INFO] [stdout] 179 | birth: Date, [INFO] [stdout] | ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:330:47 [INFO] [stdout] | [INFO] [stdout] 330 | ... .change_age(0, "60".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected struct `date::Date`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:333:43 [INFO] [stdout] | [INFO] [stdout] 333 | assert!(reader_base.change_age(0, "aba".to_string()).is_err()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected struct `date::Date`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 74 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `booklibrs` due to 75 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c23570efc4fa11ca8801455d3a1826fe52516ddc28c5965ddec974538bc542f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c23570efc4fa11ca8801455d3a1826fe52516ddc28c5965ddec974538bc542f4", kill_on_drop: false }` [INFO] [stdout] c23570efc4fa11ca8801455d3a1826fe52516ddc28c5965ddec974538bc542f4