Skip to content

Fix compilation error caused by custom backend errors on backend override - #876

Open
newpavlov wants to merge 5 commits into
masterfrom
move_custom_errors
Open

newpavlov wants to merge 5 commits into
masterfrom
move_custom_errors

Conversation

@newpavlov

Copy link
Copy Markdown
Member

This fixes potential compilation errors when backend defining a custom error is overridden using getrandom_backend.

Additionally ensures that all custom errors use unique error codes.

@ryanhossain9797

ryanhossain9797 commented Nov 6, 2026 •

Copy link
Copy Markdown

Small question: moving the win7 check above the unsupported / extern_impl overrides means that on a -win7-windows- target, --cfg getrandom_backend="unsupported" (or extern_impl) would now pick windows_legacy instead right? Is that the desired behavior?

@newpavlov

Copy link
Copy Markdown
Member Author

Good catch! I will move it below other getrandom_backend entries later.

@newpavlov newpavlov changed the title Move definition of custom backend errors to the errors module Move definition of custom backend errors to the error module Nov 7, 2026
@newpavlov newpavlov changed the title Move definition of custom backend errors to the error module Fix compilation error caused by custom backend errors on backend override Nov 7, 2026

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants