[INFO] fetching crate ferru 0.4.0... [INFO] testing ferru-0.4.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate ferru 0.4.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate ferru 0.4.0 [INFO] finished tweaking crates.io crate ferru 0.4.0 [INFO] tweaked toml for crates.io crate ferru 0.4.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ferru 0.4.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 55 packages to latest compatible versions [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.40) [INFO] [stderr] Adding env_logger v0.3.5 (available: v0.11.8) [INFO] [stderr] Adding log v0.3.9 (available: v0.4.27) [INFO] [stderr] Adding mustache v0.7.0 (available: v0.9.0) [INFO] [stderr] Adding serde_yaml v0.7.5 (available: v0.9.34+deprecated) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mustache v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c861b65159c58cf377ab8311aaf521698198bbba8485dfa7848ada41ba7d82d [INFO] running `Command { std: "docker" "start" "-a" "2c861b65159c58cf377ab8311aaf521698198bbba8485dfa7848ada41ba7d82d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c861b65159c58cf377ab8311aaf521698198bbba8485dfa7848ada41ba7d82d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c861b65159c58cf377ab8311aaf521698198bbba8485dfa7848ada41ba7d82d", kill_on_drop: false }` [INFO] [stdout] 2c861b65159c58cf377ab8311aaf521698198bbba8485dfa7848ada41ba7d82d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] acbc6ab75db9393d39dda2e059f42f78c8bbe4b6ac33e56e3aca6e54616c635d [INFO] running `Command { std: "docker" "start" "-a" "acbc6ab75db9393d39dda2e059f42f78c8bbe4b6ac33e56e3aca6e54616c635d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling yaml-rust v0.3.5 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling mustache v0.7.0 [INFO] [stderr] Compiling env_logger v0.3.5 [INFO] [stderr] Compiling serde_yaml v0.7.5 [INFO] [stderr] Compiling ferru v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ferru.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | try!(util::copy_recursively(&source, &dest, is_static_file)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ferru.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(document.render_to_file(&new_dest, &templates)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | try!(template.render(&mut buf, &self.data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | try!(fs::create_dir_all(&try!(parent_path))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | try!(template.render(&mut file, &data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | let template_path = try!(self.template()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | let template = try!(templates.get(&template_path.to_owned()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:64:34 [INFO] [stdout] | [INFO] [stdout] 64 | try!(fs::create_dir_all(&try!(parent_path))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | let mut file = try!(File::create(file_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | data.insert("content", try!(self.as_html())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | try!(util::walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | try!(file.read_to_string(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | let mut file = try!(File::open(&path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:114:28 [INFO] [stdout] | [INFO] [stdout] 114 | let document = try!(parser::parse_document(&content)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 115 | let relative_path = try!(path.strip_prefix(documents_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let templates_dir = try!(fs::read_dir(root_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | let template_path = try!(template_path).path(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | if !try!(fs::metadata(&template_path)).is_file() { continue; } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | try!(template_file.read_to_string(&mut template)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | let filename = try!(util::file_name_from_path(&template_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | try!(walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | let new_dest = &dest.as_ref().join(try!(entry.strip_prefix(source))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | try!(fs::create_dir(new_dest)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | try!(fs::copy(&entry, new_dest)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | for entry in try!(fs::read_dir(path)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | try!(action(&entry.path())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | let entry = try!(entry); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | try!(walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | if try!(fs::metadata(&entry.path())).is_dir() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | try!(path.as_ref().file_name().ok_or(Error::MissingFileName)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser/error.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | e => write!(f, "{}", e.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:98:40 [INFO] [stdout] | [INFO] [stdout] 98 | Error::IoError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:101:46 [INFO] [stdout] | [INFO] [stdout] 101 | Error::MustacheError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:102:44 [INFO] [stdout] | [INFO] [stdout] 102 | Error::ParserError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:103:49 [INFO] [stdout] | [INFO] [stdout] 103 | Error::StripPrefixError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | Error::IoError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:111:46 [INFO] [stdout] | [INFO] [stdout] 111 | Error::MustacheError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:112:44 [INFO] [stdout] | [INFO] [stdout] 112 | Error::ParserError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | Error::StripPrefixError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/error.rs:37:43 [INFO] [stdout] | [INFO] [stdout] 37 | Error::SerdeError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/parser/error.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | Error::SerdeError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.26s [INFO] running `Command { std: "docker" "inspect" "acbc6ab75db9393d39dda2e059f42f78c8bbe4b6ac33e56e3aca6e54616c635d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acbc6ab75db9393d39dda2e059f42f78c8bbe4b6ac33e56e3aca6e54616c635d", kill_on_drop: false }` [INFO] [stdout] acbc6ab75db9393d39dda2e059f42f78c8bbe4b6ac33e56e3aca6e54616c635d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 594d342c62350121cd3d1ecd9b1d2ae3fafe9767a52c743391cd6bf35aab6399 [INFO] running `Command { std: "docker" "start" "-a" "594d342c62350121cd3d1ecd9b1d2ae3fafe9767a52c743391cd6bf35aab6399", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ferru.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | try!(util::copy_recursively(&source, &dest, is_static_file)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ferru.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(document.render_to_file(&new_dest, &templates)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | try!(template.render(&mut buf, &self.data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | try!(fs::create_dir_all(&try!(parent_path))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | try!(template.render(&mut file, &data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | let template_path = try!(self.template()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | let template = try!(templates.get(&template_path.to_owned()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:64:34 [INFO] [stdout] | [INFO] [stdout] 64 | try!(fs::create_dir_all(&try!(parent_path))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | let mut file = try!(File::create(file_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | data.insert("content", try!(self.as_html())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | try!(util::walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | try!(file.read_to_string(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | let mut file = try!(File::open(&path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:114:28 [INFO] [stdout] | [INFO] [stdout] 114 | let document = try!(parser::parse_document(&content)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 115 | let relative_path = try!(path.strip_prefix(documents_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let templates_dir = try!(fs::read_dir(root_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | let template_path = try!(template_path).path(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | if !try!(fs::metadata(&template_path)).is_file() { continue; } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | try!(template_file.read_to_string(&mut template)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | let filename = try!(util::file_name_from_path(&template_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | try!(walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | let new_dest = &dest.as_ref().join(try!(entry.strip_prefix(source))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ferru v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | try!(fs::create_dir(new_dest)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | try!(fs::copy(&entry, new_dest)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | for entry in try!(fs::read_dir(path)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | try!(action(&entry.path())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | let entry = try!(entry); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | try!(walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | if try!(fs::metadata(&entry.path())).is_dir() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | try!(path.as_ref().file_name().ok_or(Error::MissingFileName)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser/error.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | e => write!(f, "{}", e.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:98:40 [INFO] [stdout] | [INFO] [stdout] 98 | Error::IoError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:101:46 [INFO] [stdout] | [INFO] [stdout] 101 | Error::MustacheError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:102:44 [INFO] [stdout] | [INFO] [stdout] 102 | Error::ParserError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:103:49 [INFO] [stdout] | [INFO] [stdout] 103 | Error::StripPrefixError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | Error::IoError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:111:46 [INFO] [stdout] | [INFO] [stdout] 111 | Error::MustacheError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:112:44 [INFO] [stdout] | [INFO] [stdout] 112 | Error::ParserError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | Error::StripPrefixError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/error.rs:37:43 [INFO] [stdout] | [INFO] [stdout] 37 | Error::SerdeError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/parser/error.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | Error::SerdeError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `parser::yaml_rust` [INFO] [stdout] --> src/parser/mod.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | use parser::yaml_rust::Yaml; [INFO] [stdout] | ^^^^^^^^^ could not find `yaml_rust` in `parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ferru.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | try!(util::copy_recursively(&source, &dest, is_static_file)) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/ferru.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | try!(document.render_to_file(&new_dest, &templates)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | try!(template.render(&mut buf, &self.data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | try!(fs::create_dir_all(&try!(parent_path))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | try!(template.render(&mut file, &data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | let template_path = try!(self.template()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | let template = try!(templates.get(&template_path.to_owned()) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:64:34 [INFO] [stdout] | [INFO] [stdout] 64 | try!(fs::create_dir_all(&try!(parent_path))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 66 | let mut file = try!(File::create(file_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | data.insert("content", try!(self.as_html())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | try!(util::walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | try!(file.read_to_string(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:110:32 [INFO] [stdout] | [INFO] [stdout] 110 | let mut file = try!(File::open(&path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:114:28 [INFO] [stdout] | [INFO] [stdout] 114 | let document = try!(parser::parse_document(&content)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/document.rs:115:33 [INFO] [stdout] | [INFO] [stdout] 115 | let relative_path = try!(path.strip_prefix(documents_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | let templates_dir = try!(fs::read_dir(root_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | let template_path = try!(template_path).path(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | if !try!(fs::metadata(&template_path)).is_file() { continue; } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | try!(template_file.read_to_string(&mut template)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/template.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | let filename = try!(util::file_name_from_path(&template_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | try!(walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:34:48 [INFO] [stdout] | [INFO] [stdout] 34 | let new_dest = &dest.as_ref().join(try!(entry.strip_prefix(source))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | try!(fs::create_dir(new_dest)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | try!(fs::copy(&entry, new_dest)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | for entry in try!(fs::read_dir(path)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | try!(action(&entry.path())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | let entry = try!(entry); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | try!(walk_dir( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | if try!(fs::metadata(&entry.path())).is_dir() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/util.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | try!(path.as_ref().file_name().ok_or(Error::MissingFileName)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser/error.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | fn cause(&self) -> Option<&StdError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [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] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | fn cause(&self) -> Option<&dyn StdError> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | e => write!(f, "{}", e.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:98:40 [INFO] [stdout] | [INFO] [stdout] 98 | Error::IoError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:101:46 [INFO] [stdout] | [INFO] [stdout] 101 | Error::MustacheError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:102:44 [INFO] [stdout] | [INFO] [stdout] 102 | Error::ParserError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:103:49 [INFO] [stdout] | [INFO] [stdout] 103 | Error::StripPrefixError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | Error::IoError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:111:46 [INFO] [stdout] | [INFO] [stdout] 111 | Error::MustacheError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:112:44 [INFO] [stdout] | [INFO] [stdout] 112 | Error::ParserError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/error.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | Error::StripPrefixError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/parser/error.rs:37:43 [INFO] [stdout] | [INFO] [stdout] 37 | Error::SerdeError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::cause`: replaced by Error::source, which can support downcasting [INFO] [stdout] --> src/parser/error.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | Error::SerdeError(ref e) => e.cause(), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderFormat` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | Err(Error::InvalidHeaderFormat("a".to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderFormat` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderFormat` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:69:24 [INFO] [stdout] | [INFO] [stdout] 69 | Err(Error::InvalidHeaderFormat("a ".to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderFormat` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderKey` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | Err(Error::InvalidHeaderKey(Yaml::Null)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderKey` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderKey` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | Err(Error::InvalidHeaderKey(Yaml::Null)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderKey` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderFormat` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:81:24 [INFO] [stdout] | [INFO] [stdout] 81 | Err(Error::InvalidHeaderFormat("title:sometitle".to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderFormat` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderKey` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:85:24 [INFO] [stdout] | [INFO] [stdout] 85 | Err(Error::InvalidHeaderKey(Yaml::Integer(1234))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderKey` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderValue` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | Err(Error::InvalidHeaderValue(Yaml::Null)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderValue` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderValue` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 97 | Err(Error::InvalidHeaderValue(Yaml::Null)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderValue` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `InvalidHeaderValue` found for enum `parser::error::Error` in the current scope [INFO] [stdout] --> src/parser/mod.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | Err(Error::InvalidHeaderValue(Yaml::Integer(1234))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `parser::error::Error` [INFO] [stdout] | [INFO] [stdout] ::: src/parser/error.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Error { [INFO] [stdout] | -------------- variant or associated item `InvalidHeaderValue` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `std::result::Result, parser::error::Error>` with `std::result::Result, _>` [INFO] [stdout] --> src/parser/mod.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | assert_eq!(&parse_header("title: sometitle\ndate: 2014-01-01"), &map); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::result::Result, parser::error::Error> == std::result::Result, _>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq, _>>` is not implemented for `std::result::Result, parser::error::Error>` [INFO] [stdout] but trait `PartialEq, parser::error::Error>>` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `BTreeMap`, found `HashMap` [INFO] [stdout] = note: required for `&Result, Error>` to implement `PartialEq<&std::result::Result, _>>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/ferru-fd525e88dfd9e5cf.long-type-12161092797722512631.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `std::result::Result, parser::error::Error>` with `std::result::Result, _>` [INFO] [stdout] --> src/parser/mod.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | assert_eq!(&parse_header("title: sometitle\ndate: 2014-01-01\n"), &map); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::result::Result, parser::error::Error> == std::result::Result, _>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq, _>>` is not implemented for `std::result::Result, parser::error::Error>` [INFO] [stdout] but trait `PartialEq, parser::error::Error>>` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `BTreeMap`, found `HashMap` [INFO] [stdout] = note: required for `&Result, Error>` to implement `PartialEq<&std::result::Result, _>>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/ferru-fd525e88dfd9e5cf.long-type-8382950129601800379.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:120:57 [INFO] [stdout] | [INFO] [stdout] 120 | assert_eq!(parse_document(""), Ok(Document::new(HashMap::new(), ""))); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ expected `BTreeMap`, found `HashMap<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:125:62 [INFO] [stdout] | [INFO] [stdout] 125 | assert_eq!(parse_document("---\n"), Ok(Document::new(HashMap::new(), ""))); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ expected `BTreeMap`, found `HashMap<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:126:64 [INFO] [stdout] | [INFO] [stdout] 126 | assert_eq!(parse_document("\n---\n"), Ok(Document::new(HashMap::new(), ""))); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ expected `BTreeMap`, found `HashMap<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:127:63 [INFO] [stdout] | [INFO] [stdout] 127 | assert_eq!(parse_document(" ---\n"), Ok(Document::new(HashMap::new(), ""))); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ expected `BTreeMap`, found `HashMap<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:132:81 [INFO] [stdout] | [INFO] [stdout] 132 | assert_eq!(parse_document("---\nsome random content"), Ok(Document::new(HashMap::new(), "some random content"))); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ expected `BTreeMap`, found `HashMap<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:133:83 [INFO] [stdout] | [INFO] [stdout] 133 | assert_eq!(parse_document("\n---\nsome random content"), Ok(Document::new(HashMap::new(), "some random content"))); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ expected `BTreeMap`, found `HashMap<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:134:82 [INFO] [stdout] | [INFO] [stdout] 134 | assert_eq!(parse_document(" ---\nsome random content"), Ok(Document::new(HashMap::new(), "some random content"))); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^ expected `BTreeMap`, found `HashMap<_, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:145:79 [INFO] [stdout] | [INFO] [stdout] 145 | assert_eq!(parse_document("title: my title\n---\n"), Ok(Document::new(header, ""))); [INFO] [stdout] | ------------- ^^^^^^ expected `BTreeMap`, found `HashMap` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser/mod.rs:159:34 [INFO] [stdout] | [INFO] [stdout] 159 | let post = Document::new(header, "this is a post.\nwith multiple lines!"); [INFO] [stdout] | ------------- ^^^^^^ expected `BTreeMap`, found `HashMap` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `BTreeMap` [INFO] [stdout] found struct `HashMap` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/document.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(header: Header, content: &str) -> Document { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ferru` (lib test) due to 21 previous errors; 43 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "594d342c62350121cd3d1ecd9b1d2ae3fafe9767a52c743391cd6bf35aab6399", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "594d342c62350121cd3d1ecd9b1d2ae3fafe9767a52c743391cd6bf35aab6399", kill_on_drop: false }` [INFO] [stdout] 594d342c62350121cd3d1ecd9b1d2ae3fafe9767a52c743391cd6bf35aab6399