Skip to content

tests: codegen-llvm: Expect the new mangling scheme in bpf-abi-indirect-return#157306

Open
vadorovsky wants to merge 6 commits into
rust-lang:mainfrom
vadorovsky:vad/llvm-codegen-bpf-abi-indirect-return
Open

tests: codegen-llvm: Expect the new mangling scheme in bpf-abi-indirect-return#157306
vadorovsky wants to merge 6 commits into
rust-lang:mainfrom
vadorovsky:vad/llvm-codegen-bpf-abi-indirect-return

Conversation

@vadorovsky
Copy link
Copy Markdown
Contributor

The new Rust symbol mangling uses prefix _R instead of @_ZN.

Instead of keeping the test as only-bpf, use minicore. This way we make sure it will never get outdated again.

Make necessary changes to minicore to support the test:

  • Add implementation for integer types.
  • eq language feature and PartialEq trait.
  • index language feature and Index trait.

See individual commits for details.

r? @nagisa

@rustbot rustbot added A-test-infra-minicore Area: `minicore` test auxiliary and `//@ add-core-stubs` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 2, 2026
`c_void` is an equivalent of a C type, where non-camel-case naming is
more appropriate. The usage of `enum` is an implementation detail.
To make comparision possible in minicore, add support for the `eq`
language feature and the `ParialEq` trait, along with implementation for
all integer types.
To make indexing operations possible in minicore, add support for the
`index` language feature and the `Index` trait, along with
implementation for `[T; N]` and `[T]`.
Instead of keeping it as `only-bpf`, use minicore. This way we make sure
it will never get outdated again.
@vadorovsky vadorovsky force-pushed the vad/llvm-codegen-bpf-abi-indirect-return branch from e045560 to 2cd45a5 Compare June 2, 2026 14:33
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 2, 2026

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.

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

Labels

A-test-infra-minicore Area: `minicore` test auxiliary and `//@ add-core-stubs` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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.

3 participants