[INFO] cloning repository https://github.com/lennikorhonen/rust_keyval_storage [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lennikorhonen/rust_keyval_storage" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flennikorhonen%2Frust_keyval_storage", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flennikorhonen%2Frust_keyval_storage'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a63428e476cda6d1af6e3f7aeef06af7669099fa [INFO] checking lennikorhonen/rust_keyval_storage against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flennikorhonen%2Frust_keyval_storage" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lennikorhonen/rust_keyval_storage [INFO] finished tweaking git repo https://github.com/lennikorhonen/rust_keyval_storage [INFO] tweaked toml for git repo https://github.com/lennikorhonen/rust_keyval_storage written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lennikorhonen/rust_keyval_storage on toolchain 87f2ecc56b5f6032b075c8934ebc77f28d57183c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lennikorhonen/rust_keyval_storage 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" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6972bd1af20243048cd513a726647a66c627f74748144a1ede0bcf90606129a1 [INFO] running `Command { std: "docker" "start" "-a" "6972bd1af20243048cd513a726647a66c627f74748144a1ede0bcf90606129a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6972bd1af20243048cd513a726647a66c627f74748144a1ede0bcf90606129a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6972bd1af20243048cd513a726647a66c627f74748144a1ede0bcf90606129a1", kill_on_drop: false }` [INFO] [stdout] 6972bd1af20243048cd513a726647a66c627f74748144a1ede0bcf90606129a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c93856bbc968a0bcbfaee28708e787278b7d38fde655197f4fdea67a7273c408 [INFO] running `Command { std: "docker" "start" "-a" "c93856bbc968a0bcbfaee28708e787278b7d38fde655197f4fdea67a7273c408", kill_on_drop: false }` [INFO] [stderr] Checking key_val_storage v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: `Value` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | println!("{:?}", storage); [INFO] [stdout] | ---- ^^^^^^^ `Value` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Value` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Value` or manually `impl Debug for Value` [INFO] [stdout] help: the trait `Debug` is implemented for `HashMap` [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/std/src/collections/hash/map.rs:1344:0 [INFO] [stdout] = note: required for `HashMap` to implement `Debug` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `&mut HashMap` to implement `Debug` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Value` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Debug)] [INFO] [stdout] 18 | pub enum Value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Value` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | println!("{:?}", storage); [INFO] [stdout] | ---- ^^^^^^^ `Value` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Value` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Value` or manually `impl Debug for Value` [INFO] [stdout] help: the trait `Debug` is implemented for `HashMap` [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/std/src/collections/hash/map.rs:1344:0 [INFO] [stdout] = note: required for `HashMap` to implement `Debug` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `&mut HashMap` to implement `Debug` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Value` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Debug)] [INFO] [stdout] 18 | pub enum Value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 96 | fn delete_by_key(storage: &mut HashMap, key: String) -> std::option::Option { [INFO] [stdout] | -------------------------- expected `Option` because of return type [INFO] [stdout] ... [INFO] [stdout] 99 | removed_value.clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `&Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found reference `&Option<_>` [INFO] [stdout] note: `Option` does not implement `Clone`, so `&Option` was cloned instead [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | removed_value.clone() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = help: `Clone` is not implemented because the trait bound `Value: Clone` is not satisfied [INFO] [stdout] help: consider annotating `Value` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Clone)] [INFO] [stdout] 18 | pub enum Value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 96 | fn delete_by_key(storage: &mut HashMap, key: String) -> std::option::Option { [INFO] [stdout] | -------------------------- expected `Option` because of return type [INFO] [stdout] ... [INFO] [stdout] 99 | removed_value.clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `&Option` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found reference `&Option<_>` [INFO] [stdout] note: `Option` does not implement `Clone`, so `&Option` was cloned instead [INFO] [stdout] --> src/main.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | removed_value.clone() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = help: `Clone` is not implemented because the trait bound `Value: Clone` is not satisfied [INFO] [stdout] help: consider annotating `Value` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Clone)] [INFO] [stdout] 18 | pub enum Value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Value` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:114:30 [INFO] [stdout] | [INFO] [stdout] 114 | println!("{:?}", get_by_key(storage, params.to_string()).unwrap()); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Value` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Value` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Value` or manually `impl Debug for Value` [INFO] [stdout] = note: required for `&Value` to implement `Debug` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Value` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Debug)] [INFO] [stdout] 18 | pub enum Value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Value` doesn't implement `Debug` [INFO] [stdout] --> src/main.rs:114:30 [INFO] [stdout] | [INFO] [stdout] 114 | println!("{:?}", get_by_key(storage, params.to_string()).unwrap()); [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Value` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Value` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Value` or manually `impl Debug for Value` [INFO] [stdout] = note: required for `&Value` to implement `Debug` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Value` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Debug)] [INFO] [stdout] 18 | pub enum Value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_digit` found for reference `&str` in the current scope [INFO] [stdout] --> src/main.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | if value.is_digit(10) { [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_digit` found for reference `&str` in the current scope [INFO] [stdout] --> src/main.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | if value.is_digit(10) { [INFO] [stdout] | ^^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Value` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/main.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | println!("{:}", delete_by_key(storage, params.to_string()).as_ref().unwrap()); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Value` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `Value` [INFO] [stdout] --> src/main.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required for `&Value` to implement `std::fmt::Display` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Value` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/main.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | println!("{:}", delete_by_key(storage, params.to_string()).as_ref().unwrap()); [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Value` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `Value` [INFO] [stdout] --> src/main.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: required for `&Value` to implement `std::fmt::Display` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [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] [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 `key_val_storage` (bin "key_val_storage" test) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `key_val_storage` (bin "key_val_storage") due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "c93856bbc968a0bcbfaee28708e787278b7d38fde655197f4fdea67a7273c408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c93856bbc968a0bcbfaee28708e787278b7d38fde655197f4fdea67a7273c408", kill_on_drop: false }` [INFO] [stdout] c93856bbc968a0bcbfaee28708e787278b7d38fde655197f4fdea67a7273c408