Skip to content

feat(bitfield): add enum_from_bits! macro #1239

feat(bitfield): add enum_from_bits! macro

feat(bitfield): add enum_from_bits! macro #1239

Triggered via pull request July 22, 2023 17:45
Status Failure
Total duration 10m 18s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: pull_request
changed_paths
7s
changed_paths
cargo check (host)
8m 54s
cargo check (host)
rustfmt
28s
rustfmt
clippy
7m 14s
clippy
cargo test (host)
9m 54s
cargo test (host)
build boot image (x86_64)
6m 36s
build boot image (x86_64)
cargo test (cross x64)
8m 0s
cargo test (cross x64)
docs
5m 3s
docs
Loom tests (cordyceps)
4m 9s
Loom tests (cordyceps)
Miri tests (codyceps)
3m 59s
Miri tests (codyceps)
Tests (maitake, no-default-features)
4m 0s
Tests (maitake, no-default-features)
Loom tests (maitake)
4m 1s
Loom tests (maitake)
Loom tests (mycelium-util)
2m 9s
Loom tests (mycelium-util)
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
docs: bitfield/src/bitfield.rs#L110
error: unresolved link to `enum_from_bits` --> bitfield/src/bitfield.rs:110:57 | 110 | /// generated automatically for `enum` types using the [`enum_from_bits!] macro: | ^^^^^^^^^^^^^^^^ no item named `enum_from_bits` in scope | = note: `macro_rules` named `enum_from_bits` exists in this crate, but it is not in scope at this link's location = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
docs: bitfield/src/bitfield.rs#L112
error: could not parse code block as Rust code --> bitfield/src/bitfield.rs:112:5 | 112 | /// ``` | _____^ 113 | | /// use mycelium_bitfield::{bitfield, enum_from_bits, FromBits}; 114 | | /// 115 | | /// // An enum type can implement the `FromBits` trait if it has a ... | 195 | | /// assert!(invalid.try_get(TypedBitfield::ENUM_VALUE).is_err()); 196 | | /// ``` | |_______^ | = note: error from rustc: unknown start of token: ` = note: error from rustc: unknown start of token: ` = note: error from rustc: unknown start of token: ` = note: error from rustc: unknown start of token: ` = note: `-D rustdoc::invalid-rust-codeblocks` implied by `-D warnings` help: mark blocks that do not contain Rust code as text | 112 | /// ```text | ++++
docs: bitfield/src/from_bits.rs#L94
error: could not parse code block as Rust code --> bitfield/src/from_bits.rs:94:5 | 94 | /// ```rust,compile_fail | _____^ 95 | | /// mycelium_bitfield::enum_from_bits! { 96 | | /// /// This won't work. Don't do this. 97 | | /// enum InvalidRepr<i32> { ... | 101 | | /// } 102 | | /// ``` | |_______^ | = note: error from rustc: this file contains an unclosed delimiter
docs
Process completed with exit code 1.
cargo check (host): trace/src/embedded_graphics.rs#L132
warning: unused variable: `actual_point` --> trace/src/embedded_graphics.rs:132:17 | 132 | Err(actual_point) => unsafe { | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual_point` | = note: `#[warn(unused_variables)]` on by default