feat(bitfield): add enum_from_bits!
macro
#1239
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
cargo check (host)
8m 54s
rustfmt
28s
clippy
7m 14s
cargo test (host)
9m 54s
build boot image (x86_64)
6m 36s
cargo test (cross x64)
8m 0s
docs
5m 3s
Loom tests (cordyceps)
4m 9s
Miri tests (codyceps)
3m 59s
Tests (maitake, no-default-features)
4m 0s
Loom tests (maitake)
4m 1s
Loom tests (mycelium-util)
2m 9s
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
|