[INFO] fetching crate gy-21 0.2.0... [INFO] testing gy-21-0.2.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [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 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f739476cf375179d43edac4400a43520203d7d29dbdcdc6a6ebde0fe1f4d40d [INFO] running `Command { std: "docker" "start" "-a" "7f739476cf375179d43edac4400a43520203d7d29dbdcdc6a6ebde0fe1f4d40d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f739476cf375179d43edac4400a43520203d7d29dbdcdc6a6ebde0fe1f4d40d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f739476cf375179d43edac4400a43520203d7d29dbdcdc6a6ebde0fe1f4d40d", kill_on_drop: false }` [INFO] [stdout] 7f739476cf375179d43edac4400a43520203d7d29dbdcdc6a6ebde0fe1f4d40d [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2403fa145b06425e1065a9c7ad5534d7c37f57f6e0acedc63e65c3a779e13993 [INFO] running `Command { std: "docker" "start" "-a" "2403fa145b06425e1065a9c7ad5534d7c37f57f6e0acedc63e65c3a779e13993", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling gy-21 v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.68s [INFO] running `Command { std: "docker" "inspect" "2403fa145b06425e1065a9c7ad5534d7c37f57f6e0acedc63e65c3a779e13993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2403fa145b06425e1065a9c7ad5534d7c37f57f6e0acedc63e65c3a779e13993", kill_on_drop: false }` [INFO] [stdout] 2403fa145b06425e1065a9c7ad5534d7c37f57f6e0acedc63e65c3a779e13993 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab36fdcbde5be12ff636ff9bda21b6fe23916b188b3b72a34aeb61aebf1c43c7 [INFO] running `Command { std: "docker" "start" "-a" "ab36fdcbde5be12ff636ff9bda21b6fe23916b188b3b72a34aeb61aebf1c43c7", 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.42s [INFO] running `Command { std: "docker" "inspect" "ab36fdcbde5be12ff636ff9bda21b6fe23916b188b3b72a34aeb61aebf1c43c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab36fdcbde5be12ff636ff9bda21b6fe23916b188b3b72a34aeb61aebf1c43c7", kill_on_drop: false }` [INFO] [stdout] ab36fdcbde5be12ff636ff9bda21b6fe23916b188b3b72a34aeb61aebf1c43c7 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6338b5dffc6eb562062861ebf1f92680688e6d9fe36d6d0fb2486da2424c8551 [INFO] running `Command { std: "docker" "start" "-a" "6338b5dffc6eb562062861ebf1f92680688e6d9fe36d6d0fb2486da2424c8551", 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 - (line 23) - compile ... FAILED [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 - Gy21::humidity (line 158) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 13) - compile ... FAILED [INFO] [stdout] test src/lib.rs - Gy21::new (line 85) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 5 | 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] 5 - if let Ok(temp) = gy_21.temperature() { [INFO] [stdout] 5 + 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] 8 | 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] 8 - if let Ok(rhum) = gy_21.humidity() { [INFO] [stdout] 8 + 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] 11 | 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] 11 - if let Ok(dpt) = gy_21.dew_point_temp() { [INFO] [stdout] 11 + 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::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] 5 | 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] 2 + 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] 5 | 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] 5 | 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] 6 | 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] 6 - Ok(val) => val; [INFO] [stdout] 6 + 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] 7 | 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] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | } _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] 5 | 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] 5 - let reading = match gy_21.temperature() { [INFO] [stdout] 5 + 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] 7 | 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-08-13; 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] 6 | 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] 6 - Ok(val) => val; [INFO] [stdout] 6 + 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] 7 | 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] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | } _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] 5 | 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] 5 - let reading = match gy_21.dew_point_temp() { [INFO] [stdout] 5 + 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] 7 | 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-08-13; 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::humidity (line 158) stdout ---- [INFO] [stdout] error: `match` arm body without braces [INFO] [stdout] --> src/lib.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 6 | 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] 6 - Ok(val) => val; [INFO] [stdout] 6 + 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] 7 | 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] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | } _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] 5 | 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] 5 - let reading = match gy_21.humidity() { [INFO] [stdout] 5 + 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] 7 | 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-08-13; 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 13) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 10 | let gy_21 = Gy21::with_address(i2c, delay, 0x40) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 11 | } _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] 8 | 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] 2 + 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] 8 | 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] 8 | 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] 10 | 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] 2 + 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] 10 | 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] 10 | 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] ---- 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] 5 | 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] 2 + 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] 5 | 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] 5 | 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] [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.25s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "6338b5dffc6eb562062861ebf1f92680688e6d9fe36d6d0fb2486da2424c8551", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6338b5dffc6eb562062861ebf1f92680688e6d9fe36d6d0fb2486da2424c8551", kill_on_drop: false }` [INFO] [stdout] 6338b5dffc6eb562062861ebf1f92680688e6d9fe36d6d0fb2486da2424c8551