[INFO] cloning repository https://github.com/49KD/otus-toy-smart-house
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/49KD/otus-toy-smart-house" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F49KD%2Fotus-toy-smart-house", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F49KD%2Fotus-toy-smart-house'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 4f1b7304958b94b43e0247b20af55840ef556d1e
[INFO] checking 49KD/otus-toy-smart-house against master#a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb for pr-151109
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F49KD%2Fotus-toy-smart-house" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/49KD/otus-toy-smart-house
[INFO] finished tweaking git repo https://github.com/49KD/otus-toy-smart-house
[INFO] tweaked toml for git repo https://github.com/49KD/otus-toy-smart-house written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/49KD/otus-toy-smart-house on toolchain a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/49KD/otus-toy-smart-house 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" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] af9c6a1a0133eb0579b87e8f35d981aca8b76b8dec866b481224bc693c914f4b
[INFO] running `Command { std: "docker" "start" "-a" "af9c6a1a0133eb0579b87e8f35d981aca8b76b8dec866b481224bc693c914f4b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "af9c6a1a0133eb0579b87e8f35d981aca8b76b8dec866b481224bc693c914f4b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "af9c6a1a0133eb0579b87e8f35d981aca8b76b8dec866b481224bc693c914f4b", kill_on_drop: false }`
[INFO] [stdout] af9c6a1a0133eb0579b87e8f35d981aca8b76b8dec866b481224bc693c914f4b
[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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c7f58d9394781d8a31285eb527dc1538fafd2aacbaa5791e4a194c06d9721c74
[INFO] running `Command { std: "docker" "start" "-a" "c7f58d9394781d8a31285eb527dc1538fafd2aacbaa5791e4a194c06d9721c74", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.176
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling zerocopy v0.8.27
[INFO] [stderr]     Checking cfg-if v1.0.3
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]     Checking socket2 v0.6.1
[INFO] [stderr]     Checking mio v1.1.0
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]     Checking tokio v1.48.0
[INFO] [stderr]     Checking toy_smart_home v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0053]: method `state_str` has an incompatible type for trait
[INFO] [stdout]    --> src/devices/socket.rs:102:28
[INFO] [stdout]     |
[INFO] [stdout] 102 |     fn state_str(&self) -> Result<String, Box<dyn Error>> {
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Result<String, Box<dyn Error>>`
[INFO] [stdout]     |
[INFO] [stdout] note: type in trait
[INFO] [stdout]    --> src/state.rs:2:28
[INFO] [stdout]     |
[INFO] [stdout]   2 |     fn state_str(&self) -> String;
[INFO] [stdout]     |                            ^^^^^^
[INFO] [stdout]     = note: expected signature `fn(&Socket) -> String`
[INFO] [stdout]                found signature `fn(&Socket) -> Result<String, Box<(dyn std::error::Error + 'static)>>`
[INFO] [stdout] help: change the output type to match the trait
[INFO] [stdout]     |
[INFO] [stdout] 102 -     fn state_str(&self) -> Result<String, Box<dyn Error>> {
[INFO] [stdout] 102 +     fn state_str(&self) -> String {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0053]: method `state_str` has an incompatible type for trait
[INFO] [stdout]    --> src/devices/socket.rs:102:28
[INFO] [stdout]     |
[INFO] [stdout] 102 |     fn state_str(&self) -> Result<String, Box<dyn Error>> {
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Result<String, Box<dyn Error>>`
[INFO] [stdout]     |
[INFO] [stdout] note: type in trait
[INFO] [stdout]    --> src/state.rs:2:28
[INFO] [stdout]     |
[INFO] [stdout]   2 |     fn state_str(&self) -> String;
[INFO] [stdout]     |                            ^^^^^^
[INFO] [stdout]     = note: expected signature `fn(&Socket) -> String`
[INFO] [stdout]                found signature `fn(&Socket) -> Result<String, Box<(dyn std::error::Error + 'static)>>`
[INFO] [stdout] help: change the output type to match the trait
[INFO] [stdout]     |
[INFO] [stdout] 102 -     fn state_str(&self) -> Result<String, Box<dyn Error>> {
[INFO] [stdout] 102 +     fn state_str(&self) -> String {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]    --> src/devices.rs:49:21
[INFO] [stdout]     |
[INFO] [stdout]  49 |         let mut s = super::Socket::new(8, true);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ - expected `String`, found integer
[INFO] [stdout]     |
[INFO] [stdout] note: expected `Box<dyn SocketBackend>`, found `bool`
[INFO] [stdout]    --> src/devices.rs:49:43
[INFO] [stdout]     |
[INFO] [stdout]  49 |         let mut s = super::Socket::new(8, true);
[INFO] [stdout]     |                                           ^^^^
[INFO] [stdout]     = note: expected struct `Box<(dyn SocketBackend + 'static)>`
[INFO] [stdout]                  found type `bool`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> src/devices/socket.rs:113:12
[INFO] [stdout]     |
[INFO] [stdout] 113 |     pub fn new(name: String, backend: Box<dyn SocketBackend>) -> Self {
[INFO] [stdout]     |            ^^^ ------------  -------------------------------
[INFO] [stdout] help: try using a conversion method
[INFO] [stdout]     |
[INFO] [stdout]  49 |         let mut s = super::Socket::new(8.to_string(), true);
[INFO] [stdout]     |                                         ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `power` on type `Socket`
[INFO] [stdout]   --> src/devices.rs:50:22
[INFO] [stdout]    |
[INFO] [stdout] 50 |         assert_eq!(s.power, 8);
[INFO] [stdout]    |                      ^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available field is: `name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `power` on type `Socket`
[INFO] [stdout]   --> src/devices.rs:53:22
[INFO] [stdout]    |
[INFO] [stdout] 53 |         assert_eq!(s.power, 0);
[INFO] [stdout]    |                      ^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available field is: `name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `power` on type `Socket`
[INFO] [stdout]   --> src/devices.rs:56:63
[INFO] [stdout]    |
[INFO] [stdout] 56 |         assert!(super::socket::SOCKET_POWER_RANGE.contains(&s.power));
[INFO] [stdout]    |                                                               ^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available field is: `name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]    --> src/devices.rs:61:17
[INFO] [stdout]     |
[INFO] [stdout]  61 |         let s = super::Socket::new(8, true);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ - expected `String`, found integer
[INFO] [stdout]     |
[INFO] [stdout] note: expected `Box<dyn SocketBackend>`, found `bool`
[INFO] [stdout]    --> src/devices.rs:61:39
[INFO] [stdout]     |
[INFO] [stdout]  61 |         let s = super::Socket::new(8, true);
[INFO] [stdout]     |                                       ^^^^
[INFO] [stdout]     = note: expected struct `Box<(dyn SocketBackend + 'static)>`
[INFO] [stdout]                  found type `bool`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> src/devices/socket.rs:113:12
[INFO] [stdout]     |
[INFO] [stdout] 113 |     pub fn new(name: String, backend: Box<dyn SocketBackend>) -> Self {
[INFO] [stdout]     |            ^^^ ------------  -------------------------------
[INFO] [stdout] help: try using a conversion method
[INFO] [stdout]     |
[INFO] [stdout]  61 |         let s = super::Socket::new(8.to_string(), true);
[INFO] [stdout]     |                                     ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0053`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]    --> src/test_utils.rs:13:25
[INFO] [stdout]     |
[INFO] [stdout]  13 |     SmartDevice::Socket(Socket::new(8, true))
[INFO] [stdout]     |                         ^^^^^^^^^^^ - expected `String`, found integer
[INFO] [stdout]     |
[INFO] [stdout] note: expected `Box<dyn SocketBackend>`, found `bool`
[INFO] [stdout]    --> src/test_utils.rs:13:40
[INFO] [stdout]     |
[INFO] [stdout]  13 |     SmartDevice::Socket(Socket::new(8, true))
[INFO] [stdout]     |                                        ^^^^
[INFO] [stdout]     = note: expected struct `Box<(dyn SocketBackend + 'static)>`
[INFO] [stdout]                  found type `bool`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> src/devices/socket.rs:113:12
[INFO] [stdout]     |
[INFO] [stdout] 113 |     pub fn new(name: String, backend: Box<dyn SocketBackend>) -> Self {
[INFO] [stdout]     |            ^^^ ------------  -------------------------------
[INFO] [stdout] help: try using a conversion method
[INFO] [stdout]     |
[INFO] [stdout]  13 |     SmartDevice::Socket(Socket::new(8.to_string(), true))
[INFO] [stdout]     |                                      ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0053, E0308, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0053`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `toy_smart_home` (lib) due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `toy_smart_home` (lib test) due to 7 previous errors
[INFO] running `Command { std: "docker" "inspect" "c7f58d9394781d8a31285eb527dc1538fafd2aacbaa5791e4a194c06d9721c74", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c7f58d9394781d8a31285eb527dc1538fafd2aacbaa5791e4a194c06d9721c74", kill_on_drop: false }`
[INFO] [stdout] c7f58d9394781d8a31285eb527dc1538fafd2aacbaa5791e4a194c06d9721c74
