Skip to content

Commit 5f40ad2

Browse files
committed
Merge branch '⬆️-bitflags-2' into 🦆
2 parents 5cc295d + 552da48 commit 5f40ad2

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/r3_core/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### Changed
1111

1212
- **Breaking:** `{Bind,Hunk}Definer::zeroed` now requires `T: Zeroable` instead of `T: ZeroInit`.
13+
- **Breaking:** Upgrade `bitflags` to [`^2`](https://github.com/bitflags/bitflags/releases/tag/2.0.0), changing `EventGroupWaitFlags` in subtle ways:
14+
- It no longer exposes the `bits` field. Use the `bits` method to get a raw value.
15+
- The unsafe `from_bits_unchecked` method has been superseded by the safe `from_bits_retain` method.
1316

1417
### Added
1518

src/r3_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ svgbobdoc = { version = "0.3.0" }
2929
tokenlock = { version = "0.3.4", default-features = false }
3030
arrayvec = { version = "0.7.1", default-features = false }
3131
bytemuck = { version = "1.12.3", features = ["derive"] }
32-
bitflags = { version = "1.2.1" }
32+
bitflags = { version = "2.0.2" }
3333
macropol = { version = "0.1.2" }
3434
either = { version = "1.6.1", default-features = false }
3535
elain = { version = "0.3.0" }

src/r3_core/src/kernel/raw.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ bitflags::bitflags! {
388388
/// Options for [`EventGroup::wait`][1].
389389
///
390390
/// [1]: crate::kernel::event_group::EventGroupMethods::wait
391+
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
391392
pub struct EventGroupWaitFlags: u8 {
392393
/// Wait for all of the specified bits to be set.
393394
const ALL = 1 << 0;

src/r3_kernel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ num-traits = { version = "0.2.11", default-features = false }
3535
svgbobdoc = { version = "0.3.0" }
3636
tokenlock = { version = "0.3.4", default-features = false }
3737
arrayvec = { version = "0.7.1", default-features = false }
38-
bitflags = { version = "1.2.1" }
38+
bitflags = { version = "2.0.2" }
3939
macropol = { version = "0.1.2" }
4040
chrono = { version = "0.4.13", optional = true, default-features = false }
4141
either = { version = "1.6.1", default-features = false }

src/r3_kernel/src/interrupt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ impl Init for InterruptLineInit {
9292
bitflags::bitflags! {
9393
/// Flags for [`InterruptLineInit`].
9494
#[doc(hidden)]
95+
#[derive(Debug, Clone, Copy)]
9596
pub struct InterruptLineInitFlags: u32 {
9697
const ENABLE = 1 << 0;
9798
const SET_PRIORITY = 1 << 1;

0 commit comments

Comments
 (0)