Skip to content

Update MIR validation and test it #286

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

Merged
merged 10 commits into from
Aug 5, 2017
Merged

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Aug 4, 2017

Once the next nightly has rust-lang/rust#43403, this PR should make things compile again. :)

<std::heap::Heap as std::heap::Alloc>::|\
<std::mem::ManuallyDrop<T>><std::heap::AllocErr>::new$|\
<std::mem::ManuallyDrop<T> as std::ops::DerefMut><std::heap::AllocErr>::deref_mut$|\
std::sync::atomic::AtomicBool::get_mut$|\
Copy link
Contributor

Choose a reason for hiding this comment

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

Did some of these get lost?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not lost, but there are fewer exceptions now because I switched from -Zmir-emit-validate=2 (full validation everywhere) to -Zmir-emit-validate=1 (only limited validation in functions that have unsafe blocks).

@oli-obk
Copy link
Contributor

oli-obk commented Aug 4, 2017

lgtm after travis and one question.

@RalfJung
Copy link
Member Author

RalfJung commented Aug 4, 2017

Right, travis of course fails because current nightly does not have the new statement yet. Not sure when exactly nightlies get built; if it is midnight UTC then that would be rather soon ;)

@RalfJung
Copy link
Member Author

RalfJung commented Aug 5, 2017

Yay, Travis agrees that this all passes. :-)))

@RalfJung RalfJung merged commit 2a1d766 into rust-lang:master Aug 5, 2017
@RalfJung RalfJung deleted the mir-validate branch August 5, 2017 05:02
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.

2 participants