-
Notifications
You must be signed in to change notification settings - Fork 346
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
update for Memory API changes #1804
Conversation
@@ -29,7 +30,7 @@ pub fn main() { | |||
// Uses relaxed semantics to not generate | |||
// a release sequence. | |||
let pointer = &*ptr.0; | |||
pointer.store(Box::into_raw(Box::new(MaybeUninit::uninit())), Ordering::Relaxed); | |||
pointer.store(Box::into_raw(Box::new_uninit()), Ordering::Relaxed); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JCTyblaidd I had to change this test as (I think) a bug got fixed where the "write" of a MaybeUninit::uninit()
into this box did not trigger the "write" hook.
stop relying on c_str/wide_str helpers in rustc This is a part of #1804 that we can already do.
This comment has been minimized.
This comment has been minimized.
dc3b8fe
to
e4462d5
Compare
CTFE core engine allocation & memory API improvemenets This is a first step towards rust-lang/miri#841. - make `Allocation` API offset-based (no more making up `Pointer`s just to access an `Allocation`) - make `Memory` API higher-level (combine checking for access and getting access into one operation) The Miri-side PR is at rust-lang/miri#1804. r? `@oli-obk`
@bors r+ |
📌 Commit d1e5eee has been approved by |
update for Memory API changes The Miri side of rust-lang/rust#85376.
@bors retry r+ |
📌 Commit e4a2715 has been approved by |
update for Memory API changes The Miri side of rust-lang/rust#85376.
💔 Test failed - checks-actions |
Oh interesting, tests are failing only for |
@bors r+ |
📌 Commit aba96b8 has been approved by |
☀️ Test successful - checks-actions |
The Miri side of rust-lang/rust#85376.