[INFO] updating cached repository https://github.com/zserik/zspepperbrowsa [INFO] running `"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"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 253e5920692ef4d0c9abb7010edf9de3ef6a225d [INFO] checking zserik/zspepperbrowsa against master#2748a9fd93dd1a00a4521f4f16de5befbf77f6cd for pr-62262-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzserik%2Fzspepperbrowsa" "/workspace/builds/worker-0/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zserik/zspepperbrowsa on toolchain 2748a9fd93dd1a00a4521f4f16de5befbf77f6cd [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/zserik/zspepperbrowsa [INFO] finished tweaking git repo https://github.com/zserik/zspepperbrowsa [INFO] tweaked toml for git repo https://github.com/zserik/zspepperbrowsa written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/zserik/zspepperbrowsa already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 9553cec49968622bbb5df3a29d49f8160c0606e054d47800a5a8e4f7a215f806 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "9553cec49968622bbb5df3a29d49f8160c0606e054d47800a5a8e4f7a215f806"` [INFO] [stderr] Compiling syn v0.15.43 [INFO] [stderr] Compiling ucd-trie v0.1.2 [INFO] [stderr] Compiling unindent v0.1.3 [INFO] [stderr] Checking boolinator v2.4.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking filetime v0.2.6 [INFO] [stderr] Checking backtrace v0.3.34 [INFO] [stderr] Checking pest v2.1.1 [INFO] [stderr] Checking readfilez v0.1.3 [INFO] [stderr] Checking num-integer v0.1.41 [INFO] [stderr] Compiling pest_meta v2.1.1 [INFO] [stderr] Checking chrono v0.4.7 [INFO] [stderr] Compiling pest_generator v2.1.0 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.98 [INFO] [stderr] Compiling proc-macro-hack v0.5.8 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Compiling indoc-impl v0.3.3 [INFO] [stderr] Checking indoc v0.3.3 [INFO] [stderr] Checking serde v1.0.98 [INFO] [stderr] Checking serde_json v1.0.40 [INFO] [stderr] Checking hashbrown v0.5.0 [INFO] [stderr] Checking toml v0.5.1 [INFO] [stderr] Checking handlebars v2.0.1 [INFO] [stderr] Checking zspepperbrowsa v0.0.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `OpenOptions` [INFO] [stderr] --> src/main.rs:8:27 [INFO] [stderr] | [INFO] [stderr] 8 | use std::fs::{self, File, OpenOptions}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `OpenOptions` [INFO] [stderr] --> src/main.rs:8:27 [INFO] [stderr] | [INFO] [stderr] 8 | use std::fs::{self, File, OpenOptions}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0308]: try expression alternatives have incompatible types [INFO] [stderr] --> src/main.rs:154:40 [INFO] [stderr] | [INFO] [stderr] 154 | let mut metadata: ObjectMetadata = parse_toml_file(entname)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `ObjectMetadata`, found enum `toml::value::Value` [INFO] [stderr] | [INFO] [stderr] = note: expected type `ObjectMetadata` [INFO] [stderr] found type `toml::value::Value` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `std::borrow::Cow<'_, str>: std::convert::AsRef` is not satisfied [INFO] [stderr] --> src/main.rs:171:30 [INFO] [stderr] | [INFO] [stderr] 171 | let fmeta = fs::metadata(&entname)?; [INFO] [stderr] | ^^^^^^^^ the trait `std::convert::AsRef` is not implemented for `std::borrow::Cow<'_, str>` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] as std::convert::AsRef> [INFO] [stderr] as std::convert::AsRef> [INFO] [stderr] = note: required because of the requirements on the impl of `std::convert::AsRef` for `&std::borrow::Cow<'_, str>` [INFO] [stderr] [INFO] [stderr] error[E0308]: try expression alternatives have incompatible types [INFO] [stderr] --> src/main.rs:154:40 [INFO] [stderr] | [INFO] [stderr] 154 | let mut metadata: ObjectMetadata = parse_toml_file(entname)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `ObjectMetadata`, found enum `toml::value::Value` [INFO] [stderr] | [INFO] [stderr] = note: expected type `ObjectMetadata` [INFO] [stderr] found type `toml::value::Value` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `std::borrow::Cow<'_, str>: std::convert::AsRef` is not satisfied [INFO] [stderr] --> src/main.rs:171:30 [INFO] [stderr] | [INFO] [stderr] 171 | let fmeta = fs::metadata(&entname)?; [INFO] [stderr] | ^^^^^^^^ the trait `std::convert::AsRef` is not implemented for `std::borrow::Cow<'_, str>` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] as std::convert::AsRef> [INFO] [stderr] as std::convert::AsRef> [INFO] [stderr] = note: required because of the requirements on the impl of `std::convert::AsRef` for `&std::borrow::Cow<'_, str>` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `path` found for type `std::path::PathBuf` in the current scope [INFO] [stderr] --> src/main.rs:191:26 [INFO] [stderr] | [INFO] [stderr] 191 | let path = entry.path(); [INFO] [stderr] | ^^^^ method not found in `std::path::PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `startswith` found for type `&str` in the current scope [INFO] [stderr] --> src/main.rs:193:37 [INFO] [stderr] | [INFO] [stderr] 193 | if get_file_basename(&path).startswith(".") { [INFO] [stderr] | ^^^^^^^^^^ help: there is a method with a similar name: `starts_with` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `endswith` found for type `str` in the current scope [INFO] [stderr] --> src/main.rs:197:21 [INFO] [stderr] | [INFO] [stderr] 197 | if path.endswith(".toml") { [INFO] [stderr] | ^^^^^^^^ help: there is a method with a similar name: `ends_with` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `write_fmt` found for type `&mut std::fs::File` in the current scope [INFO] [stderr] --> src/main.rs:212:5 [INFO] [stderr] | [INFO] [stderr] 212 | write!(&mut fh, "{}", HB.render("page", &data).unwrap())?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut std::fs::File` [INFO] [stderr] | [INFO] [stderr] = note: the method `write_fmt` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&mut std::fs::File : std::fmt::Write` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Write; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `path` found for type `std::path::PathBuf` in the current scope [INFO] [stderr] --> src/main.rs:191:26 [INFO] [stderr] | [INFO] [stderr] 191 | let path = entry.path(); [INFO] [stderr] | ^^^^ method not found in `std::path::PathBuf` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `startswith` found for type `&str` in the current scope [INFO] [stderr] --> src/main.rs:193:37 [INFO] [stderr] | [INFO] [stderr] 193 | if get_file_basename(&path).startswith(".") { [INFO] [stderr] | ^^^^^^^^^^ help: there is a method with a similar name: `starts_with` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `endswith` found for type `str` in the current scope [INFO] [stderr] --> src/main.rs:197:21 [INFO] [stderr] | [INFO] [stderr] 197 | if path.endswith(".toml") { [INFO] [stderr] | ^^^^^^^^ help: there is a method with a similar name: `ends_with` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `write_fmt` found for type `&mut std::fs::File` in the current scope [INFO] [stderr] --> src/main.rs:212:5 [INFO] [stderr] | [INFO] [stderr] 212 | write!(&mut fh, "{}", HB.render("page", &data).unwrap())?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut std::fs::File` [INFO] [stderr] | [INFO] [stderr] = note: the method `write_fmt` exists but the following trait bounds were not satisfied: [INFO] [stderr] `&mut std::fs::File : std::fmt::Write` [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::Write; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:213:8 [INFO] [stderr] | [INFO] [stderr] 213 | Ok(Path::new(subdir).file_name().unwrap().to_str().unwrap()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `std::string::String`, found &str [INFO] [stderr] | help: try using a conversion method: `Path::new(subdir).file_name().unwrap().to_str().unwrap().to_string()` [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::string::String` [INFO] [stderr] found type `&str` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:213:8 [INFO] [stderr] | [INFO] [stderr] 213 | Ok(Path::new(subdir).file_name().unwrap().to_str().unwrap()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `std::string::String`, found &str [INFO] [stderr] | help: try using a conversion method: `Path::new(subdir).file_name().unwrap().to_str().unwrap().to_string()` [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::string::String` [INFO] [stderr] found type `&str` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:217:28 [INFO] [stderr] | [INFO] [stderr] 217 | let main_cfg: Config = parse_toml_file(".zspepperbrowsa.toml").expect("unable to read main config"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Config`, found enum `toml::value::Value` [INFO] [stderr] | [INFO] [stderr] = note: expected type `Config` [INFO] [stderr] found type `toml::value::Value` [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:217:28 [INFO] [stderr] | [INFO] [stderr] 217 | let main_cfg: Config = parse_toml_file(".zspepperbrowsa.toml").expect("unable to read main config"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Config`, found enum `toml::value::Value` [INFO] [stderr] | [INFO] [stderr] = note: expected type `Config` [INFO] [stderr] found type `toml::value::Value` [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `zspepperbrowsa`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `zspepperbrowsa`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "9553cec49968622bbb5df3a29d49f8160c0606e054d47800a5a8e4f7a215f806"` [INFO] running `"docker" "rm" "-f" "9553cec49968622bbb5df3a29d49f8160c0606e054d47800a5a8e4f7a215f806"` [INFO] [stdout] 9553cec49968622bbb5df3a29d49f8160c0606e054d47800a5a8e4f7a215f806