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-unleashed: test that we detect heap allocations #71276

Merged
merged 2 commits into from
Apr 19, 2020

Conversation

RalfJung
Copy link
Member

This removes the second-to-last use of IS_SUPPORTED_IN_MIRI = false.

r? @ecstatic-morse @oli-obk

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 18, 2020
@@ -0,0 +1,14 @@
// compile-flags: -Zunleash-the-miri-inside-of-you
#![feature(const_mut_refs, box_syntax)]
Copy link
Member Author

Choose a reason for hiding this comment

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

I was quite surprised that I had to add const_mut_refs here, given that I unleashed miri. Is that expected?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. That was an explicit choice:

// If an operation is supported in miri (and is not already controlled by a feature gate) it
// can be turned on with `-Zunleash-the-miri-inside-of-you`.
let is_unleashable = O::IS_SUPPORTED_IN_MIRI && O::feature_gate().is_none();

@ecstatic-morse
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 18, 2020

📌 Commit cf3470a has been approved by ecstatic-morse

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 18, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Apr 18, 2020
…ic-morse

miri-unleashed: test that we detect heap allocations

This removes the second-to-last use of `IS_SUPPORTED_IN_MIRI = false`.

r? @ecstatic-morse @oli-obk
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 18, 2020
Rollup of 5 pull requests

Successful merges:

 - rust-lang#71271 (Move `MapInPlace` to rustc_data_structures)
 - rust-lang#71276 (miri-unleashed: test that we detect heap allocations)
 - rust-lang#71283 (Minor improvements to -Zprofile)
 - rust-lang#71287 (Explain why we shouldn't add inline attr to into_vec)
 - rust-lang#71303 (remove build warnings)

Failed merges:

r? @ghost
@bors bors merged commit 404e067 into rust-lang:master Apr 19, 2020
@RalfJung RalfJung deleted the miri-unleash-box branch April 20, 2020 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants