[INFO] fetching crate toolstr_colored 2.1.1... [INFO] testing toolstr_colored-2.1.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate toolstr_colored 2.1.1 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate toolstr_colored 2.1.1 [INFO] finished tweaking crates.io crate toolstr_colored 2.1.1 [INFO] tweaked toml for crates.io crate toolstr_colored 2.1.1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate toolstr_colored 2.1.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate toolstr_colored 2.1.1 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rspec v1.0.0-beta.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a84dae04d5168dbba0eceea695cccbc8bca98203df087b3048530bdd3dcba423 [INFO] running `Command { std: "docker" "start" "-a" "a84dae04d5168dbba0eceea695cccbc8bca98203df087b3048530bdd3dcba423", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a84dae04d5168dbba0eceea695cccbc8bca98203df087b3048530bdd3dcba423", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a84dae04d5168dbba0eceea695cccbc8bca98203df087b3048530bdd3dcba423", kill_on_drop: false }` [INFO] [stdout] a84dae04d5168dbba0eceea695cccbc8bca98203df087b3048530bdd3dcba423 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d6892e2af7b04df8f21380a8ae92392673ff0a8e657bbd1e6423420e84207c81 [INFO] running `Command { std: "docker" "start" "-a" "d6892e2af7b04df8f21380a8ae92392673ff0a8e657bbd1e6423420e84207c81", kill_on_drop: false }` [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling toolstr_colored v2.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/style.rs:245:34 [INFO] [stdout] | [INFO] [stdout] 245 | .filter(|&(mask, _)| (0 != (u & mask))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - .filter(|&(mask, _)| (0 != (u & mask))) [INFO] [stdout] 245 + .filter(|&(mask, _)| 0 != (u & mask)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:536:37 [INFO] [stdout] | [INFO] [stdout] 536 | fn escape_inner_reset_sequences(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 536 | fn escape_inner_reset_sequences(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `Command { std: "docker" "inspect" "d6892e2af7b04df8f21380a8ae92392673ff0a8e657bbd1e6423420e84207c81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6892e2af7b04df8f21380a8ae92392673ff0a8e657bbd1e6423420e84207c81", kill_on_drop: false }` [INFO] [stdout] d6892e2af7b04df8f21380a8ae92392673ff0a8e657bbd1e6423420e84207c81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d6fcb53c6280902033621a38c8e043f438dc94d05684b6db645cbe5b9a0260b [INFO] running `Command { std: "docker" "start" "-a" "0d6fcb53c6280902033621a38c8e043f438dc94d05684b6db645cbe5b9a0260b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling similar v2.3.0 [INFO] [stderr] Compiling rspec v1.0.0-beta.3 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/style.rs:245:34 [INFO] [stdout] | [INFO] [stdout] 245 | .filter(|&(mask, _)| (0 != (u & mask))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - .filter(|&(mask, _)| (0 != (u & mask))) [INFO] [stdout] 245 + .filter(|&(mask, _)| 0 != (u & mask)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:536:37 [INFO] [stdout] | [INFO] [stdout] 536 | fn escape_inner_reset_sequences(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 536 | fn escape_inner_reset_sequences(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling console v0.15.7 [INFO] [stderr] Compiling insta v1.34.0 [INFO] [stderr] Compiling toolstr_colored v2.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `colored` [INFO] [stdout] --> examples/control.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate colored; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `colored` [INFO] [stdout] --> examples/custom_colors.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use colored::*; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `colored` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `colored`, use `cargo add colored` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `yellow` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/control.rs:45:35 [INFO] [stdout] | [INFO] [stdout] 45 | println!("{}", "some warning".yellow()); [INFO] [stdout] | ^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `colored` [INFO] [stdout] --> examples/dynamic_colors.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate colored; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `yellow` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/control.rs:48:35 [INFO] [stdout] | [INFO] [stdout] 48 | println!("{}", "some warning".yellow()); [INFO] [stdout] | ^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `colored` [INFO] [stdout] --> tests/ansi_term_compat.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate colored; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `yellow` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/control.rs:51:35 [INFO] [stdout] | [INFO] [stdout] 51 | println!("{}", "some warning".yellow()); [INFO] [stdout] | ^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `super::ansi_term`, `super::colored`, `super::ansi_term`, `super::colored`, `super::ansi_term`, `super::colored`, `super::ansi_term`, `super::colored` [INFO] [stdout] --> tests/ansi_term_compat.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use super::ansi_term; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 52 | use super::ansi_term::*; [INFO] [stdout] 53 | use super::colored; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | use super::ansi_term; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 83 | use super::ansi_term::*; [INFO] [stdout] 84 | use super::colored; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | use super::ansi_term; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 99 | use super::ansi_term::*; [INFO] [stdout] 100 | use super::colored; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | use super::ansi_term; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 126 | use super::ansi_term::*; [INFO] [stdout] 127 | use super::colored; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `colored` [INFO] [stdout] --> examples/nested_colors.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate colored; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `colored` [INFO] [stdout] --> examples/most_simple.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate colored; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `colored` [INFO] [stdout] --> examples/as_error.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate colored; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `toolstr_colored` (example "control") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `bold` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/nested_colors.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let world = "world".bold(); [INFO] [stdout] | ^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> examples/dynamic_colors.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | "red string".color(color_res.unwrap_or(Color::Red)); [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use ansi_term::Color; [INFO] [stdout] | [INFO] [stdout] 2 + use toolstr_colored::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `green` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | "it".green(), [INFO] [stdout] | ^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `blue` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | "works".blue().bold(), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `le` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/cmp.rs:1405:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `color` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/dynamic_colors.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | "blue string yo".color("blue"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Colorize` which provides `color` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use toolstr_colored::Colorize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `on_color` with a similar name [INFO] [stdout] | [INFO] [stdout] 6 | "blue string yo".on_color("blue"); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `custom_color` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/custom_colors.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}", "Greetings from Ukraine".custom_color(my_color)); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Colorize` which provides `custom_color` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use toolstr_colored::Colorize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `on_custom_color` with a similar name [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}", "Greetings from Ukraine".on_custom_color(my_color)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `color` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/dynamic_colors.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | "white string".color("zorglub"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Colorize` which provides `color` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use toolstr_colored::Colorize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `on_color` with a similar name [INFO] [stdout] | [INFO] [stdout] 9 | "white string".on_color("zorglub"); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `color` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/dynamic_colors.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | "red string".color(color_res.unwrap_or(Color::Red)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Colorize` which provides `color` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use toolstr_colored::Colorize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `on_color` with a similar name [INFO] [stdout] | [INFO] [stdout] 13 | "red string".on_color(color_res.unwrap_or(Color::Red)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bold` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | "great".bold().yellow() [INFO] [stdout] | ^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_custom_color` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/custom_colors.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | println!("{}", "Slava Ukraini!".on_custom_color(my_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Colorize` which provides `on_custom_color` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use toolstr_colored::Colorize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `custom_color` with a similar name [INFO] [stdout] | [INFO] [stdout] 5 - println!("{}", "Slava Ukraini!".on_custom_color(my_color)); [INFO] [stdout] 5 + println!("{}", "Slava Ukraini!".custom_color(my_color)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `red` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/as_error.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | Err("ERROR".red())? [INFO] [stdout] | ^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `red` found for struct `String` in the current scope [INFO] [stdout] --> examples/nested_colors.rs:14:60 [INFO] [stdout] | [INFO] [stdout] 14 | let hello_world = format!("Hello, {}!lalalala", world).red(); [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `black` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 27 | test_simple_color!("test string", black, Black); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_custom_color` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/custom_colors.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | println!("{}", "Hello World!".on_custom_color((0, 120, 120))); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Colorize` which provides `on_custom_color` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use toolstr_colored::Colorize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `custom_color` with a similar name [INFO] [stdout] | [INFO] [stdout] 6 - println!("{}", "Hello World!".on_custom_color((0, 120, 120))); [INFO] [stdout] 6 + println!("{}", "Hello World!".custom_color((0, 120, 120))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `toolstr_colored` (example "dynamic_colors") due to 5 previous errors [INFO] [stdout] error[E0599]: no method named `green` found for struct `String` in the current scope [INFO] [stdout] --> examples/most_simple.rs:14:53 [INFO] [stdout] | [INFO] [stdout] 14 | println!("{}", String::from("this also works!").green().bold()); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `red` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | s.push_str(&"why not ".red().to_string()); [INFO] [stdout] | ^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `blue` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | s.push_str(&"push things ".blue().to_string()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `le` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/cmp.rs:1405:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `green` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 19 | s.push_str(&"a little further ?".green().to_string()); [INFO] [stdout] | ^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `toolstr_colored` (example "as_error") due to 2 previous errors [INFO] [stdout] error[E0599]: no method named `red` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 22 | let s = format!("{} {} {}", "this".red(), "is".blue(), "easier".green()); [INFO] [stdout] | ^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `toolstr_colored` (example "nested_colors") due to 3 previous errors [INFO] [stdout] error[E0599]: no method named `red` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:28:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 28 | test_simple_color!("test string", red, Red); [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `blue` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | let s = format!("{} {} {}", "this".red(), "is".blue(), "easier".green()); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `le` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/cmp.rs:1405:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/style.rs:245:34 [INFO] [stdout] | [INFO] [stdout] 245 | .filter(|&(mask, _)| (0 != (u & mask))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 245 - .filter(|&(mask, _)| (0 != (u & mask))) [INFO] [stdout] 245 + .filter(|&(mask, _)| 0 != (u & mask)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `toolstr_colored` (example "custom_colors") due to 4 previous errors [INFO] [stdout] error[E0599]: no method named `green` found for reference `&'static str` in the current scope [INFO] [stdout] --> examples/most_simple.rs:22:69 [INFO] [stdout] | [INFO] [stdout] 22 | let s = format!("{} {} {}", "this".red(), "is".blue(), "easier".green()); [INFO] [stdout] | ^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `green` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:29:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 29 | test_simple_color!("test string", green, Green); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `yellow` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:30:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 30 | test_simple_color!("test string", yellow, Yellow); [INFO] [stdout] | ^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `blue` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:31:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 31 | test_simple_color!("test string", blue, Blue); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `le` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/cmp.rs:1405:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `magenta` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:32:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 32 | test_simple_color!("test string", magenta, Purple); [INFO] [stdout] | ^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `toolstr_colored` (example "most_simple") due to 11 previous errors [INFO] [stdout] error[E0599]: no method named `cyan` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:33:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 33 | test_simple_color!("test string", cyan, Cyan); [INFO] [stdout] | ^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `white` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 34 | test_simple_color!("test string", white, White); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bold` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:56:39 [INFO] [stdout] | [INFO] [stdout] 40 | fn $style() { [INFO] [stdout] | ------ due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 56 | test_simple_style!("test string", bold); [INFO] [stdout] | ^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `dimmed` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:57:39 [INFO] [stdout] | [INFO] [stdout] 40 | fn $style() { [INFO] [stdout] | ------ due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 57 | test_simple_style!("test string", dimmed); [INFO] [stdout] | ^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `italic` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:58:39 [INFO] [stdout] | [INFO] [stdout] 40 | fn $style() { [INFO] [stdout] | ------ due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 58 | test_simple_style!("test string", italic); [INFO] [stdout] | ^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `underline` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:59:39 [INFO] [stdout] | [INFO] [stdout] 40 | fn $style() { [INFO] [stdout] | ------ due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 59 | test_simple_style!("test string", underline); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `drain` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/string.rs:1969:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `blink` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:60:39 [INFO] [stdout] | [INFO] [stdout] 40 | fn $style() { [INFO] [stdout] | ------ due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 60 | test_simple_style!("test string", blink); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `reverse` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 40 | fn $style() { [INFO] [stdout] | ------ due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 61 | test_simple_style!("test string", reverse); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `reserve` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/string.rs:1213:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hidden` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:62:39 [INFO] [stdout] | [INFO] [stdout] 40 | fn $style() { [INFO] [stdout] | ------ due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 62 | test_simple_style!("test string", hidden); [INFO] [stdout] | ^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_black` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:87:41 [INFO] [stdout] | [INFO] [stdout] 68 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 87 | test_simple_bgcolor!("test string", on_black, Black); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_red` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 68 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 88 | test_simple_bgcolor!("test string", on_red, Red); [INFO] [stdout] | ^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_green` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:89:41 [INFO] [stdout] | [INFO] [stdout] 68 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 89 | test_simple_bgcolor!("test string", on_green, Green); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_yellow` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:90:41 [INFO] [stdout] | [INFO] [stdout] 68 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 90 | test_simple_bgcolor!("test string", on_yellow, Yellow); [INFO] [stdout] | ^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_blue` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:91:41 [INFO] [stdout] | [INFO] [stdout] 68 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 91 | test_simple_bgcolor!("test string", on_blue, Blue); [INFO] [stdout] | ^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `toolstr_colored` (test "ansi_term_compat") due to 29 previous errors [INFO] [stdout] error[E0599]: no method named `on_magenta` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:92:41 [INFO] [stdout] | [INFO] [stdout] 68 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 92 | test_simple_bgcolor!("test string", on_magenta, Purple); [INFO] [stdout] | ^^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_cyan` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:93:41 [INFO] [stdout] | [INFO] [stdout] 68 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 93 | test_simple_bgcolor!("test string", on_cyan, Cyan); [INFO] [stdout] | ^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `on_white` found for struct `String` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:94:41 [INFO] [stdout] | [INFO] [stdout] 68 | fn $colored_name() { [INFO] [stdout] | ------------- due to this macro variable [INFO] [stdout] ... [INFO] [stdout] 94 | test_simple_bgcolor!("test string", on_white, White); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `red` found for reference `&str` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | s.red().bold().italic().on_black().to_string() [INFO] [stdout] | ^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `green` found for reference `&str` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:119:15 [INFO] [stdout] | [INFO] [stdout] 119 | s.green().on_yellow().underline().to_string() [INFO] [stdout] | ^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `red` found for reference `&str` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:134:40 [INFO] [stdout] | [INFO] [stdout] 134 | assert_eq!(ansi.to_string(), s.red().on_blue().to_string()); [INFO] [stdout] | ^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `green` found for reference `&str` in the current scope [INFO] [stdout] --> tests/ansi_term_compat.rs:143:15 [INFO] [stdout] | [INFO] [stdout] 143 | s.green().on_yellow().green().on_yellow().to_string() [INFO] [stdout] | ^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:536:37 [INFO] [stdout] | [INFO] [stdout] 536 | fn escape_inner_reset_sequences(&self) -> Cow { [INFO] [stdout] | ^^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 536 | fn escape_inner_reset_sequences(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0d6fcb53c6280902033621a38c8e043f438dc94d05684b6db645cbe5b9a0260b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d6fcb53c6280902033621a38c8e043f438dc94d05684b6db645cbe5b9a0260b", kill_on_drop: false }` [INFO] [stdout] 0d6fcb53c6280902033621a38c8e043f438dc94d05684b6db645cbe5b9a0260b