[INFO] fetching crate android-usbser 0.2.3...
[INFO] testing android-usbser-0.2.3 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7
[INFO] extracting crate android-usbser 0.2.3 into /workspace/builds/worker-6-tc1/source
[INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config.toml
[INFO] started tweaking crates.io crate android-usbser 0.2.3
[INFO] finished tweaking crates.io crate android-usbser 0.2.3
[INFO] tweaked toml for crates.io crate android-usbser 0.2.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate android-usbser 0.2.3 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate android-usbser 0.2.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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded unescaper v0.1.6
[INFO] [stderr]   Downloaded libudev v0.3.0
[INFO] [stderr]   Downloaded android-build v0.1.3
[INFO] [stderr]   Downloaded getset v0.1.6
[INFO] [stderr]   Downloaded nusb v0.1.14
[INFO] [stderr]   Downloaded serialport v4.7.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 206bf3f90abe3c5f9e344120df2577613d543ca8009eb23c231768083be82817
[INFO] running `Command { std: "docker" "start" "-a" "206bf3f90abe3c5f9e344120df2577613d543ca8009eb23c231768083be82817", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "206bf3f90abe3c5f9e344120df2577613d543ca8009eb23c231768083be82817", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "206bf3f90abe3c5f9e344120df2577613d543ca8009eb23c231768083be82817", kill_on_drop: false }`
[INFO] [stdout] 206bf3f90abe3c5f9e344120df2577613d543ca8009eb23c231768083be82817
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a0fa11b0dbac57d42fa3d19c94911d028a3287cc80eac5fb7aa20a398da710cb
[INFO] running `Command { std: "docker" "start" "-a" "a0fa11b0dbac57d42fa3d19c94911d028a3287cc80eac5fb7aa20a398da710cb", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling android-build v0.1.3
[INFO] [stderr]    Compiling rustix v0.38.44
[INFO] [stderr]    Compiling glob v0.3.2
[INFO] [stderr]    Compiling cesu8 v1.1.0
[INFO] [stderr]    Compiling jni-sys v0.3.0
[INFO] [stderr]    Compiling libudev-sys v0.1.4
[INFO] [stderr]    Compiling libloading v0.7.4
[INFO] [stderr]    Compiling combine v4.6.7
[INFO] [stderr]    Compiling linux-raw-sys v0.4.15
[INFO] [stderr]    Compiling fastrand v2.3.0
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling java-locator v0.1.9
[INFO] [stderr]    Compiling futures-lite v2.6.0
[INFO] [stderr]    Compiling jni-min-helper v0.3.1
[INFO] [stderr]    Compiling proc-macro-error2 v2.0.1
[INFO] [stderr]    Compiling nix v0.26.4
[INFO] [stderr]    Compiling libudev v0.3.0
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling getset v0.1.6
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling unescaper v0.1.6
[INFO] [stderr]    Compiling serialport v4.7.2
[INFO] [stderr]    Compiling nusb v0.1.14
[INFO] [stderr]    Compiling jni v0.21.1
[INFO] [stderr]    Compiling android-usbser v0.2.3 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `jni_min_helper::block_for_timeout`
[INFO] [stdout]  --> usb_sync.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use jni_min_helper::block_for_timeout;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `block_for_timeout` in the root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BroadcastWaiter` in this scope
[INFO] [stdout]    --> usb_conn.rs:117:13
[INFO] [stdout]     |
[INFO] [stdout] 117 |     waiter: BroadcastWaiter,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BroadcastWaiter` in this scope
[INFO] [stdout]    --> usb_conn.rs:346:13
[INFO] [stdout]     |
[INFO] [stdout] 346 |     waiter: BroadcastWaiter,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `android_context` in this scope
[INFO] [stdout]   --> usb_conn.rs:33:23
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let context = android_context();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `android_context` in this scope
[INFO] [stdout]   --> usb_conn.rs:63:24
[INFO] [stdout]    |
[INFO] [stdout] 63 |         let activity = android_context();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BroadcastReceiver`
[INFO] [stdout]   --> usb_conn.rs:70:30
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let action_startup = BroadcastReceiver::get_intent_action(&intent_startup, env)?;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^ use of undeclared type `BroadcastReceiver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BroadcastWaiter`
[INFO] [stdout]    --> usb_conn.rs:109:5
[INFO] [stdout]     |
[INFO] [stdout] 109 |     BroadcastWaiter::build([ACTION_USB_DEVICE_ATTACHED, ACTION_USB_DEVICE_DETACHED])
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^ use of undeclared type `BroadcastWaiter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `block_for_timeout` in this scope
[INFO] [stdout]    --> usb_conn.rs:149:9
[INFO] [stdout]     |
[INFO] [stdout] 149 |         block_for_timeout(fut, timeout)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BroadcastWaiter`
[INFO] [stdout]    --> usb_conn.rs:163:30
[INFO] [stdout]     |
[INFO] [stdout] 163 |                 let action = BroadcastWaiter::get_intent_action(&intent, env)?;
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^ use of undeclared type `BroadcastWaiter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> usb_conn.rs:165:68
[INFO] [stdout]     |
[INFO] [stdout] 165 |                     ACTION_USB_DEVICE_ATTACHED => get_extra_device(intent.as_obj(), env)
[INFO] [stdout]     |                                                                    ^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `android_context` in this scope
[INFO] [stdout]    --> usb_conn.rs:242:27
[INFO] [stdout]     |
[INFO] [stdout] 242 |             let context = android_context();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `android_api_level` in this scope
[INFO] [stdout]    --> usb_conn.rs:253:28
[INFO] [stdout]     |
[INFO] [stdout] 253 |             let flags = if android_api_level() < 31 {
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BroadcastWaiter`
[INFO] [stdout]    --> usb_conn.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |         BroadcastWaiter::build([ACTION_USB_PERMISSION])
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ use of undeclared type `BroadcastWaiter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `block_for_timeout` in this scope
[INFO] [stdout]    --> usb_conn.rs:364:9
[INFO] [stdout]     |
[INFO] [stdout] 364 |         block_for_timeout(self, Duration::from_millis(10))
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^---------------------------------
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: try calling `block_for_timeout` as a method: `self.block_for_timeout(Duration::from_millis(10))`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `block_for_timeout` in this scope
[INFO] [stdout]    --> usb_conn.rs:370:9
[INFO] [stdout]     |
[INFO] [stdout] 370 |         block_for_timeout(self, timeout).ok_or(Error::from(ErrorKind::TimedOut))
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^---------------
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: try calling `block_for_timeout` as a method: `self.block_for_timeout(timeout)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> usb_conn.rs:381:53
[INFO] [stdout]     |
[INFO] [stdout] 381 |                 let Ok(dev_info) = get_extra_device(intent.as_obj(), env) else {
[INFO] [stdout]     |                                                     ^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `android_api_level` in this scope
[INFO] [stdout]    --> usb_info.rs:114:12
[INFO] [stdout]     |
[INFO] [stdout] 114 |         if android_api_level() >= 21 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `android_api_level` in this scope
[INFO] [stdout]    --> usb_info.rs:118:37
[INFO] [stdout]     |
[INFO] [stdout] 118 |             info.serial_number = if android_api_level() < 29 {
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `android-usbser` (lib) due to 18 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "a0fa11b0dbac57d42fa3d19c94911d028a3287cc80eac5fb7aa20a398da710cb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a0fa11b0dbac57d42fa3d19c94911d028a3287cc80eac5fb7aa20a398da710cb", kill_on_drop: false }`
[INFO] [stdout] a0fa11b0dbac57d42fa3d19c94911d028a3287cc80eac5fb7aa20a398da710cb
