[INFO] fetching crate motor-driver-hal 0.1.3... [INFO] testing motor-driver-hal-0.1.3 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate motor-driver-hal 0.1.3 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate motor-driver-hal 0.1.3 [INFO] finished tweaking crates.io crate motor-driver-hal 0.1.3 [INFO] tweaked toml for crates.io crate motor-driver-hal 0.1.3 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate motor-driver-hal 0.1.3 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate motor-driver-hal 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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3afb493843b7c64a054cab70b6b0611a221816c76a3ab50e3d11f1d5274b7da3 [INFO] running `Command { std: "docker" "start" "-a" "3afb493843b7c64a054cab70b6b0611a221816c76a3ab50e3d11f1d5274b7da3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3afb493843b7c64a054cab70b6b0611a221816c76a3ab50e3d11f1d5274b7da3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3afb493843b7c64a054cab70b6b0611a221816c76a3ab50e3d11f1d5274b7da3", kill_on_drop: false }` [INFO] [stdout] 3afb493843b7c64a054cab70b6b0611a221816c76a3ab50e3d11f1d5274b7da3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 602af893a101021aecc00f82355b4120b2c06a2aef33dbe97d1b2034f64d5dd2 [INFO] running `Command { std: "docker" "start" "-a" "602af893a101021aecc00f82355b4120b2c06a2aef33dbe97d1b2034f64d5dd2", kill_on_drop: false }` [INFO] [stderr] Compiling embedded-hal v1.0.0 [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling motor-driver-hal v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `current_pulse` is never read [INFO] [stdout] --> src/wrapper.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MotorDriverWrapper { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | current_pulse: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "602af893a101021aecc00f82355b4120b2c06a2aef33dbe97d1b2034f64d5dd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "602af893a101021aecc00f82355b4120b2c06a2aef33dbe97d1b2034f64d5dd2", kill_on_drop: false }` [INFO] [stdout] 602af893a101021aecc00f82355b4120b2c06a2aef33dbe97d1b2034f64d5dd2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a28e40647a05935ec58d659df944900b5ea90096dac97f4c4a050fea2f179d19 [INFO] running `Command { std: "docker" "start" "-a" "a28e40647a05935ec58d659df944900b5ea90096dac97f4c4a050fea2f179d19", kill_on_drop: false }` [INFO] [stdout] warning: field `current_pulse` is never read [INFO] [stdout] --> src/wrapper.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MotorDriverWrapper { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | current_pulse: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling motor-driver-hal v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `current_pulse` is never read [INFO] [stdout] --> src/wrapper.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct MotorDriverWrapper { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | current_pulse: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "a28e40647a05935ec58d659df944900b5ea90096dac97f4c4a050fea2f179d19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a28e40647a05935ec58d659df944900b5ea90096dac97f4c4a050fea2f179d19", kill_on_drop: false }` [INFO] [stdout] a28e40647a05935ec58d659df944900b5ea90096dac97f4c4a050fea2f179d19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d732347bdc724f9280c2fbe86c24ae3265d49b97b55f90d18a0c1cd85ddcef9f [INFO] running `Command { std: "docker" "start" "-a" "d732347bdc724f9280c2fbe86c24ae3265d49b97b55f90d18a0c1cd85ddcef9f", kill_on_drop: false }` [INFO] [stderr] warning: field `current_pulse` is never read [INFO] [stderr] --> src/wrapper.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 25 | pub struct MotorDriverWrapper { [INFO] [stderr] | ------------------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 30 | current_pulse: i16, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `motor-driver-hal` (lib) generated 1 warning [INFO] [stderr] warning: `motor-driver-hal` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/motor_driver_hal-9811fdfecc3a33a4) [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 motor_driver_hal [INFO] [stdout] [INFO] [stdout] running 40 tests [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::read_encoder (line 613) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::builder (line 441) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::builder_with_encoder (line 529) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver (line 74) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::reset_encoder (line 674) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::dual_pwm (line 498) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::build (line 362) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::get_pulse_count (line 657) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::new (line 155) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::single_pwm (line 468) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::with_dual_enable (line 205) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::dual_pwm_with_encoder (line 562) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder (line 124) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriver::set_target_pulse (line 692) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::with_enable (line 184) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::with_max_duty (line 296) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::with_initial_speed (line 342) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::with_ppr (line 319) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::build_and_init (line 405) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::with_pwm (line 226) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::with_dual_pwm (line 250) ... FAILED [INFO] [stdout] test src/driver.rs - driver::HBridgeMotorDriverBuilder::with_encoder (line 272) ... FAILED [INFO] [stdout] test src/lib.rs - (line 19) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::enable (line 196) ... FAILED [INFO] [stdout] test src/driver.rs - driver::NoEncoder (line 13) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::brake (line 175) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::get_speed (line 275) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver (line 60) ... ok [INFO] [stdout] test src/lib.rs - MotorDriver::get_direction (line 291) ... FAILED [INFO] [stdout] test src/error.rs - error::MotorDriverError (line 9) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::disable (line 217) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::get_fault_status (line 341) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::check_ppr (line 238) ... FAILED [INFO] [stdout] test src/wrapper.rs - wrapper::MotorDriverBuilder::with_dual_enable (line 297) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::set_ppr (line 261) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::set_speed (line 110) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::set_direction (line 133) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::initialize (line 86) ... FAILED [INFO] [stdout] test src/lib.rs - MotorDriver::stop (line 154) ... FAILED [INFO] [stdout] test src/wrapper.rs - wrapper::MotorDriverBuilder::new (line 267) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/driver.rs - driver::HBridgeMotorDriver::read_encoder (line 613) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/driver.rs:615:1 [INFO] [stdout] | [INFO] [stdout] 4 | motor.read_encoder()?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/driver.rs:616:16 [INFO] [stdout] | [INFO] [stdout] 5 | let position = motor.get_pulse_count(); [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/driver.rs - driver::HBridgeMotorDriver::builder (line 441) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] --> src/driver.rs:442:13 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::builder() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::HBridgeMotorDriver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/driver.rs:443:18 [INFO] [stdout] | [INFO] [stdout] 4 | .with_enable(enable_pin) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/driver.rs:444:15 [INFO] [stdout] | [INFO] [stdout] 5 | .with_pwm(pwm_channel) [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/driver.rs - driver::HBridgeMotorDriver::builder_with_encoder (line 529) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] --> src/driver.rs:530:13 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::builder_with_encoder() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::HBridgeMotorDriver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable1` in this scope [INFO] [stdout] --> src/driver.rs:531:23 [INFO] [stdout] | [INFO] [stdout] 4 | .with_dual_enable(enable1, enable2) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable2` in this scope [INFO] [stdout] --> src/driver.rs:531:32 [INFO] [stdout] | [INFO] [stdout] 4 | .with_dual_enable(enable1, enable2) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm1` in this scope [INFO] [stdout] --> src/driver.rs:532:20 [INFO] [stdout] | [INFO] [stdout] 5 | .with_dual_pwm(pwm1, pwm2) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm2` in this scope [INFO] [stdout] --> src/driver.rs:532:26 [INFO] [stdout] | [INFO] [stdout] 5 | .with_dual_pwm(pwm1, pwm2) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enc_a` in this scope [INFO] [stdout] --> src/driver.rs:533:19 [INFO] [stdout] | [INFO] [stdout] 6 | .with_encoder(enc_a, enc_b) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enc_b` in this scope [INFO] [stdout] --> src/driver.rs:533:26 [INFO] [stdout] | [INFO] [stdout] 6 | .with_encoder(enc_a, enc_b) [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/driver.rs - driver::HBridgeMotorDriver (line 74) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/driver.rs:79:44 [INFO] [stdout] | [INFO] [stdout] 8 | let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/driver.rs:79:56 [INFO] [stdout] | [INFO] [stdout] 8 | let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable1` in this scope [INFO] [stdout] --> src/driver.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 12 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable2` in this scope [INFO] [stdout] --> src/driver.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 12 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm1` in this scope [INFO] [stdout] --> src/driver.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 12 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm2` in this scope [INFO] [stdout] --> src/driver.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 12 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enc_a` in this scope [INFO] [stdout] --> src/driver.rs:83:35 [INFO] [stdout] | [INFO] [stdout] 12 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enc_b` in this scope [INFO] [stdout] --> src/driver.rs:83:42 [INFO] [stdout] | [INFO] [stdout] 12 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 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/driver.rs - driver::HBridgeMotorDriver::reset_encoder (line 674) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/driver.rs:675:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.reset_encoder(); [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/driver.rs - driver::HBridgeMotorDriver::dual_pwm (line 498) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] --> src/driver.rs:499:13 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::dual_pwm( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::HBridgeMotorDriver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable1` in this scope [INFO] [stdout] --> src/driver.rs:500:5 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, 1000 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable2` in this scope [INFO] [stdout] --> src/driver.rs:500:14 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, 1000 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm1` in this scope [INFO] [stdout] --> src/driver.rs:500:23 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, 1000 [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm2` in this scope [INFO] [stdout] --> src/driver.rs:500:29 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, 1000 [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/driver.rs - driver::HBridgeMotorDriverBuilder::build (line 362) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] --> src/driver.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::builder() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::HBridgeMotorDriver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/driver.rs:364:18 [INFO] [stdout] | [INFO] [stdout] 4 | .with_enable(enable_pin) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/driver.rs:365:15 [INFO] [stdout] | [INFO] [stdout] 5 | .with_pwm(pwm_channel) [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/driver.rs - driver::HBridgeMotorDriver::get_pulse_count (line 657) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/driver.rs:658:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.reset_encoder(); // Reset to zero [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/driver.rs:660:16 [INFO] [stdout] | [INFO] [stdout] 5 | let position = motor.get_pulse_count(); [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/driver.rs - driver::HBridgeMotorDriverBuilder::new (line 155) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriverBuilder` [INFO] [stdout] --> src/driver.rs:156:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = HBridgeMotorDriverBuilder::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriverBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::driver::HBridgeMotorDriverBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/driver.rs - driver::HBridgeMotorDriver::single_pwm (line 468) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] --> src/driver.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::HBridgeMotorDriver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/driver.rs:469:44 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/driver.rs:469:56 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000); [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/driver.rs - driver::HBridgeMotorDriverBuilder::with_dual_enable (line 205) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/driver.rs:206:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_dual_enable(gpio_pin_18, gpio_pin_19); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `gpio_pin_18` in this scope [INFO] [stdout] --> src/driver.rs:206:40 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_dual_enable(gpio_pin_18, gpio_pin_19); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `gpio_pin_19` in this scope [INFO] [stdout] --> src/driver.rs:206:53 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_dual_enable(gpio_pin_18, gpio_pin_19); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/driver.rs - driver::HBridgeMotorDriver::dual_pwm_with_encoder (line 562) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] --> src/driver.rs:563:13 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::dual_pwm_with_encoder( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::HBridgeMotorDriver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable1` in this scope [INFO] [stdout] --> src/driver.rs:564:5 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable2` in this scope [INFO] [stdout] --> src/driver.rs:564:14 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm1` in this scope [INFO] [stdout] --> src/driver.rs:564:23 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm2` in this scope [INFO] [stdout] --> src/driver.rs:564:29 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enc_a` in this scope [INFO] [stdout] --> src/driver.rs:564:35 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enc_b` in this scope [INFO] [stdout] --> src/driver.rs:564:42 [INFO] [stdout] | [INFO] [stdout] 4 | enable1, enable2, pwm1, pwm2, enc_a, enc_b, 1000 [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/driver.rs - driver::HBridgeMotorDriverBuilder (line 124) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/driver.rs:129:18 [INFO] [stdout] | [INFO] [stdout] 8 | .with_enable(enable_pin) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/driver.rs:130:15 [INFO] [stdout] | [INFO] [stdout] 9 | .with_pwm(pwm_channel) [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/driver.rs - driver::HBridgeMotorDriver::set_target_pulse (line 692) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/driver.rs:693:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.set_target_pulse(1000); [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/driver.rs - driver::HBridgeMotorDriverBuilder::with_enable (line 184) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/driver.rs:185:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_enable(gpio_pin_18); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `gpio_pin_18` in this scope [INFO] [stdout] --> src/driver.rs:185:35 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_enable(gpio_pin_18); [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/driver.rs - driver::HBridgeMotorDriverBuilder::with_max_duty (line 296) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/driver.rs:297:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_max_duty(1000); [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/driver.rs - driver::HBridgeMotorDriverBuilder::with_initial_speed (line 342) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/driver.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_initial_speed(0); [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/driver.rs - driver::HBridgeMotorDriverBuilder::with_ppr (line 319) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/driver.rs:320:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_ppr(1024); [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/driver.rs - driver::HBridgeMotorDriverBuilder::build_and_init (line 405) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] --> src/driver.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 3 | let motor = HBridgeMotorDriver::builder() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::HBridgeMotorDriver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/driver.rs:407:18 [INFO] [stdout] | [INFO] [stdout] 4 | .with_enable(enable_pin) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/driver.rs:408:15 [INFO] [stdout] | [INFO] [stdout] 5 | .with_pwm(pwm_channel) [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/driver.rs - driver::HBridgeMotorDriverBuilder::with_pwm (line 226) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/driver.rs:227:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_pwm(pwm_channel_0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel_0` in this scope [INFO] [stdout] --> src/driver.rs:227:32 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_pwm(pwm_channel_0); [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/driver.rs - driver::HBridgeMotorDriverBuilder::with_dual_pwm (line 250) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/driver.rs:251:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_dual_pwm(pwm_channel_0, pwm_channel_1); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel_0` in this scope [INFO] [stdout] --> src/driver.rs:251:37 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_dual_pwm(pwm_channel_0, pwm_channel_1); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel_1` in this scope [INFO] [stdout] --> src/driver.rs:251:52 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_dual_pwm(pwm_channel_0, pwm_channel_1); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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/driver.rs - driver::HBridgeMotorDriverBuilder::with_encoder (line 272) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/driver.rs:273:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_encoder(encoder_a_pin, encoder_b_pin); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `encoder_a_pin` in this scope [INFO] [stdout] --> src/driver.rs:273:36 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_encoder(encoder_a_pin, encoder_b_pin); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `encoder_b_pin` in this scope [INFO] [stdout] --> src/driver.rs:273:51 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = builder.with_encoder(encoder_a_pin, encoder_b_pin); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 19) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/lib.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 9 | .with_single_enable(enable_pin) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/lib.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 10 | .with_single_pwm(pwm_channel) [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 - MotorDriver::enable (line 196) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:197:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.enable()?; [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/driver.rs - driver::NoEncoder (line 13) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] --> src/driver.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 8 | let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `HBridgeMotorDriver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::HBridgeMotorDriver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/driver.rs:18:44 [INFO] [stdout] | [INFO] [stdout] 8 | let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/driver.rs:18:56 [INFO] [stdout] | [INFO] [stdout] 8 | let motor = HBridgeMotorDriver::single_pwm(enable_pin, pwm_channel, 1000); [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 - MotorDriver::brake (line 175) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.brake()?; [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 - MotorDriver::get_speed (line 275) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:276:21 [INFO] [stdout] | [INFO] [stdout] 3 | let current_speed = motor.get_speed()?; [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 - MotorDriver::get_direction (line 291) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:292:18 [INFO] [stdout] | [INFO] [stdout] 3 | let is_forward = motor.get_direction()?; [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/error.rs - error::MotorDriverError (line 9) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/error.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 7 | match motor.set_speed(1500) { [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 - MotorDriver::disable (line 217) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:218:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.disable()?; [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 - MotorDriver::get_fault_status (line 341) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:342:20 [INFO] [stdout] | [INFO] [stdout] 3 | let fault_status = motor.get_fault_status()?; [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 - MotorDriver::check_ppr (line 238) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.set_target_pulse(1000); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:240:1 [INFO] [stdout] | [INFO] [stdout] 4 | motor.check_ppr()?; [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/wrapper.rs - wrapper::MotorDriverBuilder::with_dual_enable (line 297) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `builder` in this scope [INFO] [stdout] --> src/wrapper.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 3 | builder.with_dual_enable(enable_pin1, enable_pin2) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable_pin1` in this scope [INFO] [stdout] --> src/wrapper.rs:298:26 [INFO] [stdout] | [INFO] [stdout] 3 | builder.with_dual_enable(enable_pin1, enable_pin2) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable_pin2` in this scope [INFO] [stdout] --> src/wrapper.rs:298:39 [INFO] [stdout] | [INFO] [stdout] 3 | builder.with_dual_enable(enable_pin1, enable_pin2) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 - MotorDriver::set_ppr (line 261) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.set_ppr(1000)?; [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 - MotorDriver::set_speed (line 110) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.set_speed(500)?; // 50% forward [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 4 | motor.set_speed(-300)?; [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 - MotorDriver::set_direction (line 133) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.set_direction(true)?; // Forward [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:135:1 [INFO] [stdout] | [INFO] [stdout] 4 | motor.set_direction(false)?; [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 - MotorDriver::initialize (line 86) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.initialize()?; [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 - MotorDriver::stop (line 154) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `motor` in this scope [INFO] [stdout] --> src/lib.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 3 | motor.stop()?; [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/wrapper.rs - wrapper::MotorDriverBuilder::new (line 267) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MotorDriverBuilder` [INFO] [stdout] --> src/wrapper.rs:268:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = MotorDriverBuilder::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `MotorDriverBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motor_driver_hal::MotorDriverBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `enable_pin` in this scope [INFO] [stdout] --> src/wrapper.rs:269:25 [INFO] [stdout] | [INFO] [stdout] 4 | .with_single_enable(enable_pin) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pwm_channel` in this scope [INFO] [stdout] --> src/wrapper.rs:270:22 [INFO] [stdout] | [INFO] [stdout] 5 | .with_single_pwm(pwm_channel, 1000); [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/driver.rs - driver::HBridgeMotorDriver (line 74) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::builder_with_encoder (line 529) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::dual_pwm_with_encoder (line 562) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::get_pulse_count (line 657) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::read_encoder (line 613) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::reset_encoder (line 674) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::set_target_pulse (line 692) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::builder (line 441) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::dual_pwm (line 498) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriver::single_pwm (line 468) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder (line 124) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::build (line 362) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::build_and_init (line 405) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::new (line 155) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::with_dual_enable (line 205) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::with_dual_pwm (line 250) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::with_enable (line 184) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::with_encoder (line 272) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::with_initial_speed (line 342) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::with_max_duty (line 296) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::with_ppr (line 319) [INFO] [stdout] src/driver.rs - driver::HBridgeMotorDriverBuilder::with_pwm (line 226) [INFO] [stdout] src/driver.rs - driver::NoEncoder (line 13) [INFO] [stdout] src/error.rs - error::MotorDriverError (line 9) [INFO] [stdout] src/lib.rs - (line 19) [INFO] [stdout] src/lib.rs - MotorDriver::brake (line 175) [INFO] [stdout] src/lib.rs - MotorDriver::check_ppr (line 238) [INFO] [stdout] src/lib.rs - MotorDriver::disable (line 217) [INFO] [stdout] src/lib.rs - MotorDriver::enable (line 196) [INFO] [stdout] src/lib.rs - MotorDriver::get_direction (line 291) [INFO] [stdout] src/lib.rs - MotorDriver::get_fault_status (line 341) [INFO] [stdout] src/lib.rs - MotorDriver::get_speed (line 275) [INFO] [stdout] src/lib.rs - MotorDriver::initialize (line 86) [INFO] [stdout] src/lib.rs - MotorDriver::set_direction (line 133) [INFO] [stdout] src/lib.rs - MotorDriver::set_ppr (line 261) [INFO] [stdout] src/lib.rs - MotorDriver::set_speed (line 110) [INFO] [stdout] src/lib.rs - MotorDriver::stop (line 154) [INFO] [stdout] src/wrapper.rs - wrapper::MotorDriverBuilder::new (line 267) [INFO] [stdout] src/wrapper.rs - wrapper::MotorDriverBuilder::with_dual_enable (line 297) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 39 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.82s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d732347bdc724f9280c2fbe86c24ae3265d49b97b55f90d18a0c1cd85ddcef9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d732347bdc724f9280c2fbe86c24ae3265d49b97b55f90d18a0c1cd85ddcef9f", kill_on_drop: false }` [INFO] [stdout] d732347bdc724f9280c2fbe86c24ae3265d49b97b55f90d18a0c1cd85ddcef9f