Skip to content

builder: allow unsigned integers in neg and exactsdiv.#562

Draft
eddyb wants to merge 2 commits intomainfrom
eddyb/unsigned-neg-exactsdiv
Draft

builder: allow unsigned integers in neg and exactsdiv.#562
eddyb wants to merge 2 commits intomainfrom
eddyb/unsigned-neg-exactsdiv

Conversation

@eddyb
Copy link
Copy Markdown
Member

@eddyb eddyb commented Apr 13, 2026

rustc_codegen_ssa relies on signed operations on unsigned integers for e.g. size_of_val.


TODO: move this from the compute shader (see diff) to a proper test:

core::mem::size_of_val(
    const {
        struct S<T: ?Sized>(T);
        &S([]) as &S<[()]>
    },
)

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.

1 participant