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

rustup #2161

Merged
merged 2 commits into from
May 29, 2022
Merged

rustup #2161

merged 2 commits into from
May 29, 2022

Conversation

RalfJung
Copy link
Member

Locally tests pass but rustc CI says they fail, let's see what happens...

Also clarify docs of cmpxchg_weak_failure_rate (Cc #2160).

@RalfJung
Copy link
Member Author

RalfJung commented May 28, 2022

Ah, tons of failures because dead stores get removed since rust-lang/rust#97158.

@oli-obk I wonder if it still makes sense to run the compile-fail test suite with optimizations? We will have to add black_box to more and more tests to prevent UB from being optimized away. We could run only the run-pass tests with optimizations.

@JakobDegen
Copy link
Contributor

JakobDegen commented May 28, 2022

Yeah, it doesn't seem to make much sense to run compile-fail tests with optimizations, since post optimization code is not expected to reproduce UB. I'd be happy to do the work of putting up a PR that fixes things via #[inline(never)] or black_box or such, but at that point I'm not really sure what we're testing. It seems like we'd end up just adding optimization barriers until we're testing the same thing as the non-opt case.

@RalfJung
Copy link
Member Author

All right. I disabled the opt tests entirely for now; once #2155 is fixed we can run the pass and panic tests without running the fail tests.

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented May 29, 2022

📌 Commit 23324b7 has been approved by RalfJung

bors added a commit that referenced this pull request May 29, 2022
rustup

Locally tests pass but rustc CI says they fail, let's see what happens...

Also clarify docs of cmpxchg_weak_failure_rate (Cc #2160).
@bors
Copy link
Contributor

bors commented May 29, 2022

⌛ Testing commit 23324b7 with merge 889b19e...

@bors
Copy link
Contributor

bors commented May 29, 2022

💔 Test failed - checks-actions

@RalfJung
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented May 29, 2022

📌 Commit 4248418 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented May 29, 2022

⌛ Testing commit 4248418 with merge e45f2f0...

@bors
Copy link
Contributor

bors commented May 29, 2022

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

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