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

Add Array impl for [T; 0] #88

Merged
merged 1 commit into from
Mar 20, 2018
Merged

Conversation

eira-fransham
Copy link
Contributor

@eira-fransham eira-fransham commented Mar 20, 2018

This seems useless but has benefits in generic contexts (plus, with smart-enough compiler optimisations this could conceivably compile to equivalent code to Vec<T>).


This change is Reviewable

@jdm
Copy link
Member

jdm commented Mar 20, 2018

@bors-servo r+
Thanks!

@bors-servo
Copy link
Contributor

📌 Commit cccd873 has been approved by jdm

bors-servo pushed a commit that referenced this pull request Mar 20, 2018
Add Array impl for [T; 0]

This seems useless but has benefits in generic contexts (plus, with smart-enough compiler optimisations this could conceivably compile to equivalent code to `Vec<T>`).

<!-- 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/88)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

⌛ Testing commit cccd873 with merge 4749fc2...

@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: jdm
Pushing 4749fc2 to master...

@bors-servo bors-servo merged commit cccd873 into servo:master Mar 20, 2018
@eira-fransham
Copy link
Contributor Author

Wow, that was fast!

mbrubeck added a commit to mbrubeck/rust-smallvec that referenced this pull request Apr 6, 2018
Change log for this release:

* Add `smallvec!` macro (servo#90)
* Implement `Array` trait for `[T; 0]` (servo#88)
* Add `resize` method (servo#82)
* Correct a typo in the docs (servo#81)
@mbrubeck mbrubeck mentioned this pull request Apr 6, 2018
bors-servo pushed a commit that referenced this pull request Apr 23, 2018
Version 0.6.1

Change log for this release:

* Add `smallvec!` macro (#90)
* Implement `Array` trait for `[T; 0]` (#88)
* Add `resize` method (#82)
* Correct a typo in the docs (#81)

<!-- 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/91)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants