[INFO] cloning repository https://github.com/volundmush/forge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/volundmush/forge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolundmush%2Fforge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolundmush%2Fforge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0358ee2767336d03c2df4aec45dd7b9b9a151bf1 [INFO] testing volundmush/forge against master#552a959051cebf8f88a8f558399baf733bec9ce0 for pr-136932 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolundmush%2Fforge" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/volundmush/forge on toolchain 552a959051cebf8f88a8f558399baf733bec9ce0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/volundmush/forge [INFO] finished tweaking git repo https://github.com/volundmush/forge [INFO] tweaked toml for git repo https://github.com/volundmush/forge written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/volundmush/forge already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9eb5549b846681a345c923edadaf32ea348e3a89fd9317f7202418a839311aba [INFO] running `Command { std: "docker" "start" "-a" "9eb5549b846681a345c923edadaf32ea348e3a89fd9317f7202418a839311aba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9eb5549b846681a345c923edadaf32ea348e3a89fd9317f7202418a839311aba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9eb5549b846681a345c923edadaf32ea348e3a89fd9317f7202418a839311aba", kill_on_drop: false }` [INFO] [stdout] 9eb5549b846681a345c923edadaf32ea348e3a89fd9317f7202418a839311aba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+552a959051cebf8f88a8f558399baf733bec9ce0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e9927f739853e842ff3eca1482a7a42517edb2c1861356e615d02a038c8f79c [INFO] running `Command { std: "docker" "start" "-a" "1e9927f739853e842ff3eca1482a7a42517edb2c1861356e615d02a038c8f79c", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling forge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find macro `lazy_static` in this scope [INFO] [stdout] --> src/ansi.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | lazy_static! { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `lazy_static` is in scope, but it is a crate, not a macro [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use lazy_static::lazy_static; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `LinkedList` [INFO] [stdout] --> src/ansi.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{LinkedList, HashMap}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/ansi.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `AnsiMode: Clone` is not satisfied [INFO] [stdout] --> src/ansi.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Clone, Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 86 | pub ansi_fg_mode: AnsiMode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `AnsiMode` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `AnsiMode` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 55 + #[derive(Clone)] [INFO] [stdout] 56 | enum AnsiMode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `AnsiMode: Clone` is not satisfied [INFO] [stdout] --> src/ansi.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Clone, Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 87 | pub ansi_bg_mode: AnsiMode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `AnsiMode` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `AnsiMode` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 55 + #[derive(Clone)] [INFO] [stdout] 56 | enum AnsiMode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `AnsiMode` doesn't implement `Debug` [INFO] [stdout] --> src/ansi.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Clone, Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 86 | pub ansi_fg_mode: AnsiMode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `AnsiMode` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `AnsiMode` [INFO] [stdout] = note: add `#[derive(Debug)]` to `AnsiMode` or manually `impl Debug for AnsiMode` [INFO] [stdout] = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `AnsiMode` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 55 + #[derive(Debug)] [INFO] [stdout] 56 | enum AnsiMode { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for type parameter `impl Into` in the current scope [INFO] [stdout] --> src/ansi.rs:127:46 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn from_markup(src: impl Into) -> Result { [INFO] [stdout] | ----------------- method `len` not found for this type parameter [INFO] [stdout] ... [INFO] [stdout] 127 | let mut map = Vec::with_capacity(src.len()); [INFO] [stdout] | ^^^ method not found in `impl Into` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following traits define an item `len`, perhaps you need to restrict type parameter `impl Into` with one of them: [INFO] [stdout] | [INFO] [stdout] 124 | pub fn from_markup(src: impl Into + ExactSizeIterator) -> Result { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] 124 | pub fn from_markup(src: impl Into + Input) -> Result { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `String: From>` is not satisfied [INFO] [stdout] --> src/ansi.rs:130:28 [INFO] [stdout] | [INFO] [stdout] 130 | let mut original = String::from(src); [INFO] [stdout] | ^^^^^^ the trait `From>` is not implemented for `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the `Self` constructor can only be used with tuple or unit structs [INFO] [stdout] --> src/ansi.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | Self.setup_markup(m); [INFO] [stdout] | ^^^^ help: use curly brackets: `Self { /* fields */ }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ansi.rs:222:77 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn from_codes(codes: impl Into, text: impl Into) -> Result { [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ansi.rs:226:21 [INFO] [stdout] | [INFO] [stdout] 226 | fn setup_markup(&mut m: Markup) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ ------ expected due to this [INFO] [stdout] | | [INFO] [stdout] | expected `Markup`, found `&mut _` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Markup` [INFO] [stdout] found mutable reference `&mut _` [INFO] [stdout] note: to declare a mutable parameter use: `mut m` [INFO] [stdout] --> src/ansi.rs:226:21 [INFO] [stdout] | [INFO] [stdout] 226 | fn setup_markup(&mut m: Markup) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: to take parameter `m` by reference, move `&mut` to the type [INFO] [stdout] | [INFO] [stdout] 226 - fn setup_markup(&mut m: Markup) -> Result<(), String> { [INFO] [stdout] 226 + fn setup_markup(m: &mut Markup) -> Result<(), String> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ansi.rs:241:29 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn encode(&self) -> String { [INFO] [stdout] | ------ ^^^^^^ expected `String`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ansi.rs:245:72 [INFO] [stdout] | [INFO] [stdout] 245 | pub fn render_telnet(&self, ansi: bool, xterm: bool, mxp: bool) -> String { [INFO] [stdout] | ------------- ^^^^^^ expected `String`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `forge` (lib) due to 11 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "1e9927f739853e842ff3eca1482a7a42517edb2c1861356e615d02a038c8f79c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e9927f739853e842ff3eca1482a7a42517edb2c1861356e615d02a038c8f79c", kill_on_drop: false }` [INFO] [stdout] 1e9927f739853e842ff3eca1482a7a42517edb2c1861356e615d02a038c8f79c