[INFO] fetching crate led 0.3.1... [INFO] testing led-0.3.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate led 0.3.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate led 0.3.1 [INFO] finished tweaking crates.io crate led 0.3.1 [INFO] tweaked toml for crates.io crate led 0.3.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate led 0.3.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88be7d7594cd7ccf210160ee72b6183f356c5176953704ccc68f581dafb421b0 [INFO] running `Command { std: "docker" "start" "-a" "88be7d7594cd7ccf210160ee72b6183f356c5176953704ccc68f581dafb421b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88be7d7594cd7ccf210160ee72b6183f356c5176953704ccc68f581dafb421b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88be7d7594cd7ccf210160ee72b6183f356c5176953704ccc68f581dafb421b0", kill_on_drop: false }` [INFO] [stdout] 88be7d7594cd7ccf210160ee72b6183f356c5176953704ccc68f581dafb421b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3b18ae494b9870e79112b05fd6f26e12af14444d0bda655d1c8fe83e4fb0fc4d [INFO] running `Command { std: "docker" "start" "-a" "3b18ae494b9870e79112b05fd6f26e12af14444d0bda655d1c8fe83e4fb0fc4d", kill_on_drop: false }` [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling led v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "3b18ae494b9870e79112b05fd6f26e12af14444d0bda655d1c8fe83e4fb0fc4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b18ae494b9870e79112b05fd6f26e12af14444d0bda655d1c8fe83e4fb0fc4d", kill_on_drop: false }` [INFO] [stdout] 3b18ae494b9870e79112b05fd6f26e12af14444d0bda655d1c8fe83e4fb0fc4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e44e27cee5c2de75ad8aa7758b976c8324ffb4b39541a0a2bb83292437a9a08 [INFO] running `Command { std: "docker" "start" "-a" "3e44e27cee5c2de75ad8aa7758b976c8324ffb4b39541a0a2bb83292437a9a08", kill_on_drop: false }` [INFO] [stderr] Compiling led v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.98s [INFO] running `Command { std: "docker" "inspect" "3e44e27cee5c2de75ad8aa7758b976c8324ffb4b39541a0a2bb83292437a9a08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e44e27cee5c2de75ad8aa7758b976c8324ffb4b39541a0a2bb83292437a9a08", kill_on_drop: false }` [INFO] [stdout] 3e44e27cee5c2de75ad8aa7758b976c8324ffb4b39541a0a2bb83292437a9a08 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6b75e3287836f81ce54bcd1a43d791ae06fe121e6ff015b2fbc875625fe2835d [INFO] running `Command { std: "docker" "start" "-a" "6b75e3287836f81ce54bcd1a43d791ae06fe121e6ff015b2fbc875625fe2835d", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/led-de37d44c3f296703) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests led [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/rgb.rs - rgb (line 21) ... FAILED [INFO] [stdout] test src/rgb.rs - rgb::CommonAnode (line 255) ... FAILED [INFO] [stdout] test src/mono.rs - mono::Monocolor (line 88) ... FAILED [INFO] [stdout] test src/mono.rs - mono (line 45) ... FAILED [INFO] [stdout] test src/rgb.rs - rgb::RGB (line 108) ... FAILED [INFO] [stdout] test src/mono.rs - mono (line 21) ... FAILED [INFO] [stdout] test src/rgb.rs - rgb::CommonCathode (line 285) ... FAILED [INFO] [stdout] test src/mono.rs - mono::CommonAnode (line 188) ... FAILED [INFO] [stdout] test src/mono.rs - mono::CommonCathode (line 218) ... FAILED [INFO] [stdout] test src/rgb.rs - rgb (line 47) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/rgb.rs - rgb (line 21) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rgb.rs - rgb::CommonAnode (line 255) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:261:1 [INFO] [stdout] | [INFO] [stdout] 261 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied [INFO] [stdout] --> src/rgb.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | ^^^ ----------- - - - supplied 4 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 5 generic parameters: `C`, `R`, `G`, `B`, `E` [INFO] [stdout] --> /opt/rustwide/workdir/src/rgb.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct LED [INFO] [stdout] | ^^^ - - - - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 276 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono::Monocolor (line 88) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mono.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | let mut leds: [&mut RGB; 2] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | let mut leds: [&mut dyn RGB; 2] = [ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/mono.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | led.set(Color::Red) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0282. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono (line 45) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `led::monocolor` [INFO] [stdout] --> src/mono.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | use led::monocolor::{CommonAnodeLED, CommonCathodeLED, Monocolor}; [INFO] [stdout] | ^^^^^^^^^ could not find `monocolor` in `led` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `State` [INFO] [stdout] --> src/mono.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | led.set(State::On) [INFO] [stdout] | ^^^^^ use of undeclared type `State` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 44 + use led::mono::State; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/mono.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | led.set(State::On) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0282, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rgb.rs - rgb::RGB (line 108) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rgb.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | let mut leds: [&mut RGB; 2] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 132 | let mut leds: [&mut dyn RGB; 2] = [ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/rgb.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | led.set(Color::Red) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0282. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono (line 21) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `led::monocolor` [INFO] [stdout] --> src/mono.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | use led::monocolor::CommonAnodeLED; [INFO] [stdout] | ^^^^^^^^^ could not find `monocolor` in `led` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `State` [INFO] [stdout] --> src/mono.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | led.set(State::On); [INFO] [stdout] | ^^^^^ use of undeclared type `State` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 20 + use led::mono::State; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rgb.rs - rgb::CommonCathode (line 285) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:291:1 [INFO] [stdout] | [INFO] [stdout] 291 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied [INFO] [stdout] --> src/rgb.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | ^^^ ------------- - - - supplied 4 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 5 generic parameters: `C`, `R`, `G`, `B`, `E` [INFO] [stdout] --> /opt/rustwide/workdir/src/rgb.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct LED [INFO] [stdout] | ^^^ - - - - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 306 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono::CommonAnode (line 188) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied [INFO] [stdout] --> src/mono.rs:209:10 [INFO] [stdout] | [INFO] [stdout] 209 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | ^^^ ----------- - - - supplied 4 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 5 generic parameters: `C`, `R`, `G`, `B`, `E` [INFO] [stdout] --> /opt/rustwide/workdir/src/rgb.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct LED [INFO] [stdout] | ^^^ - - - - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 209 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/mono.rs - mono::CommonCathode (line 218) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/mono.rs:224:1 [INFO] [stdout] | [INFO] [stdout] 224 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied [INFO] [stdout] --> src/mono.rs:239:10 [INFO] [stdout] | [INFO] [stdout] 239 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | ^^^ ------------- - - - supplied 4 generic arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 5 generic parameters: `C`, `R`, `G`, `B`, `E` [INFO] [stdout] --> /opt/rustwide/workdir/src/rgb.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct LED [INFO] [stdout] | ^^^ - - - - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 239 | let led: LED = LED::new(r, g, b); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rgb.rs - rgb (line 47) stdout ---- [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Error` [INFO] [stdout] --> src/rgb.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | impl OutputPin for Pin { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ missing `Error` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Error = /* Type */;` [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/rgb.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 72 | let mut leds: [&mut RGB; 2] = [ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 72 | let mut leds: [&mut dyn RGB; 2] = [ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/rgb.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | led.set(Color::Red) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0282. [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/mono.rs - mono (line 21) [INFO] [stdout] src/mono.rs - mono (line 45) [INFO] [stdout] src/mono.rs - mono::CommonAnode (line 188) [INFO] [stdout] src/mono.rs - mono::CommonCathode (line 218) [INFO] [stdout] src/mono.rs - mono::Monocolor (line 88) [INFO] [stdout] src/rgb.rs - rgb (line 21) [INFO] [stdout] src/rgb.rs - rgb (line 47) [INFO] [stdout] src/rgb.rs - rgb::CommonAnode (line 255) [INFO] [stdout] src/rgb.rs - rgb::CommonCathode (line 285) [INFO] [stdout] src/rgb.rs - rgb::RGB (line 108) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.29s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "6b75e3287836f81ce54bcd1a43d791ae06fe121e6ff015b2fbc875625fe2835d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b75e3287836f81ce54bcd1a43d791ae06fe121e6ff015b2fbc875625fe2835d", kill_on_drop: false }` [INFO] [stdout] 6b75e3287836f81ce54bcd1a43d791ae06fe121e6ff015b2fbc875625fe2835d