-
Notifications
You must be signed in to change notification settings - Fork 385
rustup; fix tests for new MIR optimization #1729
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
Conversation
@bors r+ |
📌 Commit 2ef3338 has been approved by |
rustup; fix tests for new MIR optimization Somehow rust-lang/rust#78360 manages to mask UB. This would make sense if there were loops or things like that, but there are not, so really this is just very confusing...
@@ -27,9 +28,6 @@ pub fn main() { | |||
// 3. stack-deallocate | |||
unsafe { | |||
let j1 = spawn(move || { | |||
// Concurrent allocate the memory. | |||
// Uses relaxed semantics to not generate | |||
// a release sequence. |
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 these comments seem to be wrong here; there is no allocation and also nothing relaxed
anywhere nearby...
@@ -38,6 +36,8 @@ pub fn main() { | |||
|
|||
sleep(Duration::from_millis(200)); | |||
|
|||
// Now `stack_var` gets deallocated. |
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 think this is right, would be good to check.
|
||
sleep(Duration::from_millis(200)); | ||
|
||
drop(stack_var); |
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 removed this file since the drop
here seems to be the only difference... but drop
on an integer does nothing, and drop
is just a normal function, so I really don't understand the purpose of this.^^
@bors r- |
tests/compile-fail/sync/libc_pthread_rwlock_read_write_deadlock_single_thread.rs
Show resolved
Hide resolved
@bors r+ |
📌 Commit 97e45e0 has been approved by |
☀️ Test successful - checks-actions |
Somehow rust-lang/rust#78360 manages to mask UB. This would make sense if there were loops or things like that, but there are not, so really this is just very confusing...