Skip to content

Fix CustomCoding try warnings - #46

Merged
vnixx merged 2 commits into
mainfrom
fix/custom-coding-try-warnings
Aug 30, 2026
Merged

vnixx merged 2 commits into
mainfrom
fix/custom-coding-try-warnings

Conversation

@vnixx

@vnixx vnixx commented Aug 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Route inline @CustomCoding closures through throwing helper methods to avoid spurious try warnings for non-throwing closures.
  • Treat empty custom encode closures as skipped encoding.
  • Reject same-side @CustomCoding and ignored annotations while allowing decode-only and encode-only combinations.

Test plan

  • swift test --filter 'testCustomCodingEmptyEncodeAndFallback|testCustomCodingSameSideIgnoredDiagnostics|customCodingNonThrowingAndSkipEncode'
  • swift test

Made with Cursor

vnixx and others added 2 commits August 30, 2026 13:49
Route generated CustomCoding through throwing helpers, skip empty encode closures, and allow combining with EncodingIgnored/DecodingIgnored.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@vnixx
vnixx marked this pull request as ready for review August 30, 2026 09:46
@vnixx
vnixx merged commit a0e91c3 into main Aug 30, 2026
2 checks passed
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