Skip to content

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

Merged
merged 2 commits into from
Mar 2, 2021
Merged

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Mar 2, 2021

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...

@RalfJung
Copy link
Member Author

RalfJung commented Mar 2, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Mar 2, 2021

📌 Commit 2ef3338 has been approved by RalfJung

bors added a commit that referenced this pull request Mar 2, 2021
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...
@bors
Copy link
Contributor

bors commented Mar 2, 2021

⌛ Testing commit 2ef3338 with merge f440288...

@@ -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.
Copy link
Member Author

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.
Copy link
Member Author

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);
Copy link
Member Author

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.^^

@RalfJung
Copy link
Member Author

RalfJung commented Mar 2, 2021

@bors r-
oops okay turns out it's just the spans that are wrong

@RalfJung
Copy link
Member Author

RalfJung commented Mar 2, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Mar 2, 2021

📌 Commit 97e45e0 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Mar 2, 2021

⌛ Testing commit 97e45e0 with merge 0fc9aee...

@bors
Copy link
Contributor

bors commented Mar 2, 2021

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 0fc9aee to master...

@bors bors merged commit 0fc9aee into rust-lang:master Mar 2, 2021
@RalfJung RalfJung deleted the rustup branch March 2, 2021 18:53
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.

3 participants