[INFO] fetching crate adafruit_nxp 0.1.2...
[INFO] testing adafruit_nxp-0.1.2 against beta-2022-07-10 for beta-1.63-1
[INFO] extracting crate adafruit_nxp 0.1.2 into /workspace/builds/worker-4/source
[INFO] validating manifest of crates.io crate adafruit_nxp 0.1.2 on toolchain beta-2022-07-10
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate adafruit_nxp 0.1.2
[INFO] finished tweaking crates.io crate adafruit_nxp 0.1.2
[INFO] tweaked toml for crates.io crate adafruit_nxp 0.1.2 written to /workspace/builds/worker-4/source/Cargo.toml
[INFO] crate crates.io crate adafruit_nxp 0.1.2 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8574098f94a6bbe3954db63ed3b72da85ba3ee28da8741ce7ac7dd7a3147d175
[INFO] running `Command { std: "docker" "start" "-a" "8574098f94a6bbe3954db63ed3b72da85ba3ee28da8741ce7ac7dd7a3147d175", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8574098f94a6bbe3954db63ed3b72da85ba3ee28da8741ce7ac7dd7a3147d175", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8574098f94a6bbe3954db63ed3b72da85ba3ee28da8741ce7ac7dd7a3147d175", kill_on_drop: false }`
[INFO] [stdout] 8574098f94a6bbe3954db63ed3b72da85ba3ee28da8741ce7ac7dd7a3147d175
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1c965a1ee91430a9ca67f48acd07b41a99bfd2dbe938197f80c9b6184099c428
[INFO] running `Command { std: "docker" "start" "-a" "1c965a1ee91430a9ca67f48acd07b41a99bfd2dbe938197f80c9b6184099c428", kill_on_drop: false }`
[INFO] [stderr]    Compiling libm v0.2.2
[INFO] [stderr]    Compiling typenum v1.15.0
[INFO] [stderr]    Compiling paste v1.0.7
[INFO] [stderr]    Compiling void v1.0.2
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling num-rational v0.4.0
[INFO] [stderr]    Compiling nb v0.1.3
[INFO] [stderr]    Compiling embedded-hal v0.2.7
[INFO] [stderr]    Compiling approx v0.5.1
[INFO] [stderr]    Compiling num-complex v0.4.1
[INFO] [stderr]    Compiling simba v0.7.1
[INFO] [stderr]    Compiling nalgebra v0.31.0
[INFO] [stderr]    Compiling adafruit_nxp v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 25.86s
[INFO] running `Command { std: "docker" "inspect" "1c965a1ee91430a9ca67f48acd07b41a99bfd2dbe938197f80c9b6184099c428", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1c965a1ee91430a9ca67f48acd07b41a99bfd2dbe938197f80c9b6184099c428", kill_on_drop: false }`
[INFO] [stdout] 1c965a1ee91430a9ca67f48acd07b41a99bfd2dbe938197f80c9b6184099c428
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2fe56a330c33a51b56cd308b06e5ffff50b109e1e41349be51fdd96aac8575aa
[INFO] running `Command { std: "docker" "start" "-a" "2fe56a330c33a51b56cd308b06e5ffff50b109e1e41349be51fdd96aac8575aa", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling spin_sleep v1.1.1
[INFO] [stderr]    Compiling embedded-hal v1.0.0-alpha.5
[INFO] [stderr]    Compiling embedded-hal v0.2.7
[INFO] [stderr]    Compiling adafruit_nxp v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling rppal v0.13.1
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 3.33s
[INFO] running `Command { std: "docker" "inspect" "2fe56a330c33a51b56cd308b06e5ffff50b109e1e41349be51fdd96aac8575aa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2fe56a330c33a51b56cd308b06e5ffff50b109e1e41349be51fdd96aac8575aa", kill_on_drop: false }`
[INFO] [stdout] 2fe56a330c33a51b56cd308b06e5ffff50b109e1e41349be51fdd96aac8575aa
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 094a4f25cb3bf4e6d315730575d7755e09d40795d2edf8b29fc959f11dd64308
[INFO] running `Command { std: "docker" "start" "-a" "094a4f25cb3bf4e6d315730575d7755e09d40795d2edf8b29fc959f11dd64308", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/adafruit_nxp-e9c6e8bfaed0cd28)
[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 adafruit_nxp
[INFO] [stdout] 
[INFO] [stdout] running 13 tests
[INFO] [stdout] test src/lib.rs - (line 36) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::begin (line 711) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::read_data (line 1037) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::new (line 588) - compile ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::calibration (line 1178) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::calibration (line 1172) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::set_gyro_output_data_rate (line 921) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::set_accelmag_output_data_rate (line 878) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::set_gyro_range (line 815) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::set_mag_oversampling_ratio (line 958) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::set_accelmag_osr_mode (line 1003) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::set_accel_range (line 790) ... FAILED
[INFO] [stdout] test src/lib.rs - AdafruitNXP<I2C>::set_sensor_mode (line 843) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 36) stdout ----
[INFO] [stdout] error: expected type, found `->`
[INFO] [stdout]   --> src/lib.rs:45:14
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn main() -> -> Result<(), SensorError<rppal::i2c::Error>> {
[INFO] [stdout]    |              ^^ expected type
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:43:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::begin (line 711) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:713:13
[INFO] [stdout]   |
[INFO] [stdout] 4 | let ready = sensor.begin();
[INFO] [stdout]   |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::read_data (line 1037) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1038:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | sensor.read_data();
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1039:11
[INFO] [stdout]   |
[INFO] [stdout] 4 | let acc = sensor.accel_sensor.get_scaled_data();
[INFO] [stdout]   |           ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1040:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | let gyro = sensor.gyro_sensor.get_scaled_data();
[INFO] [stdout]   |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1041:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mag = sensor.mag_sensor.get_scaled_data();
[INFO] [stdout]   |           ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::new (line 588) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:589:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AdafruitNXP`
[INFO] [stdout]  --> src/lib.rs:594:18
[INFO] [stdout]   |
[INFO] [stdout] 8 | let mut sensor = AdafruitNXP::new(0x8700A, 0x8700B, 0x0021002C, i2c);
[INFO] [stdout]   |                  ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use adafruit_nxp::AdafruitNXP;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::calibration (line 1178) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Delay`
[INFO] [stdout]  --> src/lib.rs:1179:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut delay = Delay::new();
[INFO] [stdout]   |                 ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use rppal::hal::Delay;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1181:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | sensor.enable_calibration(true);
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1182:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | sensor.calibrate(5000, 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 - AdafruitNXP<I2C>::calibration (line 1172) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1173:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | sensor.accel_sensor.set_offset(-0.1234, 0.1234, 0.4321);
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1174:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.gyro_sensor.set_offset(-0.1234, 0.1234, 0.4321);
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::set_gyro_output_data_rate (line 921) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:922:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config`
[INFO] [stdout]  --> src/lib.rs:923:34
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_gyro_output_data_rate(config::GyroODR::ODR200HZ)?;
[INFO] [stdout]   |                                  ^^^^^^ use of undeclared crate or module `config`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:923:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_gyro_output_data_rate(config::GyroODR::ODR200HZ)?;
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:923:60
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_921_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | use adafruit::*;
[INFO] [stdout] 4 | | sensor.set_gyro_output_data_rate(config::GyroODR::ODR200HZ)?;
[INFO] [stdout]   | |                                                            ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_921_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::set_accelmag_output_data_rate (line 878) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:879:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config`
[INFO] [stdout]  --> src/lib.rs:880:38
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_accelmag_output_data_rate(config::AccelMagODR::ODR200HZ)?;
[INFO] [stdout]   |                                      ^^^^^^ use of undeclared crate or module `config`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:880:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_accelmag_output_data_rate(config::AccelMagODR::ODR200HZ)?;
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:880:68
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_878_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | use adafruit::*;
[INFO] [stdout] 4 | | sensor.set_accelmag_output_data_rate(config::AccelMagODR::ODR200HZ)?;
[INFO] [stdout]   | |                                                                    ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_878_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::set_gyro_range (line 815) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:816:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config`
[INFO] [stdout]  --> src/lib.rs:817:23
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_gyro_range(config::GyroRange::Range500dps)?;
[INFO] [stdout]   |                       ^^^^^^ use of undeclared crate or module `config`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:817:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_gyro_range(config::GyroRange::Range500dps)?;
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:817:54
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_815_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | use adafruit::*;
[INFO] [stdout] 4 | | sensor.set_gyro_range(config::GyroRange::Range500dps)?;
[INFO] [stdout]   | |                                                      ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_815_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::set_mag_oversampling_ratio (line 958) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:959:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config`
[INFO] [stdout]  --> src/lib.rs:960:38
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_accelmag_output_data_rate(config::AccelMagODR::ODR200HZ)?;
[INFO] [stdout]   |                                      ^^^^^^ use of undeclared crate or module `config`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:960:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_accelmag_output_data_rate(config::AccelMagODR::ODR200HZ)?;
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:960:68
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_958_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | use adafruit::*;
[INFO] [stdout] 4 | | sensor.set_accelmag_output_data_rate(config::AccelMagODR::ODR200HZ)?;
[INFO] [stdout]   | |                                                                    ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_958_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::set_accelmag_osr_mode (line 1003) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:1004:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config`
[INFO] [stdout]  --> src/lib.rs:1005:30
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_accelmag_osr_mode(config::AccelMagOSRMode::HighResolution)?;
[INFO] [stdout]   |                              ^^^^^^ use of undeclared crate or module `config`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:1005:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_accelmag_osr_mode(config::AccelMagOSRMode::HighResolution)?;
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:1005:70
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_1003_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | use adafruit::*;
[INFO] [stdout] 4 | | sensor.set_accelmag_osr_mode(config::AccelMagOSRMode::HighResolution)?;
[INFO] [stdout]   | |                                                                      ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_1003_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::set_accel_range (line 790) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:791:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config`
[INFO] [stdout]  --> src/lib.rs:792:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_accel_range(config::AccelMagRange::Range4g)?;
[INFO] [stdout]   |                        ^^^^^^ use of undeclared crate or module `config`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:792:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_accel_range(config::AccelMagRange::Range4g)?;
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:792:55
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_790_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | use adafruit::*;
[INFO] [stdout] 4 | | sensor.set_accel_range(config::AccelMagRange::Range4g)?;
[INFO] [stdout]   | |                                                       ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_790_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - AdafruitNXP<I2C>::set_sensor_mode (line 843) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `adafruit`
[INFO] [stdout]  --> src/lib.rs:844:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use adafruit::*;
[INFO] [stdout]   |     ^^^^^^^^ use of undeclared crate or module `adafruit`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config`
[INFO] [stdout]  --> src/lib.rs:845:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_sensor_mode(config::AccelMagSensorMode::HybridMode)?;
[INFO] [stdout]   |                        ^^^^^^ use of undeclared crate or module `config`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sensor` in this scope
[INFO] [stdout]  --> src/lib.rs:845:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | sensor.set_sensor_mode(config::AccelMagSensorMode::HybridMode)?;
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:845:63
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_843_0() {
[INFO] [stdout]   |  ______________________________________-
[INFO] [stdout] 3 | | use adafruit::*;
[INFO] [stdout] 4 | | sensor.set_sensor_mode(config::AccelMagSensorMode::HybridMode)?;
[INFO] [stdout]   | |                                                               ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] 5 | | } _doctest_main_src_lib_rs_843_0() }
[INFO] [stdout]   | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 36)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::begin (line 711)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::calibration (line 1172)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::calibration (line 1178)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::new (line 588)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::read_data (line 1037)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::set_accel_range (line 790)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::set_accelmag_osr_mode (line 1003)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::set_accelmag_output_data_rate (line 878)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::set_gyro_output_data_rate (line 921)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::set_gyro_range (line 815)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::set_mag_oversampling_ratio (line 958)
[INFO] [stdout]     src/lib.rs - AdafruitNXP<I2C>::set_sensor_mode (line 843)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass '--doc'
[INFO] running `Command { std: "docker" "inspect" "094a4f25cb3bf4e6d315730575d7755e09d40795d2edf8b29fc959f11dd64308", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "094a4f25cb3bf4e6d315730575d7755e09d40795d2edf8b29fc959f11dd64308", kill_on_drop: false }`
[INFO] [stdout] 094a4f25cb3bf4e6d315730575d7755e09d40795d2edf8b29fc959f11dd64308
