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

Miri now supports catching panics #186

Merged
merged 3 commits into from Dec 9, 2019
Merged

Miri now supports catching panics #186

merged 3 commits into from Dec 9, 2019

Conversation

RalfJung
Copy link
Contributor

@RalfJung RalfJung commented Dec 6, 2019

Also fix a mistake in the .gitignore (at least on my system, this didn't actually ignore the lockfile)

@thomcc
Copy link
Contributor

thomcc commented Dec 6, 2019

This is missing https://github.com/servo/rust-smallvec/blob/master/lib.rs#L1987 too, but otherwise is awesome to see.

@RalfJung
Copy link
Contributor Author

RalfJung commented Dec 7, 2019

@thomcc that test is quite odd as it is never actually enabled even without Miri! The std feature does not seem to exist any more, but still has some references left to it in the code. I fixed that.

However, when Miri runs test_insert_many_panic, it reports a memory leak: two heap allocations of size 1 get leaked. I assume that is the two Box::new(false) in that test. Is it expected that those get leaked?

@mbrubeck
Copy link
Collaborator

mbrubeck commented Dec 8, 2019

Is it expected that those get leaked?

Yes, we intentionally leak on panic in insert_many. See #96 and 26b2490 for details.

@RalfJung
Copy link
Contributor Author

RalfJung commented Dec 9, 2019

Okay, Miri can now ignore leaks and I added that flag here. Should be good to go.

@mbrubeck
Copy link
Collaborator

mbrubeck commented Dec 9, 2019

@bors-servo r+

Thanks!

@bors-servo
Copy link
Contributor

📌 Commit ddfa856 has been approved by mbrubeck

@bors-servo
Copy link
Contributor

⌛ Testing commit ddfa856 with merge 6f0fe55...

bors-servo pushed a commit that referenced this pull request Dec 9, 2019
Miri now supports catching panics

Also fix a mistake in the .gitignore (at least on my system, this didn't actually ignore the lockfile)
@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis
Approved by: mbrubeck
Pushing 6f0fe55 to master...

@bors-servo bors-servo merged commit ddfa856 into servo:master Dec 9, 2019
@RalfJung RalfJung deleted the miri branch December 9, 2019 19:27
mbrubeck added a commit to mbrubeck/rust-smallvec that referenced this pull request Dec 19, 2019
Changes in this release:

* Added new method `SmallVec::into_boxed_slice` (servo#190).
* Added new method `IntoIter::as_slice` (servo#182).
* `IntoIter` now implements `Clone` (servo#192).
* Improved documentation and testing (servo#186, servo#189).
* Minor code cleanups (servo#176).
@mbrubeck mbrubeck mentioned this pull request Dec 19, 2019
bors-servo pushed a commit that referenced this pull request Dec 20, 2019
Version 1.1.0

Changes in this release:

* Added new method `SmallVec::into_boxed_slice` (#190).
* Added new methods `IntoIter::as_slice` and `as_mut_slice` (#182).
* `IntoIter` now implements `Clone` (#192).
* Improved documentation and testing (#186, #189).
* Minor code cleanups (#176).

Also added a simple example to the README.
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.

None yet

4 participants