Skip to content

AstGen: update @errorCast to maybe eval to err#21293

Merged
mlugg merged 1 commit intoziglang:masterfrom
mikdusan:issue-20371.BuiltinFn
Sep 3, 2024
Merged

AstGen: update @errorCast to maybe eval to err#21293
mlugg merged 1 commit intoziglang:masterfrom
mikdusan:issue-20371.BuiltinFn

Conversation

@mikdusan
Copy link
Member

@mikdusan mikdusan commented Sep 3, 2024

Consequently, AstGen.ret() now passes the error code to .defer_error_code. Previously, the error union value was passed.

closes #20371

@mlugg mlugg enabled auto-merge (rebase) September 3, 2024 18:07
Consequently, `AstGen.ret()` now passes the error code to
`.defer_error_code`. Previously, the error union value was passed.

closes ziglang#20371
@mikdusan mikdusan force-pushed the issue-20371.BuiltinFn branch from 5ae92ef to a74dd79 Compare September 3, 2024 18:38
@mlugg mlugg merged commit 7a4d699 into ziglang:master Sep 3, 2024
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.

errdefer capture is an error union instead of error set when the function returns an @errorCasted error

2 participants