[INFO] fetching crate booklibrs 0.1.2... [INFO] checking booklibrs-0.1.2 against master#4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 for pr-81174 [INFO] extracting crate booklibrs 0.1.2 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate booklibrs 0.1.2 on toolchain 4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate booklibrs 0.1.2 [INFO] finished tweaking crates.io crate booklibrs 0.1.2 [INFO] tweaked toml for crates.io crate booklibrs 0.1.2 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate crates.io crate booklibrs 0.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2cfcb96ed8577c6ffcee9ea928243621727aa903f285b2f7ad752db9f519b8fd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2cfcb96ed8577c6ffcee9ea928243621727aa903f285b2f7ad752db9f519b8fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2cfcb96ed8577c6ffcee9ea928243621727aa903f285b2f7ad752db9f519b8fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cfcb96ed8577c6ffcee9ea928243621727aa903f285b2f7ad752db9f519b8fd", kill_on_drop: false }` [INFO] [stdout] 2cfcb96ed8577c6ffcee9ea928243621727aa903f285b2f7ad752db9f519b8fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4d0dd02ee07bddad9136f95c9f7846ebf3eb3fc5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd7b7d0c530e4f88d2c93ed53aa3ee4b4e5ef5fc720e4dd59a3477063e3b120a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bd7b7d0c530e4f88d2c93ed53aa3ee4b4e5ef5fc720e4dd59a3477063e3b120a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking yaml-rust v0.4.5 [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 quote v1.0.8 [INFO] [stderr] Compiling fltk-sys v0.13.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling fltk-derive v0.13.3 [INFO] [stderr] Checking fltk v0.13.5 [INFO] [stderr] Checking booklibrs v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no method named `is_none` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | assert!(date.is_none()); [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_none` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | assert!(date.is_none()); [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_none` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | assert!(date.is_none()); [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_some` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | assert!(date.is_some()); [INFO] [stdout] | ^^^^^^^ method not found in `std::result::Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Reader` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:78:62 [INFO] [stdout] | [INFO] [stdout] 78 | assert!((*reader1).borrow_mut().start_reading(&book).is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_err` found for mutable reference `&mut Reader` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:85:62 [INFO] [stdout] | [INFO] [stdout] 85 | assert!((*reader2).borrow_mut().start_reading(&book).is_err()); [INFO] [stdout] | ^^^^^^ method not found in `&mut Reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_err` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | .is_err()); [INFO] [stdout] | ^^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Reader` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:100:62 [INFO] [stdout] | [INFO] [stdout] 100 | assert!((*reader2).borrow_mut().start_reading(&book).is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find_reader` found for struct `Ref<'_, Book>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:110:37 [INFO] [stdout] | [INFO] [stdout] 110 | assert_eq!((*book).borrow().find_reader(&reader1), 0); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Ref<'_, Book>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `find_reader` found for struct `Ref<'_, Book>` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | assert_eq!((*book).borrow().find_reader(&reader2), 1); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Ref<'_, Book>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Rc>]` cannot be indexed by `Option` [INFO] [stdout] --> src/tests/book_test.rs:166:51 [INFO] [stdout] | [INFO] [stdout] 166 | .start_reading(the_book.books.get(ind).unwrap()) [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Rc>]>` is not implemented for `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Reader` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:167:18 [INFO] [stdout] | [INFO] [stdout] 167 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[Rc>]` cannot be indexed by `Option` [INFO] [stdout] --> src/tests/book_test.rs:169:43 [INFO] [stdout] | [INFO] [stdout] 169 | assert!((**the_book.books.get(ind).unwrap()) [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[Rc>]>` is not implemented for `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/book_test.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | assert_eq!(the_book.get_unused(), 50); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Option`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found type `{integer}` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Reader` in the current scope [INFO] [stdout] --> src/tests/book_test.rs:215:14 [INFO] [stdout] | [INFO] [stdout] 215 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for mutable reference `&mut Reader` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:128:37 [INFO] [stdout] | [INFO] [stdout] 128 | ... .unwrap() [INFO] [stdout] | ^^^^^^ method not found in `&mut Reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:137:14 [INFO] [stdout] | [INFO] [stdout] 137 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:142:14 [INFO] [stdout] | [INFO] [stdout] 142 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:147:14 [INFO] [stdout] | [INFO] [stdout] 147 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | / assert_eq!( [INFO] [stdout] 220 | | reader_base.find_reader( [INFO] [stdout] 221 | | &"Name1".to_string(), [INFO] [stdout] 222 | | &"Family1".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 226 | | 0 [INFO] [stdout] 227 | | ); [INFO] [stdout] | |__________^ expected enum `Option`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found type `{integer}` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | / assert_eq!( [INFO] [stdout] 230 | | reader_base.find_reader( [INFO] [stdout] 231 | | &"Name2".to_string(), [INFO] [stdout] 232 | | &"Family2".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 236 | | 1 [INFO] [stdout] 237 | | ); [INFO] [stdout] | |__________^ expected enum `Option`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found type `{integer}` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests/reader_test.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | / assert_eq!( [INFO] [stdout] 240 | | reader_base.find_reader( [INFO] [stdout] 241 | | &"Error".to_string(), [INFO] [stdout] 242 | | &"Error".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 246 | | reader_base.readers.len() [INFO] [stdout] 247 | | ); [INFO] [stdout] | |__________^ expected enum `Option`, found `usize` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found type `usize` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for mutable reference `&mut Reader` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:270:14 [INFO] [stdout] | [INFO] [stdout] 270 | .unwrap() [INFO] [stdout] | ^^^^^^ method not found in `&mut Reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:282:14 [INFO] [stdout] | [INFO] [stdout] 282 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:290:14 [INFO] [stdout] | [INFO] [stdout] 290 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ok` found for mutable reference `&mut Book` in the current scope [INFO] [stdout] --> src/tests/reader_test.rs:298:14 [INFO] [stdout] | [INFO] [stdout] 298 | .is_ok()); [INFO] [stdout] | ^^^^^ method not found in `&mut Book` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 28 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `booklibrs` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "bd7b7d0c530e4f88d2c93ed53aa3ee4b4e5ef5fc720e4dd59a3477063e3b120a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd7b7d0c530e4f88d2c93ed53aa3ee4b4e5ef5fc720e4dd59a3477063e3b120a", kill_on_drop: false }` [INFO] [stdout] bd7b7d0c530e4f88d2c93ed53aa3ee4b4e5ef5fc720e4dd59a3477063e3b120a