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

lib.rs: + 96-item inline support #163

Merged
merged 2 commits into from Oct 19, 2019
Merged

lib.rs: + 96-item inline support #163

merged 2 commits into from Oct 19, 2019

Conversation

@mcronce
Copy link
Contributor

mcronce commented Sep 20, 2019

Added support for [_; 96] arrays

I'm not sure how desirable this is to the broader user base, but I had a need for precisely this size for storing hex-encoded SHA384 hashes


This change is Reviewable

Copy link
Member

emilio left a comment

Looks fair, though seems like for consistency we should also have 0x600 and 0x6000 too though, right?

@bors-servo
Copy link
Contributor

bors-servo commented Oct 15, 2019

The latest upstream changes (presumably #167) made this pull request unmergeable. Please resolve the merge conflicts.

mcronce and others added 2 commits Sep 19, 2019
@emilio emilio force-pushed the mcronce:master branch 2 times, most recently from b3fbc21 to 0f197c5 Oct 19, 2019
@emilio
Copy link
Member

emilio commented Oct 19, 2019

I rebased and addressed my nit.

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Oct 19, 2019

📌 Commit 0f197c5 has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented Oct 19, 2019

Testing commit 0f197c5 with merge bef9925...

bors-servo added a commit that referenced this pull request Oct 19, 2019
lib.rs:  + 96-item inline support

Added support for `[_; 96]` arrays

I'm not sure how desirable this is to the broader user base, but I had a need for precisely this size for storing hex-encoded SHA384 hashes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/163)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 19, 2019

☀️ Test successful - checks-travis
Approved by: emilio
Pushing bef9925 to master...

@bors-servo bors-servo merged commit 0f197c5 into servo:master Oct 19, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
mbrubeck added a commit to mbrubeck/rust-smallvec that referenced this pull request Oct 30, 2019
* [breaking change] Use `MaybeUninit` internally to avoid possible undefined behavior (servo#162, servo#170).
* [breaking change] The `drain` method now takes a range argument, just like the standard `Vec::drain` (servo#145).
* [breaking change] Remove the `unreachable` function and replace it with the new standard `unreachable_unchecked` function (servo#164).
* [breaking change] Use `no_std` by default. This crate depends only on `core` and `alloc` by default. If the optional `write` feature is enabled then it depends on `std` so that `SmallVec<[u8, _]>` can implement the `std::io::Write` trait (servo#173).
* Add support for 96-element small vectors, `SmallVec<[T; 96]>` (servo#163).
* Iterators now implement `FusedIterator` (servo#172).
* Indexing now uses the standard `SliceIndex` trait (servo#166).
* Remove the deprecated `VecLike` trait (servo#165).
* Use `NonNull` internally (servo#171).
* Add automatic fuzz testing and MIRI testing (servo#168, servo#162).
* Update syntax and formatting to Rust 2018 standard (servo#174, servo#167).
@mbrubeck mbrubeck mentioned this pull request Oct 30, 2019
bors-servo added a commit that referenced this pull request Nov 2, 2019
Version 1.0.0

* Requires Rust 1.36 or later.
* [breaking change] Use `MaybeUninit` to avoid possible undefined behavior (#162, #170).
* [breaking change] The `drain` method now takes a range argument, just like the standard `Vec::drain` (#145).
* [breaking change] Remove the `unreachable` function and replace it with the new standard `unreachable_unchecked` function (#164).
* [breaking change] Use `no_std` by default. This crate depends only on `core` and `alloc` by default. If the optional `write` feature is enabled then it depends on `std` so that `SmallVec<[u8;_]>` can implement the `std::io::Write` trait (#173).
* Add support for 96-element small vectors, `SmallVec<[T; 96]>` (#163).
* Iterators now implement `FusedIterator` (#172).
* Indexing now uses the standard `SliceIndex` trait (#166).
* Remove the deprecated `VecLike` trait (#165).
* Use `NonNull` internally (#171).
* Add automatic fuzz testing and MIRI testing (#168, #162).
* Update syntax and formatting to Rust 2018 standard (#174, #167).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.