Skip to content

CFI: Reorganize UI tests - #164070

Open
rcvalle wants to merge 1 commit into
rust-lang:mainfrom
rcvalle:rust-cfi-reorganize-ui-tests
Open

rcvalle wants to merge 1 commit into
rust-lang:mainfrom
rcvalle:rust-cfi-reorganize-ui-tests

Conversation

@rcvalle

@rcvalle rcvalle commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Reorganizes the CFI and KCFI UI tests under the cfi and kcfi directories similarly to how the CFI codegen tests are organized: each test now tests a type or a language construct or feature that is handled by the CFI and KCFI transform or encoding, with complete coverage of what can be exercised at run time, and is named works-with-, and tests that covered both CFI and KCFI using revisions are split into separate tests. It also adds tests for the types, language constructs, and features that were not covered (i.e., intrinsics, thread locals, builtin Clone and FnPtr implementations, pattern types, the never type, extern types, C variadics, and the generalize-pointers and normalize-integers options), removes the tests that became redundant, and changes the drop tests to run-pass, as they now pass at run time. Tests for flags/options are unchanged (only moved into the cfi and kcfi directories when at the top level).

(Created on top of #160230.)
r? @bjorn3

@rustbot rustbot added A-tidy Area: The tidy tool PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 10, 2026
@rust-log-analyzer

This comment has been minimized.

@rcvalle
rcvalle force-pushed the rust-cfi-reorganize-ui-tests branch 2 times, most recently from bbbe022 to 3965f13 Compare October 13, 2026 04:50
Reorganizes the CFI and KCFI UI tests under the cfi and kcfi
directories similarly to how the CFI codegen tests are organized: each
test now tests a type or a language construct or feature that is
handled by the CFI and KCFI transform or encoding, with complete
coverage of what can be exercised at run time, and is named
works-with-<type-construct-or-feature>, and tests that covered both CFI
and KCFI using revisions are split into separate tests.

It also adds tests for the types, language constructs, and features
that were not covered (i.e., intrinsics, thread locals, builtin Clone
and FnPtr implementations, pattern types, the never type, extern types,
C variadics, and the generalize-pointers and normalize-integers
options), removes the tests that became redundant, and changes the drop
tests to run-pass, as they now pass at run time.

Tests for flags/options and the regression tests are unchanged (moved
and renamed in the previous commit).
@rcvalle
rcvalle force-pushed the rust-cfi-reorganize-ui-tests branch from 3965f13 to b499abb Compare October 21, 2026 19:04
@rustbot

rustbot commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tidy Area: The tidy tool PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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.

4 participants