-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cordyceps): unsafe
MpscQueue
const constructor (#163)
In order to permit constructing a `cordyceps::MpscQueue` in a `static`, this branch adds a new `const fn new_with_static_stub` to `MpscQueue`. This takes an `&'static T` as the stub node. Because this would potentially allow using the same stub node in multiple queues, this function is unfortunately unsafe. This branch also bumps the nightly version for `mycelium`, because `cordyceps` and `mycelium-util` now require Rust 1.61.0, for trait bounds in `const fn`s. The nightly bump required some changes to the Miri tests for cordyceps, as Miri now seems to consume more memory than it did previously. Co-authored-by: Eliza Weisman <[email protected]>
- Loading branch information
1 parent
bae38c7
commit 7a3cede
Showing
7 changed files
with
200 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[toolchain] | ||
channel = "nightly-2022-02-15" | ||
channel = "nightly-2022-05-24" | ||
components = [ | ||
"clippy", | ||
"rustfmt", | ||
"rust-src", | ||
"llvm-tools-preview", | ||
"miri" | ||
] | ||
profile = "minimal" | ||
profile = "minimal" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name = "mycelium-util" | |
version = "0.1.0" | ||
authors = ["Eliza Weisman <[email protected]>"] | ||
edition = "2018" | ||
rust-version = "1.61.0" | ||
|
||
# See more keys and their definitions at | ||
# https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters