[INFO] cloning repository https://github.com/krushn/rust-embedded [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/krushn/rust-embedded" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrushn%2Frust-embedded", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrushn%2Frust-embedded'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c253198c40887f690e865554db82135e96a1a5c7 [INFO] checking krushn/rust-embedded against try#ef5216c337126ffe24d074826f4023948c4a9b8e for pr-137033 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrushn%2Frust-embedded" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/krushn/rust-embedded on toolchain ef5216c337126ffe24d074826f4023948c4a9b8e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/krushn/rust-embedded [INFO] finished tweaking git repo https://github.com/krushn/rust-embedded [INFO] tweaked toml for git repo https://github.com/krushn/rust-embedded written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/krushn/rust-embedded 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" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] [stderr] warning: unused manifest key: target.thumbv6m-none-eabi.runner [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rp-pico v0.9.0 [INFO] [stderr] Downloaded rp2040-hal v0.10.2 [INFO] [stderr] Downloaded syn v2.0.83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 790f3d654c71b1cc5bd544198c9d9845eeca0a4ac884de77b7d03a73b1103eff [INFO] running `Command { std: "docker" "start" "-a" "790f3d654c71b1cc5bd544198c9d9845eeca0a4ac884de77b7d03a73b1103eff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "790f3d654c71b1cc5bd544198c9d9845eeca0a4ac884de77b7d03a73b1103eff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "790f3d654c71b1cc5bd544198c9d9845eeca0a4ac884de77b7d03a73b1103eff", kill_on_drop: false }` [INFO] [stdout] 790f3d654c71b1cc5bd544198c9d9845eeca0a4ac884de77b7d03a73b1103eff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c4d245558fd564cefad2948c244f4b032323b418ec65682f32c959b502d8380 [INFO] running `Command { std: "docker" "start" "-a" "6c4d245558fd564cefad2948c244f4b032323b418ec65682f32c959b502d8380", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] [stderr] warning: unused manifest key: target.thumbv6m-none-eabi.runner [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Compiling cortex-m-rt v0.7.3 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Compiling portable-atomic v1.9.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking vcell v0.1.3 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling frunk_core v0.4.3 [INFO] [stderr] Compiling debug-helper v0.3.13 [INFO] [stderr] Compiling heapless v0.8.0 [INFO] [stderr] Checking embedded-hal v0.2.7 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling crc-any v2.5.0 [INFO] [stderr] Checking volatile-register v0.2.2 [INFO] [stderr] Checking hash32 v0.3.1 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Compiling rp2040-pac v0.6.0 [INFO] [stderr] Compiling embedded-hal-async v1.0.0 [INFO] [stderr] Checking embedded-hal v1.0.0 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling rp2040-boot2 v0.3.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking gcd v2.3.0 [INFO] [stderr] Checking critical-section v1.2.0 [INFO] [stderr] Checking usb-device v0.3.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking fugit v0.3.7 [INFO] [stderr] Compiling syn v2.0.83 [INFO] [stderr] Checking embedded-hal-nb v1.0.0 [INFO] [stderr] Checking embedded-dma v0.2.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking bitfield v0.14.0 [INFO] [stderr] Compiling rp-pico v0.9.0 [INFO] [stderr] Checking embedded-io v0.6.1 [INFO] [stderr] Checking panic-halt v0.2.0 [INFO] [stderr] Compiling frunk_proc_macro_helpers v0.1.3 [INFO] [stderr] Compiling frunk_derives v0.4.3 [INFO] [stderr] Checking frunk v0.4.3 [INFO] [stderr] Compiling cortex-m-rt-macros v0.7.0 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling rp2040-hal-macros v0.1.0 [INFO] [stderr] Checking num_enum v0.5.11 [INFO] [stderr] Checking pio v0.2.1 [INFO] [stderr] Checking rp2040-hal v0.10.2 [INFO] [stderr] Checking rust-embedded v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `InputPin` [INFO] [stdout] --> src/main.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InputPin` [INFO] [stdout] --> src/main.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use embedded_hal::digital::{InputPin, OutputPin}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rp_pico::hal::adc::AdcPin` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rp_pico::hal::adc::AdcPin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unwinding panics are not supported without std [INFO] [stdout] | [INFO] [stdout] = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding [INFO] [stdout] = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rp_pico::hal::adc::AdcPin` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rp_pico::hal::adc::AdcPin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: duplicate lang item in crate `std` (which `test` depends on): `panic_impl` [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `panic_halt` (which `rust_embedded` depends on) [INFO] [stdout] = note: first definition in `panic_halt` loaded from /opt/rustwide/target/debug/deps/libpanic_halt-b09f8ab056e64272.rmeta [INFO] [stdout] = note: second definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/ef5216c337126ffe24d074826f4023948c4a9b8e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-bd3f4c5fdfb888bb.rlib [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-embedded` (bin "rust-embedded" test) due to 1 previous error; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `unwrape` found for struct `rp_pico::rp2040_hal::gpio::Pin` in the current scope [INFO] [stdout] --> src/main.rs:29:33 [INFO] [stdout] | [INFO] [stdout] 29 | let adc_pin = adc_pin_0.unwrape(); // Unwrap the Result to get the AdcPin [INFO] [stdout] | ^^^^^^^ method not found in `Pin, PullNone>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read` found for struct `Adc` in the current scope [INFO] [stdout] --> src/main.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | let light_level: u16 = adc.read(&mut adc_pin).unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/embedded-hal-0.2.7/src/adc.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn read(&mut self, pin: &mut Pin) -> nb::Result; [INFO] [stdout] | ---- the method is available for `Adc` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `is_ready` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rp2040-hal-0.10.2/src/adc.rs:420:5 [INFO] [stdout] | [INFO] [stdout] 420 | pub fn is_ready(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: trait `OneShot` which provides `read` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 4 + use embedded_hal::adc::OneShot; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-embedded` (bin "rust-embedded") due to 3 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6c4d245558fd564cefad2948c244f4b032323b418ec65682f32c959b502d8380", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c4d245558fd564cefad2948c244f4b032323b418ec65682f32c959b502d8380", kill_on_drop: false }` [INFO] [stdout] 6c4d245558fd564cefad2948c244f4b032323b418ec65682f32c959b502d8380