[INFO] fetching crate gy-21 0.2.0... [INFO] testing gy-21-0.2.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate gy-21 0.2.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate gy-21 0.2.0 [INFO] finished tweaking crates.io crate gy-21 0.2.0 [INFO] tweaked toml for crates.io crate gy-21 0.2.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate gy-21 0.2.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ed1c25d09ef976867ab621405f0766da3082a79560436a6d587d0686414a888 [INFO] running `Command { std: "docker" "start" "-a" "5ed1c25d09ef976867ab621405f0766da3082a79560436a6d587d0686414a888", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ed1c25d09ef976867ab621405f0766da3082a79560436a6d587d0686414a888", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ed1c25d09ef976867ab621405f0766da3082a79560436a6d587d0686414a888", kill_on_drop: false }` [INFO] [stdout] 5ed1c25d09ef976867ab621405f0766da3082a79560436a6d587d0686414a888 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6336579b5beeac8a93fcd344d73da62f27e6df143841a58a3bf17ad6c8ee42a2 [INFO] running `Command { std: "docker" "start" "-a" "6336579b5beeac8a93fcd344d73da62f27e6df143841a58a3bf17ad6c8ee42a2", kill_on_drop: false }` [INFO] [stderr] Compiling gy-21 v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "6336579b5beeac8a93fcd344d73da62f27e6df143841a58a3bf17ad6c8ee42a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6336579b5beeac8a93fcd344d73da62f27e6df143841a58a3bf17ad6c8ee42a2", kill_on_drop: false }` [INFO] [stdout] 6336579b5beeac8a93fcd344d73da62f27e6df143841a58a3bf17ad6c8ee42a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18ffec1510dbd4e5e3c4694b5157555d040ae31e81002169224d3e68a8262ada [INFO] running `Command { std: "docker" "start" "-a" "18ffec1510dbd4e5e3c4694b5157555d040ae31e81002169224d3e68a8262ada", kill_on_drop: false }` [INFO] [stderr] Compiling gy-21 v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.33s [INFO] running `Command { std: "docker" "inspect" "18ffec1510dbd4e5e3c4694b5157555d040ae31e81002169224d3e68a8262ada", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18ffec1510dbd4e5e3c4694b5157555d040ae31e81002169224d3e68a8262ada", kill_on_drop: false }` [INFO] [stdout] 18ffec1510dbd4e5e3c4694b5157555d040ae31e81002169224d3e68a8262ada [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 17316df8ee7159e3a3b33742370295fd5d501feb480566a35af1fbbaab4f0a42 [INFO] running `Command { std: "docker" "start" "-a" "17316df8ee7159e3a3b33742370295fd5d501feb480566a35af1fbbaab4f0a42", 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/gy_21-5b244c27022ed2ec) [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 gy_21 [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - Gy21::with_address (line 98) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Gy21::temperature (line 137) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Gy21::dew_point_temp (line 181) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 23) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Gy21::humidity (line 158) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Gy21::new (line 85) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 13) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Gy21::with_address (line 98) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Gy21` [INFO] [stdout] --> src/lib.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let gy_21 = Gy21::with_address(i2c, delay, 0x40); [INFO] [stdout] | ^^^^ use of undeclared type `Gy21` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 97 + use gy_21::Gy21; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i2c` in this scope [INFO] [stdout] --> src/lib.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | let gy_21 = Gy21::with_address(i2c, delay, 0x40); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/lib.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 100 | let gy_21 = Gy21::with_address(i2c, delay, 0x40); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Gy21::temperature (line 137) stdout ---- [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/lib.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | Ok(val) => val; [INFO] [stdout] | -- ^^^ this statement is not surrounded by a body [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] | [INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression [INFO] [stdout] | [INFO] [stdout] 140 - Ok(val) => val; [INFO] [stdout] 140 + Ok(val) => val, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `.`, `?`, `}`, or an operator, found `!` [INFO] [stdout] --> src/lib.rs:141:22 [INFO] [stdout] | [INFO] [stdout] 141 | Err(_) => panic()! [INFO] [stdout] | -- ^ expected one of `,`, `.`, `?`, `}`, or an operator [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:142:2 [INFO] [stdout] | [INFO] [stdout] 142 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 143 | } _doctest_main_src_lib_rs_137_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `gy_21` [INFO] [stdout] --> src/lib.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 139 | let reading = match gy_21.temperature() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 139 - let reading = match gy_21.temperature() { [INFO] [stdout] 139 + let reading = match gy_21::temperature() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0658]: `!` patterns are experimental [INFO] [stdout] --> src/lib.rs:141:22 [INFO] [stdout] | [INFO] [stdout] 141 | Err(_) => panic()! [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118155 for more information [INFO] [stdout] = help: add `#![feature(never_patterns)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-11-06; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Gy21::dew_point_temp (line 181) stdout ---- [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/lib.rs:184:16 [INFO] [stdout] | [INFO] [stdout] 184 | Ok(val) => val; [INFO] [stdout] | -- ^^^ this statement is not surrounded by a body [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] | [INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression [INFO] [stdout] | [INFO] [stdout] 184 - Ok(val) => val; [INFO] [stdout] 184 + Ok(val) => val, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `.`, `?`, `}`, or an operator, found `!` [INFO] [stdout] --> src/lib.rs:185:22 [INFO] [stdout] | [INFO] [stdout] 185 | Err(_) => panic()! [INFO] [stdout] | -- ^ expected one of `,`, `.`, `?`, `}`, or an operator [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:186:2 [INFO] [stdout] | [INFO] [stdout] 186 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 187 | } _doctest_main_src_lib_rs_181_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `gy_21` [INFO] [stdout] --> src/lib.rs:183:21 [INFO] [stdout] | [INFO] [stdout] 183 | let reading = match gy_21.dew_point_temp() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 183 - let reading = match gy_21.dew_point_temp() { [INFO] [stdout] 183 + let reading = match gy_21::dew_point_temp() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0658]: `!` patterns are experimental [INFO] [stdout] --> src/lib.rs:185:22 [INFO] [stdout] | [INFO] [stdout] 185 | Err(_) => panic()! [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118155 for more information [INFO] [stdout] = help: add `#![feature(never_patterns)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-11-06; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 23) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `gy_21` [INFO] [stdout] --> src/lib.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | if let Ok(temp) = gy_21.temperature() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 25 - if let Ok(temp) = gy_21.temperature() { [INFO] [stdout] 25 + if let Ok(temp) = gy_21::temperature() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `gy_21` [INFO] [stdout] --> src/lib.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | if let Ok(rhum) = gy_21.humidity() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 28 - if let Ok(rhum) = gy_21.humidity() { [INFO] [stdout] 28 + if let Ok(rhum) = gy_21::humidity() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `gy_21` [INFO] [stdout] --> src/lib.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | if let Ok(dpt) = gy_21.dew_point_temp() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 31 - if let Ok(dpt) = gy_21.dew_point_temp() { [INFO] [stdout] 31 + if let Ok(dpt) = gy_21::dew_point_temp() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Gy21::humidity (line 158) stdout ---- [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/lib.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | Ok(val) => val; [INFO] [stdout] | -- ^^^ this statement is not surrounded by a body [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] | [INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression [INFO] [stdout] | [INFO] [stdout] 161 - Ok(val) => val; [INFO] [stdout] 161 + Ok(val) => val, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `.`, `?`, `}`, or an operator, found `!` [INFO] [stdout] --> src/lib.rs:162:22 [INFO] [stdout] | [INFO] [stdout] 162 | Err(_) => panic()! [INFO] [stdout] | -- ^ expected one of `,`, `.`, `?`, `}`, or an operator [INFO] [stdout] | | [INFO] [stdout] | while parsing the `match` arm starting here [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:163:2 [INFO] [stdout] | [INFO] [stdout] 163 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 164 | } _doctest_main_src_lib_rs_158_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `gy_21` [INFO] [stdout] --> src/lib.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | let reading = match gy_21.humidity() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 160 - let reading = match gy_21.humidity() { [INFO] [stdout] 160 + let reading = match gy_21::humidity() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0658]: `!` patterns are experimental [INFO] [stdout] --> src/lib.rs:162:22 [INFO] [stdout] | [INFO] [stdout] 162 | Err(_) => panic()! [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #118155 for more information [INFO] [stdout] = help: add `#![feature(never_patterns)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-11-06; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0658. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Gy21::new (line 85) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Gy21` [INFO] [stdout] --> src/lib.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let gy_21 = Gy21::new(i2c, delay); [INFO] [stdout] | ^^^^ use of undeclared type `Gy21` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 84 + use gy_21::Gy21; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i2c` in this scope [INFO] [stdout] --> src/lib.rs:87:23 [INFO] [stdout] | [INFO] [stdout] 87 | let gy_21 = Gy21::new(i2c, delay); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/lib.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | let gy_21 = Gy21::new(i2c, delay); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 13) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | let gy_21 = Gy21::with_address(i2c, delay, 0x40) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 21 | } _doctest_main_src_lib_rs_13_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Gy21` [INFO] [stdout] --> src/lib.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let gy_21 = Gy21::new(i2c, delay); // Using the default I2C address for the sensor (0x40) [INFO] [stdout] | ^^^^ use of undeclared type `Gy21` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 + use gy_21::Gy21; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i2c` in this scope [INFO] [stdout] --> src/lib.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | let gy_21 = Gy21::new(i2c, delay); // Using the default I2C address for the sensor (0x40) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/lib.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | let gy_21 = Gy21::new(i2c, delay); // Using the default I2C address for the sensor (0x40) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Gy21` [INFO] [stdout] --> src/lib.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let gy_21 = Gy21::with_address(i2c, delay, 0x40) [INFO] [stdout] | ^^^^ use of undeclared type `Gy21` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 + use gy_21::Gy21; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i2c` in this scope [INFO] [stdout] --> src/lib.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | let gy_21 = Gy21::with_address(i2c, delay, 0x40) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/lib.rs:20:37 [INFO] [stdout] | [INFO] [stdout] 20 | let gy_21 = Gy21::with_address(i2c, delay, 0x40) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 13) [INFO] [stdout] src/lib.rs - (line 23) [INFO] [stdout] src/lib.rs - Gy21::dew_point_temp (line 181) [INFO] [stdout] src/lib.rs - Gy21::humidity (line 158) [INFO] [stdout] src/lib.rs - Gy21::new (line 85) [INFO] [stdout] src/lib.rs - Gy21::temperature (line 137) [INFO] [stdout] src/lib.rs - Gy21::with_address (line 98) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 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" "17316df8ee7159e3a3b33742370295fd5d501feb480566a35af1fbbaab4f0a42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17316df8ee7159e3a3b33742370295fd5d501feb480566a35af1fbbaab4f0a42", kill_on_drop: false }` [INFO] [stdout] 17316df8ee7159e3a3b33742370295fd5d501feb480566a35af1fbbaab4f0a42