[INFO] cloning repository https://github.com/Osama530/stm32_i2c [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Osama530/stm32_i2c" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOsama530%2Fstm32_i2c", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOsama530%2Fstm32_i2c'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 56274ecd5f5631506f92e4e2114471b695293629 [INFO] checking Osama530/stm32_i2c/56274ecd5f5631506f92e4e2114471b695293629 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOsama530%2Fstm32_i2c" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Osama530/stm32_i2c on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/Osama530/stm32_i2c [INFO] finished tweaking git repo https://github.com/Osama530/stm32_i2c [INFO] tweaked toml for git repo https://github.com/Osama530/stm32_i2c written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Osama530/stm32_i2c 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cortex-m v0.6.2 [INFO] [stderr] Downloaded stm32f3 v0.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 80fdf3ef60b707669152c1a71c7d51f9d28f49fb5b03c1c5267ca3540928267b [INFO] running `Command { std: "docker" "start" "-a" "80fdf3ef60b707669152c1a71c7d51f9d28f49fb5b03c1c5267ca3540928267b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80fdf3ef60b707669152c1a71c7d51f9d28f49fb5b03c1c5267ca3540928267b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80fdf3ef60b707669152c1a71c7d51f9d28f49fb5b03c1c5267ca3540928267b", kill_on_drop: false }` [INFO] [stdout] 80fdf3ef60b707669152c1a71c7d51f9d28f49fb5b03c1c5267ca3540928267b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b19732d9bcd651d14262def9a501786dd0e650c8e5948ea16fdce0d965d04074 [INFO] running `Command { std: "docker" "start" "-a" "b19732d9bcd651d14262def9a501786dd0e650c8e5948ea16fdce0d965d04074", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cortex-m v0.6.2 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Compiling syn v1.0.18 [INFO] [stderr] Checking vcell v0.1.2 [INFO] [stderr] Compiling cortex-m-semihosting v0.3.5 [INFO] [stderr] Checking volatile-register v0.2.0 [INFO] [stderr] Compiling cortex-m-rt v0.6.12 [INFO] [stderr] Checking r0 v0.2.2 [INFO] [stderr] Compiling stm32f3 v0.10.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling i2c v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking as-slice v0.1.3 [INFO] [stderr] Checking aligned v0.3.2 [INFO] [stderr] Checking panic-semihosting v0.5.3 [INFO] [stderr] Compiling cortex-m-rt-macros v0.1.8 [INFO] [stdout] warning: unused import: `hprint` [INFO] [stdout] --> src/main.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | use cortex_m_semihosting::{hprint, hprintln}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stm32f3::stm32f303` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stm32f3::stm32f303; [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: `hprint` [INFO] [stdout] --> src/main.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | use cortex_m_semihosting::{hprint, hprintln}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stm32f3::stm32f303` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use stm32f3::stm32f303; [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_semihosting` (which `i2c` depends on) [INFO] [stdout] = note: first definition in `panic_semihosting` loaded from /opt/rustwide/target/debug/deps/libpanic_semihosting-87e83e50f0832b07.rmeta [INFO] [stdout] = note: second definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e0ee872a6f64065a.rlib [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `i2c` (bin "i2c" test) due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | rcc.ahbenr.write(|w| unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | portb.moder.write(|w| unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | portb.ospeedr.write(|w| unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | i2c.timingr.write(|w| unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | i2c.cr2.write(|w| unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:104:24 [INFO] [stdout] | [INFO] [stdout] 104 | i2c.txdr.write(|w| unsafe { w.txdata().bits(IRA_REG_M) }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/main.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | i2c.cr2.write(|w| unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `i2c` (bin "i2c") due to 2 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b19732d9bcd651d14262def9a501786dd0e650c8e5948ea16fdce0d965d04074", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b19732d9bcd651d14262def9a501786dd0e650c8e5948ea16fdce0d965d04074", kill_on_drop: false }` [INFO] [stdout] b19732d9bcd651d14262def9a501786dd0e650c8e5948ea16fdce0d965d04074