[INFO] fetching crate shared-bus 0.3.1... [INFO] testing shared-bus-0.3.1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate shared-bus 0.3.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate shared-bus 0.3.1 [INFO] finished tweaking crates.io crate shared-bus 0.3.1 [INFO] tweaked toml for crates.io crate shared-bus 0.3.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate shared-bus 0.3.1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 31 packages to latest compatible versions [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] [stderr] Adding embedded-hal v1.0.0-alpha.9 (available: v1.0.0) [INFO] [stderr] Adding embedded-hal-mock v0.9.0 (available: v0.11.1) [INFO] [stderr] Adding spin v0.9.8 (available: v0.10.0) [INFO] [stderr] Adding xtensa-lx v0.8.0 (available: v0.11.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded embedded-hal-mock v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2de4d8372720acd153392fd9f01864d90f8dd7271d32ac51ff2b1d347ad48ca0 [INFO] running `Command { std: "docker" "start" "-a" "2de4d8372720acd153392fd9f01864d90f8dd7271d32ac51ff2b1d347ad48ca0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2de4d8372720acd153392fd9f01864d90f8dd7271d32ac51ff2b1d347ad48ca0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2de4d8372720acd153392fd9f01864d90f8dd7271d32ac51ff2b1d347ad48ca0", kill_on_drop: false }` [INFO] [stdout] 2de4d8372720acd153392fd9f01864d90f8dd7271d32ac51ff2b1d347ad48ca0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8de069b805da189f1d5616e9cbc98582124fd5a9bc40293a55859e310414133c [INFO] running `Command { std: "docker" "start" "-a" "8de069b805da189f1d5616e9cbc98582124fd5a9bc40293a55859e310414133c", kill_on_drop: false }` [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling shared-bus v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "8de069b805da189f1d5616e9cbc98582124fd5a9bc40293a55859e310414133c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8de069b805da189f1d5616e9cbc98582124fd5a9bc40293a55859e310414133c", kill_on_drop: false }` [INFO] [stdout] 8de069b805da189f1d5616e9cbc98582124fd5a9bc40293a55859e310414133c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e18c91b0e0f871e971d94dc866083229509fcf38106c42016cddfdf9b4e88155 [INFO] running `Command { std: "docker" "start" "-a" "e18c91b0e0f871e971d94dc866083229509fcf38106c42016cddfdf9b4e88155", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num v0.3.1 [INFO] [stderr] Compiling embedded-time v0.12.1 [INFO] [stderr] Compiling embedded-hal-mock v0.9.0 [INFO] [stderr] Compiling shared-bus v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `new_std` in `shared_bus` [INFO] [stdout] --> tests/adc.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | shared_bus::new_std!(adc::Mock = device.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^ could not find `new_std` in `shared_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `new_std` in `shared_bus` [INFO] [stdout] --> tests/i2c.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | shared_bus::new_std!(i2c::Mock = device.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^ could not find `new_std` in `shared_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `new_std` in `shared_bus` [INFO] [stdout] --> tests/adc.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | shared_bus::new_std!(adc::Mock = device.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^ could not find `new_std` in `shared_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `new_std` in `shared_bus` [INFO] [stdout] --> tests/i2c.rs:98:31 [INFO] [stdout] | [INFO] [stdout] 98 | let manager = shared_bus::new_std!(i2c::Mock = device.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^ could not find `new_std` in `shared_bus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/mutex.rs:157:16 [INFO] [stdout] | [INFO] [stdout] 157 | let m: std::sync::Mutex<_> = BusMutex::create(t); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `std` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `std`, use `cargo add std` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BusManagerStd` in crate `shared_bus` [INFO] [stdout] --> tests/i2c.rs:29:39 [INFO] [stdout] | [INFO] [stdout] 29 | let manager: &'static shared_bus::BusManagerStd<_> = [INFO] [stdout] | ^^^^^^^^^^^^^ help: a struct with a similar name exists: `BusManager` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/manager.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct BusManager { [INFO] [stdout] | ------------------------ similarly named struct `BusManager` defined here [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:196:10 [INFO] [stdout] | [INFO] [stdout] 196 | pub type BusManagerStd = BusManager<::std::sync::Mutex>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `std` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:195:7 [INFO] [stdout] | [INFO] [stdout] 195 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BusManagerStd` in crate `shared_bus` [INFO] [stdout] --> tests/adc.rs:47:39 [INFO] [stdout] | [INFO] [stdout] 47 | let manager: &'static shared_bus::BusManagerStd<_> = [INFO] [stdout] | ^^^^^^^^^^^^^ help: a struct with a similar name exists: `BusManager` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/manager.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct BusManager { [INFO] [stdout] | ------------------------ similarly named struct `BusManager` defined here [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:196:10 [INFO] [stdout] | [INFO] [stdout] 196 | pub type BusManagerStd = BusManager<::std::sync::Mutex>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `std` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:195:7 [INFO] [stdout] | [INFO] [stdout] 195 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BusManagerStd` in crate `shared_bus` [INFO] [stdout] --> tests/adc.rs:86:39 [INFO] [stdout] | [INFO] [stdout] 86 | let manager: &'static shared_bus::BusManagerStd<_> = [INFO] [stdout] | ^^^^^^^^^^^^^ help: a struct with a similar name exists: `BusManager` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/manager.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub struct BusManager { [INFO] [stdout] | ------------------------ similarly named struct `BusManager` defined here [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:196:10 [INFO] [stdout] | [INFO] [stdout] 196 | pub type BusManagerStd = BusManager<::std::sync::Mutex>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `std` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:195:7 [INFO] [stdout] | [INFO] [stdout] 195 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `shared-bus` (test "i2c") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `shared-bus` (test "adc") due to 4 previous errors [INFO] [stdout] error[E0599]: no method named `to_string` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/mutex.rs:156:26 [INFO] [stdout] | [INFO] [stdout] 156 | let t = "hello ".to_string(); [INFO] [stdout] | ^^^^^^^^^ method not found in `&'static str` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `ToString` which provides `to_string` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 152 + use alloc::string::ToString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&mut _` [INFO] [stdout] --> src/mutex.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | BusMutex::lock(&m, |s| { [INFO] [stdout] | ^ [INFO] [stdout] 160 | s.push_str("world"); [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 159 | BusMutex::lock(&m, |s: &mut _| { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `shared-bus` (lib test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "e18c91b0e0f871e971d94dc866083229509fcf38106c42016cddfdf9b4e88155", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e18c91b0e0f871e971d94dc866083229509fcf38106c42016cddfdf9b4e88155", kill_on_drop: false }` [INFO] [stdout] e18c91b0e0f871e971d94dc866083229509fcf38106c42016cddfdf9b4e88155