Skip to content

rustup#2161

Merged
bors merged 2 commits into
rust-lang:masterfrom
RalfJung:rustup
May 29, 2022
Merged

rustup#2161
bors merged 2 commits into
rust-lang:masterfrom
RalfJung:rustup

Conversation

@RalfJung

Copy link
Copy Markdown
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

RalfJung commented May 28, 2022

Copy link
Copy Markdown
Member Author

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

JakobDegen commented May 28, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Member Author

@bors r+

@bors

bors commented May 29, 2022

Copy link
Copy Markdown
Contributor

📌 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

bors commented May 29, 2022

Copy link
Copy Markdown
Contributor

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

@bors

bors commented May 29, 2022

Copy link
Copy Markdown
Contributor

💔 Test failed - checks-actions

@RalfJung

Copy link
Copy Markdown
Member Author

@bors r+

@bors

bors commented May 29, 2022

Copy link
Copy Markdown
Contributor

📌 Commit 4248418 has been approved by RalfJung

@bors

bors commented May 29, 2022

Copy link
Copy Markdown
Contributor

⌛ Testing commit 4248418 with merge e45f2f0...

@bors

bors commented May 29, 2022

Copy link
Copy Markdown
Contributor

☀️ 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