[INFO] fetching crate adafruit_nxp 0.1.3... [INFO] testing adafruit_nxp-0.1.3 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate adafruit_nxp 0.1.3 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate adafruit_nxp 0.1.3 [INFO] finished tweaking crates.io crate adafruit_nxp 0.1.3 [INFO] tweaked toml for crates.io crate adafruit_nxp 0.1.3 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate adafruit_nxp 0.1.3 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] crate crates.io crate adafruit_nxp 0.1.3 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 826edcd3e762769a69ff06ac6a13d213021defc53e613b66f38b53ec1b1002a3 [INFO] running `Command { std: "docker" "start" "-a" "826edcd3e762769a69ff06ac6a13d213021defc53e613b66f38b53ec1b1002a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "826edcd3e762769a69ff06ac6a13d213021defc53e613b66f38b53ec1b1002a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "826edcd3e762769a69ff06ac6a13d213021defc53e613b66f38b53ec1b1002a3", kill_on_drop: false }` [INFO] [stdout] 826edcd3e762769a69ff06ac6a13d213021defc53e613b66f38b53ec1b1002a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 325eee15b680b70c0a2a1a36ab1c3f1fd508c38d18fd343f6bca1b4acfe8e6fc [INFO] running `Command { std: "docker" "start" "-a" "325eee15b680b70c0a2a1a36ab1c3f1fd508c38d18fd343f6bca1b4acfe8e6fc", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling nb v1.0.0 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling num-complex v0.4.2 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling simba v0.7.1 [INFO] [stderr] Compiling nalgebra v0.31.0 [INFO] [stderr] Compiling adafruit_nxp v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:165:23 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 165 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:291:23 [INFO] [stdout] | [INFO] [stdout] 291 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 291 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:444:23 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 444 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.84s [INFO] running `Command { std: "docker" "inspect" "325eee15b680b70c0a2a1a36ab1c3f1fd508c38d18fd343f6bca1b4acfe8e6fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "325eee15b680b70c0a2a1a36ab1c3f1fd508c38d18fd343f6bca1b4acfe8e6fc", kill_on_drop: false }` [INFO] [stdout] 325eee15b680b70c0a2a1a36ab1c3f1fd508c38d18fd343f6bca1b4acfe8e6fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] d6d44372ea7493d753539127d29236dd2a0b6091d3e1eecee1fa96f076ccad21 [INFO] running `Command { std: "docker" "start" "-a" "d6d44372ea7493d753539127d29236dd2a0b6091d3e1eecee1fa96f076ccad21", kill_on_drop: false }` [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling embedded-hal v1.0.0-alpha.5 [INFO] [stderr] Compiling spin_sleep v1.1.1 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling adafruit_nxp v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:165:23 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 165 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:291:23 [INFO] [stdout] | [INFO] [stdout] 291 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 291 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:444:23 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 444 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rppal v0.13.1 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:165:23 [INFO] [stdout] | [INFO] [stdout] 165 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 165 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:291:23 [INFO] [stdout] | [INFO] [stdout] 291 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 291 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:444:23 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn get_sensor(&self) -> Sensor { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 444 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.60s [INFO] running `Command { std: "docker" "inspect" "d6d44372ea7493d753539127d29236dd2a0b6091d3e1eecee1fa96f076ccad21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6d44372ea7493d753539127d29236dd2a0b6091d3e1eecee1fa96f076ccad21", kill_on_drop: false }` [INFO] [stdout] d6d44372ea7493d753539127d29236dd2a0b6091d3e1eecee1fa96f076ccad21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 5c92ce104c0b70373df32f87d9d039b5bddec6b7d52ac826ba07373f0f65d0a0 [INFO] running `Command { std: "docker" "start" "-a" "5c92ce104c0b70373df32f87d9d039b5bddec6b7d52ac826ba07373f0f65d0a0", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:165:23 [INFO] [stderr] | [INFO] [stderr] 165 | pub fn get_sensor(&self) -> Sensor { [INFO] [stderr] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 165 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:291:23 [INFO] [stderr] | [INFO] [stderr] 291 | pub fn get_sensor(&self) -> Sensor { [INFO] [stderr] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 291 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:444:23 [INFO] [stderr] | [INFO] [stderr] 444 | pub fn get_sensor(&self) -> Sensor { [INFO] [stderr] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 444 | pub fn get_sensor(&self) -> Sensor<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `adafruit_nxp` (lib) generated 3 warnings (run `cargo fix --lib -p adafruit_nxp` to apply 3 suggestions) [INFO] [stderr] warning: `adafruit_nxp` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/adafruit_nxp-48d5f4e99f327804) [INFO] [stderr] Doc-tests adafruit_nxp [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] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/lib.rs - AdafruitNXP::calibration (line 1172) ... FAILED [INFO] [stdout] test src/lib.rs - (line 36) - compile ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::set_accelmag_output_data_rate (line 878) ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::set_gyro_range (line 815) ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::begin (line 711) - compile ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::calibration (line 1178) ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::set_accelmag_osr_mode (line 1003) ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::set_gyro_output_data_rate (line 921) ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::set_mag_oversampling_ratio (line 958) ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::new (line 588) - compile ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::read_data (line 1037) ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::set_sensor_mode (line 843) ... FAILED [INFO] [stdout] test src/lib.rs - AdafruitNXP::set_accel_range (line 790) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - AdafruitNXP::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] 1173 | 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] 1174 | 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 - (line 36) stdout ---- [INFO] [stdout] error: expected type, found `->` [INFO] [stdout] --> src/lib.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | fn main() -> -> Result<(), SensorError> { [INFO] [stdout] | ^^ expected type [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - AdafruitNXP::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] 879 | use adafruit::*; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `adafruit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `adafruit`, use `cargo add adafruit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [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::set_gyro_range (line 815) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `adafruit` [INFO] [stdout] --> src/lib.rs:816:5 [INFO] [stdout] | [INFO] [stdout] 816 | use adafruit::*; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `adafruit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `adafruit`, use `cargo add adafruit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [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::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] 713 | let ready = sensor.begin(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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::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] 1179 | let mut delay = Delay::new(); [INFO] [stdout] | ^^^^^ use of undeclared type `Delay` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1178 + 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] 1181 | 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] 1182 | 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::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] 1004 | use adafruit::*; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `adafruit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `adafruit`, use `cargo add adafruit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [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::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] 922 | use adafruit::*; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `adafruit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `adafruit`, use `cargo add adafruit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [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::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] 959 | use adafruit::*; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `adafruit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `adafruit`, use `cargo add adafruit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [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::new (line 588) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `adafruit` [INFO] [stdout] --> src/lib.rs:589:5 [INFO] [stdout] | [INFO] [stdout] 589 | use adafruit::*; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `adafruit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `adafruit`, use `cargo add adafruit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [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::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] 1038 | 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] 1039 | 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] 1040 | 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] 1041 | 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::set_sensor_mode (line 843) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `adafruit` [INFO] [stdout] --> src/lib.rs:844:5 [INFO] [stdout] | [INFO] [stdout] 844 | use adafruit::*; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `adafruit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `adafruit`, use `cargo add adafruit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [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::set_accel_range (line 790) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `adafruit` [INFO] [stdout] --> src/lib.rs:791:5 [INFO] [stdout] | [INFO] [stdout] 791 | use adafruit::*; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `adafruit` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `adafruit`, use `cargo add adafruit` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [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::begin (line 711) [INFO] [stdout] src/lib.rs - AdafruitNXP::calibration (line 1172) [INFO] [stdout] src/lib.rs - AdafruitNXP::calibration (line 1178) [INFO] [stdout] src/lib.rs - AdafruitNXP::new (line 588) [INFO] [stdout] src/lib.rs - AdafruitNXP::read_data (line 1037) [INFO] [stdout] src/lib.rs - AdafruitNXP::set_accel_range (line 790) [INFO] [stdout] src/lib.rs - AdafruitNXP::set_accelmag_osr_mode (line 1003) [INFO] [stdout] src/lib.rs - AdafruitNXP::set_accelmag_output_data_rate (line 878) [INFO] [stdout] src/lib.rs - AdafruitNXP::set_gyro_output_data_rate (line 921) [INFO] [stdout] src/lib.rs - AdafruitNXP::set_gyro_range (line 815) [INFO] [stdout] src/lib.rs - AdafruitNXP::set_mag_oversampling_ratio (line 958) [INFO] [stdout] src/lib.rs - AdafruitNXP::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.44s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5c92ce104c0b70373df32f87d9d039b5bddec6b7d52ac826ba07373f0f65d0a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c92ce104c0b70373df32f87d9d039b5bddec6b7d52ac826ba07373f0f65d0a0", kill_on_drop: false }` [INFO] [stdout] 5c92ce104c0b70373df32f87d9d039b5bddec6b7d52ac826ba07373f0f65d0a0