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

enable Miri leak checker #209

Merged
merged 2 commits into from
Apr 11, 2020
Merged

enable Miri leak checker #209

merged 2 commits into from
Apr 11, 2020

Conversation

RalfJung
Copy link
Contributor

@RalfJung RalfJung commented Apr 11, 2020

Works around #208

@@ -865,6 +865,8 @@ impl<A: Array> SmallVec<A> {

/// Insert multiple elements at position `index`, shifting all following elements toward the
/// back.
///
/// Note: when the iterator panics, this can leak memory.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this when I read that the leak was intentional; if this is still considered a bug I can also remove it again.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep it for now, and remove it if/when the leak is fixed.

@mbrubeck
Copy link
Collaborator

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit cbe3620 has been approved by mbrubeck

@bors-servo
Copy link
Contributor

⌛ Testing commit cbe3620 with merge 62ce124...

@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis
Approved by: mbrubeck
Pushing 62ce124 to master...

@bors-servo bors-servo merged commit 62ce124 into servo:master Apr 11, 2020
@RalfJung RalfJung deleted the miri branch April 24, 2020 06:05
bors-servo added a commit that referenced this pull request Jul 8, 2020
Fix leak on panic in `insert_many`.

Fixes #208 and reverts the workaround added in #209. CC @RalfJung.
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