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

Don't run UB in test suite #95169

Merged
merged 1 commit into from
Mar 21, 2022
Merged

Don't run UB in test suite #95169

merged 1 commit into from
Mar 21, 2022

Conversation

syvb
Copy link
Contributor

@syvb syvb commented Mar 21, 2022

This splits ui/unsafe/union.rs to make it so only the non-UB parts are run. It also means we can do more testing of the location of error messages (which are a bit different with the THIR unsafety checker). union-modification.rs has no UB (according to Miri), and union.rs has errors (but would have UB if not for those errors).

Closes #95075.
r? @bjorn3

This splits ui/unsafe/union.rs to make it so only the non-UB parts are
run. It also means we can do more testing of the location of error
messages.
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Mar 21, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 21, 2022
@bjorn3
Copy link
Member

bjorn3 commented Mar 21, 2022

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Mar 21, 2022

📌 Commit 9477feb has been approved by bjorn3

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 21, 2022
@bors
Copy link
Contributor

bors commented Mar 21, 2022

⌛ Testing commit 9477feb with merge 44628f7...

@bors
Copy link
Contributor

bors commented Mar 21, 2022

☀️ Test successful - checks-actions
Approved by: bjorn3
Pushing 44628f7 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 21, 2022
@bors bors merged commit 44628f7 into rust-lang:master Mar 21, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 21, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (44628f7): comparison url.

Summary: This benchmark run did not return any relevant results. 1 results were found to be statistically significant but too small to be relevant.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

@bjorn3
Copy link
Member

bjorn3 commented Mar 22, 2022

Updated cg_clif in bjorn3/rustc_codegen_cranelift@cf1149f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui/unsafe/union.rs test has UB
6 participants