[INFO] updating cached repository https://github.com/haptics-nri/bible-extractor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c3d9b6a1f03c8a9148682168864c460cb21c2f77 [INFO] checking haptics-nri/bible-extractor/c3d9b6a1f03c8a9148682168864c460cb21c2f77 against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhaptics-nri%2Fbible-extractor" "/workspace/builds/worker-48/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-48/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/haptics-nri/bible-extractor on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/haptics-nri/bible-extractor [INFO] finished tweaking git repo https://github.com/haptics-nri/bible-extractor [INFO] tweaked toml for git repo https://github.com/haptics-nri/bible-extractor written to /workspace/builds/worker-48/source/Cargo.toml [INFO] crate git repo https://github.com/haptics-nri/bible-extractor already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 760f3cc783b9346a7992d14dd557f8d30e1fb69d8892ad405669efd839ac669f [INFO] running `Command { std: "docker" "start" "-a" "760f3cc783b9346a7992d14dd557f8d30e1fb69d8892ad405669efd839ac669f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "760f3cc783b9346a7992d14dd557f8d30e1fb69d8892ad405669efd839ac669f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "760f3cc783b9346a7992d14dd557f8d30e1fb69d8892ad405669efd839ac669f", kill_on_drop: false }` [INFO] [stdout] 760f3cc783b9346a7992d14dd557f8d30e1fb69d8892ad405669efd839ac669f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-48/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d6ee6c845c89dd165068d11c067942f861d48ad955445c080a30a1f026c9672 [INFO] running `Command { std: "docker" "start" "-a" "8d6ee6c845c89dd165068d11c067942f861d48ad955445c080a30a1f026c9672", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking libc v0.2.30 [INFO] [stderr] Compiling gcc v0.3.53 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Checking lazy_static v0.2.8 [INFO] [stderr] Checking regex-syntax v0.4.1 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking log v0.3.8 [INFO] [stderr] Checking rustc-demangle v0.1.5 [INFO] [stderr] Checking fnv v1.0.5 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking same-file v0.1.3 [INFO] [stderr] Checking vec_map v0.8.0 [INFO] [stderr] Checking serde v1.0.11 [INFO] [stderr] Checking either v1.1.0 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking crossbeam v0.2.10 [INFO] [stderr] Checking bitflags v0.9.1 [INFO] [stderr] Checking itoa v0.3.3 [INFO] [stderr] Checking strsim v0.6.0 [INFO] [stderr] Checking unicode-segmentation v1.2.0 [INFO] [stderr] Checking dtoa v0.4.2 [INFO] [stderr] Checking num-traits v0.1.40 [INFO] [stderr] Checking if_chain v0.1.2 [INFO] [stderr] Checking closet v0.2.2 [INFO] [stderr] Checking itertools v0.6.2 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking walkdir v1.0.7 [INFO] [stderr] Checking memchr v1.0.1 [INFO] [stderr] Checking term_size v0.3.0 [INFO] [stderr] Checking atty v0.2.2 [INFO] [stderr] Checking num_cpus v1.6.2 [INFO] [stderr] Checking thread_local v0.3.4 [INFO] [stderr] Checking textwrap v0.7.0 [INFO] [stderr] Checking serde_json v1.0.2 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling backtrace-sys v0.1.12 [INFO] [stderr] Checking aho-corasick v0.6.3 [INFO] [stderr] Checking clap v2.26.0 [INFO] [stderr] Checking regex v0.2.2 [INFO] [stderr] Compiling serde_derive_internals v0.15.1 [INFO] [stderr] Checking globset v0.2.0 (git://github.com/haptics-nri/ripgrep?branch=group-defaults#5cb1600a) [INFO] [stderr] Compiling serde_derive v1.0.11 [INFO] [stderr] Checking ignore v0.2.2 (git://github.com/haptics-nri/ripgrep?branch=group-defaults#5cb1600a) [INFO] [stderr] Checking backtrace v0.3.2 [INFO] [stderr] Checking error-chain v0.11.0-rc.2 [INFO] [stderr] Checking extract v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: found removed `do catch` syntax [INFO] [stdout] --> src/main.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 149 | let result = do catch { [INFO] [stdout] | ^^^^^^^^ help: replace with the new syntax: `try` [INFO] [stdout] | [INFO] [stdout] = note: following RFC #2388, the new non-placeholder syntax is `try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: found removed `do catch` syntax [INFO] [stdout] --> src/main.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 149 | let result = do catch { [INFO] [stdout] | ^^^^^^^^ help: replace with the new syntax: `try` [INFO] [stdout] | [INFO] [stdout] = note: following RFC #2388, the new non-placeholder syntax is `try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: found removed `do catch` syntax [INFO] [stdout] --> src/main.rs:109:48 [INFO] [stdout] | [INFO] [stdout] 109 | ... match (do catch { [INFO] [stdout] | ^^^^^^^^ help: replace with the new syntax: `try` [INFO] [stdout] | [INFO] [stdout] = note: following RFC #2388, the new non-placeholder syntax is `try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `try` expression is experimental [INFO] [stdout] --> src/main.rs:109:48 [INFO] [stdout] | [INFO] [stdout] 109 | ... match (do catch { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 110 | | ... let dirent = dirent?; [INFO] [stdout] 111 | | ... if dirent.metadata()?.is_dir() { [INFO] [stdout] 112 | | ... if dirent.path() == Path::new(DATADIR) { [INFO] [stdout] ... | [INFO] [stdout] 130 | | ... } [INFO] [stdout] 131 | | ... }) { [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #31436 for more information [INFO] [stdout] = help: add `#![feature(try_blocks)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `try` expression is experimental [INFO] [stdout] --> src/main.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 149 | let result = do catch { [INFO] [stdout] | __________________^ [INFO] [stdout] 150 | | println!("Extracting {}", imgid); [INFO] [stdout] 151 | | let mut out: Box = if let Some(path) = path { [INFO] [stdout] 152 | | Box::new(File::create(path).chain_kind(imgid, ErrorKind::Bad)?) [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(()) [INFO] [stdout] 285 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #31436 for more information [INFO] [stdout] = help: add `#![feature(try_blocks)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | let mut out: Box = if let Some(path) = path { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Write` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: found removed `do catch` syntax [INFO] [stdout] --> src/main.rs:109:48 [INFO] [stdout] | [INFO] [stdout] 109 | ... match (do catch { [INFO] [stdout] | ^^^^^^^^ help: replace with the new syntax: `try` [INFO] [stdout] | [INFO] [stdout] = note: following RFC #2388, the new non-placeholder syntax is `try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `try` expression is experimental [INFO] [stdout] --> src/main.rs:109:48 [INFO] [stdout] | [INFO] [stdout] 109 | ... match (do catch { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 110 | | ... let dirent = dirent?; [INFO] [stdout] 111 | | ... if dirent.metadata()?.is_dir() { [INFO] [stdout] 112 | | ... if dirent.path() == Path::new(DATADIR) { [INFO] [stdout] ... | [INFO] [stdout] 130 | | ... } [INFO] [stdout] 131 | | ... }) { [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #31436 for more information [INFO] [stdout] = help: add `#![feature(try_blocks)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `try` expression is experimental [INFO] [stdout] --> src/main.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 149 | let result = do catch { [INFO] [stdout] | __________________^ [INFO] [stdout] 150 | | println!("Extracting {}", imgid); [INFO] [stdout] 151 | | let mut out: Box = if let Some(path) = path { [INFO] [stdout] 152 | | Box::new(File::create(path).chain_kind(imgid, ErrorKind::Bad)?) [INFO] [stdout] ... | [INFO] [stdout] 284 | | Ok(()) [INFO] [stdout] 285 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #31436 for more information [INFO] [stdout] = help: add `#![feature(try_blocks)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | / lazy_static! { [INFO] [stdout] 234 | | static ref WORDS: Vec = { [INFO] [stdout] 235 | | let words_file = BufReader::new(File::open("/usr/share/dict/words").unwrap()); [INFO] [stdout] 236 | | let mut words = words_file.lines() [INFO] [stdout] ... | [INFO] [stdout] 245 | | }; [INFO] [stdout] 246 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | / lazy_static! { [INFO] [stdout] 234 | | static ref WORDS: Vec = { [INFO] [stdout] 235 | | let words_file = BufReader::new(File::open("/usr/share/dict/words").unwrap()); [INFO] [stdout] 236 | | let mut words = words_file.lines() [INFO] [stdout] ... | [INFO] [stdout] 245 | | }; [INFO] [stdout] 246 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::AsciiExt` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:151:26 [INFO] [stdout] | [INFO] [stdout] 151 | let mut out: Box = if let Some(path) = path { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Write` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / error_chain! { [INFO] [stdout] 32 | | errors { [INFO] [stdout] 33 | | Many(errors: Vec>) { [INFO] [stdout] 34 | | description("some errors occurred") [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] 49 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | / lazy_static! { [INFO] [stdout] 234 | | static ref WORDS: Vec = { [INFO] [stdout] 235 | | let words_file = BufReader::new(File::open("/usr/share/dict/words").unwrap()); [INFO] [stdout] 236 | | let mut words = words_file.lines() [INFO] [stdout] ... | [INFO] [stdout] 245 | | }; [INFO] [stdout] 246 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/main.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | / lazy_static! { [INFO] [stdout] 234 | | static ref WORDS: Vec = { [INFO] [stdout] 235 | | let words_file = BufReader::new(File::open("/usr/share/dict/words").unwrap()); [INFO] [stdout] 236 | | let mut words = words_file.lines() [INFO] [stdout] ... | [INFO] [stdout] 245 | | }; [INFO] [stdout] 246 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / error_chain! { [INFO] [stdout] 32 | | errors { [INFO] [stdout] 33 | | Many(errors: Vec>) { [INFO] [stdout] 34 | | description("some errors occurred") [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] 49 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ascii_punctuation` found for reference `&&str` in the current scope [INFO] [stdout] --> src/main.rs:250:68 [INFO] [stdout] | [INFO] [stdout] 250 | ... .filter(|s| !s.is_ascii_punctuation()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_ascii_punctuation` found for reference `&&str` in the current scope [INFO] [stdout] --> src/main.rs:250:68 [INFO] [stdout] | [INFO] [stdout] 250 | ... .filter(|s| !s.is_ascii_punctuation()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 148 | fn extract(imgid: &str, path: Option<&Path>) -> Result<()> { [INFO] [stdout] | ---------- expected `std::result::Result<(), Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 292 | result.chain_err(|| ErrorKind::Io(e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(), _>` [INFO] [stdout] found enum `std::result::Result, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 148 | fn extract(imgid: &str, path: Option<&Path>) -> Result<()> { [INFO] [stdout] | ---------- expected `std::result::Result<(), Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 292 | result.chain_err(|| ErrorKind::Io(e)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(), _>` [INFO] [stdout] found enum `std::result::Result, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 148 | fn extract(imgid: &str, path: Option<&Path>) -> Result<()> { [INFO] [stdout] | ---------- expected `std::result::Result<(), Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 294 | result [INFO] [stdout] | ^^^^^^ expected `()`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(), Error>` [INFO] [stdout] found enum `std::result::Result, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 148 | fn extract(imgid: &str, path: Option<&Path>) -> Result<()> { [INFO] [stdout] | ---------- expected `std::result::Result<(), Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 294 | result [INFO] [stdout] | ^^^^^^ expected `()`, found enum `std::result::Result` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(), Error>` [INFO] [stdout] found enum `std::result::Result, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/main.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / error_chain! { [INFO] [stdout] 32 | | errors { [INFO] [stdout] 33 | | Many(errors: Vec>) { [INFO] [stdout] 34 | | description("some errors occurred") [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] 49 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `extract` due to 8 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/main.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | / error_chain! { [INFO] [stdout] 32 | | errors { [INFO] [stdout] 33 | | Many(errors: Vec>) { [INFO] [stdout] 34 | | description("some errors occurred") [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] 49 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `error_chain_processed` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8d6ee6c845c89dd165068d11c067942f861d48ad955445c080a30a1f026c9672", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d6ee6c845c89dd165068d11c067942f861d48ad955445c080a30a1f026c9672", kill_on_drop: false }` [INFO] [stdout] 8d6ee6c845c89dd165068d11c067942f861d48ad955445c080a30a1f026c9672