Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalized Vec, implemented Vec::transmute_buffer. #430

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added `format` macro.
- Added `String::from_utf16`.
- Added `is_full`, `recent_index`, `oldest`, and `oldest_index` to `HistoryBuffer`
- Added an optional generic parameter to `Vec` to specify the alignment of the backing array.
- Added `transmute_buffer` unsafe method for `Vec<u8, N, A>`.
reitermarkus marked this conversation as resolved.
Show resolved Hide resolved
- Added infallible conversions from arrays to `Vec`.

### Changed
Expand Down
7 changes: 6 additions & 1 deletion cfail/ui/not-send.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,15 @@ note: required because it appears within the type `ManuallyDrop<PhantomData<*con
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
--> $RUST/core/src/mem/maybe_uninit.rs
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
note: required because it appears within the type `VecBuf<PhantomData<*const ()>, 4, u8>`
--> $HEAPLESS/src/vec.rs
|
| struct VecBuf<T, const N: usize, A> {
| ^^^^^^
note: required because it appears within the type `Vec<PhantomData<*const ()>, 4>`
--> $HEAPLESS/src/vec.rs
|
| pub struct Vec<T, const N: usize> {
| pub struct Vec<T, const N: usize, A = u8> {
| ^^^
note: required by a bound in `is_send`
--> ui/not-send.rs:14:8
Expand Down
Loading