[INFO] fetching crate rust-on-rv32i 0.0.14... [INFO] checking rust-on-rv32i-0.0.14 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate rust-on-rv32i 0.0.14 into /workspace/builds/worker-4-tc2/source [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config [INFO] started tweaking crates.io crate rust-on-rv32i 0.0.14 [INFO] finished tweaking crates.io crate rust-on-rv32i 0.0.14 [INFO] tweaked toml for crates.io crate rust-on-rv32i 0.0.14 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-on-rv32i 0.0.14 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rust-on-rv32i 0.0.14 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 046ca9c9f1b3dbfd3e62fbdac456cfefa37f21060d5e68b8b930a2b523745d55 [INFO] running `Command { std: "docker" "start" "-a" "046ca9c9f1b3dbfd3e62fbdac456cfefa37f21060d5e68b8b930a2b523745d55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "046ca9c9f1b3dbfd3e62fbdac456cfefa37f21060d5e68b8b930a2b523745d55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "046ca9c9f1b3dbfd3e62fbdac456cfefa37f21060d5e68b8b930a2b523745d55", kill_on_drop: false }` [INFO] [stdout] 046ca9c9f1b3dbfd3e62fbdac456cfefa37f21060d5e68b8b930a2b523745d55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa20efa19c1c66f9b3d072ce077100d3867f4ca3cb9d518d0a2b816e0f454377 [INFO] running `Command { std: "docker" "start" "-a" "fa20efa19c1c66f9b3d072ce077100d3867f4ca3cb9d518d0a2b816e0f454377", kill_on_drop: false }` [INFO] [stderr] Checking rust-on-rv32i v0.0.14 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/lib/fe310/uart.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | while ((ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1) { } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - while ((ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1) { } [INFO] [stdout] 183 + while (ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1 { } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/lib/fe310/uart.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | while ((ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1) {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 189 - while ((ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1) {} [INFO] [stdout] 189 + while (ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1 {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/lib/fe310/uart.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | while ((ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1) { } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - while ((ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1) { } [INFO] [stdout] 183 + while (ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1 { } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/lib/fe310/uart.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | while ((ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1) {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 189 - while ((ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1) {} [INFO] [stdout] 189 + while (ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1 {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/lib/dio.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn configure_pin(&self, cfg: DioConfig){} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/lib/dio.rs:72:42 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn write_pin_outlet_state(&self, v: DioLogic) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/lib/dio.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn configure_pin(&self, cfg: DioConfig){} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/lib/dio.rs:72:42 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn write_pin_outlet_state(&self, v: DioLogic) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lib/serial.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | fn do_send_byte(&self, b: u8) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I10ma` and `I20ma` are never constructed [INFO] [stdout] --> src/lib/dio.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | enum DioDriveStrength{ [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 22 | I10ma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | I20ma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lib/serial.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | fn do_send_byte(&self, b: u8) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pin`, `mode`, `func`, `pup`, and `ds` are never read [INFO] [stdout] --> src/lib/dio.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct DioConfig{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | pin: DioPin, [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | mode: DioFuncMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | func: DioMuxFunctions, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pup: DioPullUp, [INFO] [stdout] | ^^^ [INFO] [stdout] 48 | ds: DioDriveStrength, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GpioMmapRegs` is never constructed [INFO] [stdout] --> src/lib/fe310/gpio.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct GpioMmapRegs{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GPIO` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const GPIO: *mut GpioMmapRegs = 0x1001_2000 as *mut GpioMmapRegs; // private to this file [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_mask` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn generate_mask (num: u8) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enable_inlet` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | pub (crate) fn enable_inlet( p: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enable_outlet` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | pub (crate) fn enable_outlet(p: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_as_iof` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub (crate) fn set_as_iof(p: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_iof_func` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub (crate) fn select_iof_func(p: u8, s: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `I10ma` and `I20ma` are never constructed [INFO] [stdout] --> src/lib/dio.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | enum DioDriveStrength{ [INFO] [stdout] | ---------------- variants in this enum [INFO] [stdout] 22 | I10ma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | I20ma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_as_dio` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | pub (crate) fn set_as_dio(p: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_high` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | pub (crate) fn set_high( p: u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pin`, `mode`, `func`, `pup`, and `ds` are never read [INFO] [stdout] --> src/lib/dio.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct DioConfig{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | pin: DioPin, [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | mode: DioFuncMode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | func: DioMuxFunctions, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pup: DioPullUp, [INFO] [stdout] | ^^^ [INFO] [stdout] 48 | ds: DioDriveStrength, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GpioMmapRegs` is never constructed [INFO] [stdout] --> src/lib/fe310/gpio.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | struct GpioMmapRegs{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GPIO` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const GPIO: *mut GpioMmapRegs = 0x1001_2000 as *mut GpioMmapRegs; // private to this file [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_mask` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn generate_mask (num: u8) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enable_inlet` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | pub (crate) fn enable_inlet( p: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enable_outlet` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:43:16 [INFO] [stdout] | [INFO] [stdout] 43 | pub (crate) fn enable_outlet(p: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_as_iof` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | pub (crate) fn set_as_iof(p: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `select_iof_func` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | pub (crate) fn select_iof_func(p: u8, s: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_as_dio` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | pub (crate) fn set_as_dio(p: u8) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_high` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | pub (crate) fn set_high( p: u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_low` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub (crate) fn set_low(p: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_low` is never used [INFO] [stdout] --> src/lib/fe310/gpio.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub (crate) fn set_low(p: u8) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/bin/led-blink.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / fn panic(_info: &PanicInfo) -> ! { [INFO] [stdout] 16 | | loop{} [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9fbdd90241d2d923.rlib [INFO] [stdout] = note: second definition in the local crate (`led_blink`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/../lib/fe310/uart.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | while ((ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1) { } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - while ((ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1) { } [INFO] [stdout] 183 + while (ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1 { } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/../lib/fe310/uart.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | while ((ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1) {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 189 - while ((ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1) {} [INFO] [stdout] 189 + while (ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1 {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/bin/print.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / fn panic(_info: &PanicInfo) -> ! { [INFO] [stdout] 18 | | loop{} [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9fbdd90241d2d923.rlib [INFO] [stdout] = note: second definition in the local crate (`print`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/../lib/fe310/uart.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | while ((ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1) { } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 183 - while ((ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1) { } [INFO] [stdout] 183 + while (ptr::read_volatile(&(*UART0).txdata as *const u32) >> 31) == 1 { } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/bin/../lib/fe310/uart.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | while ((ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1) {} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 189 - while ((ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1) {} [INFO] [stdout] 189 + while (ptr::read_volatile(&(*UART1).txdata as *const u32) >> 31) == 1 {} [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] 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: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/bin/print.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | asm!("mv t0, {}", in(reg) PLIC_BASE); [INFO] [stdout] | ^^ --------- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] = note: `#[warn(asm_sub_register)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/bin/print.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | asm!("mv t1, {}", in(reg) PLIC_CLAIMCOMP_CTX1_OFFSET); [INFO] [stdout] | ^^ -------------------------- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/bin/print.rs:57:22 [INFO] [stdout] | [INFO] [stdout] 57 | asm!("mv t1, {}", in(reg) MIE_SET); [INFO] [stdout] | ^^ ------- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/bin/../lib/dio.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn configure_pin(&self, cfg: DioConfig){} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/../lib/dio.rs:72:42 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn write_pin_outlet_state(&self, v: DioLogic) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/bin/led-blink.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | asm!("mv t0, {}", in(reg) PLIC_BASE); [INFO] [stdout] | ^^ --------- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] = note: `#[warn(asm_sub_register)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/bin/led-blink.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | asm!("mv t1, {}", in(reg) PLIC_CLAIMCOMP_CTX1_OFFSET); [INFO] [stdout] | ^^ -------------------------- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> src/bin/led-blink.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | asm!("mv t1, {}", in(reg) MIE_SET); [INFO] [stdout] | ^^ ------- for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/../lib/serial.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | fn do_send_byte(&self, b: u8) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> src/bin/../lib/dio.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn configure_pin(&self, cfg: DioConfig){} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/print.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | for i in 1..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/../lib/dio.rs:72:42 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn write_pin_outlet_state(&self, v: DioLogic) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-on-rv32i` (bin "print") due to 1 previous error; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-on-rv32i` (bin "led-blink") due to 1 previous error; 5 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-on-rv32i` (bin "print" test) due to 1 previous error; 2 warnings emitted [INFO] [stderr] error: could not compile `rust-on-rv32i` (bin "led-blink" test) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "fa20efa19c1c66f9b3d072ce077100d3867f4ca3cb9d518d0a2b816e0f454377", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa20efa19c1c66f9b3d072ce077100d3867f4ca3cb9d518d0a2b816e0f454377", kill_on_drop: false }` [INFO] [stdout] fa20efa19c1c66f9b3d072ce077100d3867f4ca3cb9d518d0a2b816e0f454377