[INFO] fetching crate smokepatio 0.2.0... [INFO] testing smokepatio-0.2.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate smokepatio 0.2.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate smokepatio 0.2.0 [INFO] finished tweaking crates.io crate smokepatio 0.2.0 [INFO] tweaked toml for crates.io crate smokepatio 0.2.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate smokepatio 0.2.0 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 3 packages to latest compatible versions [INFO] [stderr] Adding embedded-io v0.6.1 (available: v0.7.1) [INFO] [stderr] Adding embedded-io-async v0.6.1 (available: v0.7.0) [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] 725e7e431481b4a4d01525299a5054c53f0096a9de8810176ec899c098ea692c [INFO] running `Command { std: "docker" "start" "-a" "725e7e431481b4a4d01525299a5054c53f0096a9de8810176ec899c098ea692c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "725e7e431481b4a4d01525299a5054c53f0096a9de8810176ec899c098ea692c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "725e7e431481b4a4d01525299a5054c53f0096a9de8810176ec899c098ea692c", kill_on_drop: false }` [INFO] [stdout] 725e7e431481b4a4d01525299a5054c53f0096a9de8810176ec899c098ea692c [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] 474a75811c4e008d631047fcb2452b51581617f54e54f95751686c6a6884e5d0 [INFO] running `Command { std: "docker" "start" "-a" "474a75811c4e008d631047fcb2452b51581617f54e54f95751686c6a6884e5d0", kill_on_drop: false }` [INFO] [stderr] Compiling embedded-io v0.6.1 [INFO] [stderr] Compiling smokepatio v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "474a75811c4e008d631047fcb2452b51581617f54e54f95751686c6a6884e5d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "474a75811c4e008d631047fcb2452b51581617f54e54f95751686c6a6884e5d0", kill_on_drop: false }` [INFO] [stdout] 474a75811c4e008d631047fcb2452b51581617f54e54f95751686c6a6884e5d0 [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] 6cbd3c0206b725c9bac162891bd5c9c2b73fa027cd7d7423a7305f8e95d5136c [INFO] running `Command { std: "docker" "start" "-a" "6cbd3c0206b725c9bac162891bd5c9c2b73fa027cd7d7423a7305f8e95d5136c", kill_on_drop: false }` [INFO] [stderr] Compiling smokepatio v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use std::io::Error; [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | use std::io::Error; [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[E0432]: unresolved import `crate::ec::raw_io` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | use crate::ec::raw_io; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `raw_io` in `ec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `super::unnamed_power::raw_io` [INFO] [stdout] --> src/ec/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | use super::unnamed_power::raw_io; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `raw_io` in `ec::unnamed_power` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(feature = "std")] [INFO] [stdout] | --------------- the item is gated behind the `std` feature [INFO] [stdout] 4 | pub mod raw_io; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | println!("Wrote {actual:#b} to LED byte"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | println!("Wrote {actual:#b} to LED byte"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | println!("LED number(s) to display?"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | println!("Wrote {actual:#b} to LED byte"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | println!("Effectively wrote {resultant:#b} to LED byte"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | println!("Press enter to return to normal"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | println!("LED number(s) to display?"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/mod.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | println!("Wrote {actual:#b} to LED breathing byte"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | println!("Press enter to return to normal"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/mod.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | println!("wrote {value:#b} for {addr:#x} port"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/mod.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | println!("Register?"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/mod.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | println!("Value(s)?"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/mod.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | println!("Wrote {value:#09b} to {register:#02x} register"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `println` in this scope [INFO] [stdout] --> src/ec/mod.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | println!("Press enter to clear register"); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | std::thread::sleep(sleep_dur); [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | std::thread::sleep(sleep_dur); [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | std::io::stdin().read_line(&mut buffer)?; [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | std::io::stdin().read_line(&mut buffer)?; [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | std::io::stdin().read_line(&mut buffer)?; [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/mod.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | std::io::stdin().read_line(&mut buffer)?; [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/mod.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | std::thread::sleep(sleep_dur); [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/mod.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | std::io::stdin().read_line(&mut buffer)?; [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/mod.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | std::io::stdin().read_line(&mut buffer)?; [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/mod.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | std::io::stdin().read_line(&mut buffer)?; [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let sleep_dur = std::time::Duration::from_millis(1000); [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] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 45 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] help: if you import `Duration`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 53 - let sleep_dur = std::time::Duration::from_millis(1000); [INFO] [stdout] 53 + let sleep_dur = Duration::from_millis(1000); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | let sleep_dur = std::time::Duration::from_millis(1000); [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] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 45 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] help: if you import `Duration`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 68 - let sleep_dur = std::time::Duration::from_millis(1000); [INFO] [stdout] 68 + let sleep_dur = Duration::from_millis(1000); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | for _ in 0..std::mem::size_of::() * 8 { [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] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 45 + use core::mem; [INFO] [stdout] | [INFO] [stdout] help: if you import `mem`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 70 - for _ in 0..std::mem::size_of::() * 8 { [INFO] [stdout] 70 + for _ in 0..mem::size_of::() * 8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` [INFO] [stdout] --> src/ec/mod.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | let sleep_dur = std::time::Duration::from_millis(10000); [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] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 15 + use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] help: if you import `Duration`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 45 - let sleep_dur = std::time::Duration::from_millis(10000); [INFO] [stdout] 45 + let sleep_dur = Duration::from_millis(10000); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `String` [INFO] [stdout] --> src/ec/unnamed_power/mod.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | let mut buffer = String::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `String` [INFO] [stdout] | help: an enum with a similar name exists: `Setting` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `String` [INFO] [stdout] --> src/ec/mod.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | let mut buffer = String::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `String` [INFO] [stdout] --> src/ec/mod.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 62 | let mut buffer = String::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `smokepatio` (lib test) due to 35 previous errors [INFO] running `Command { std: "docker" "inspect" "6cbd3c0206b725c9bac162891bd5c9c2b73fa027cd7d7423a7305f8e95d5136c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cbd3c0206b725c9bac162891bd5c9c2b73fa027cd7d7423a7305f8e95d5136c", kill_on_drop: false }` [INFO] [stdout] 6cbd3c0206b725c9bac162891bd5c9c2b73fa027cd7d7423a7305f8e95d5136c