Skip to content

refactor(completion): make Abandoned opaque - #249

Merged
tisonkun merged 1 commit into
apache:mainfrom
QwQBiG:refactor/completion-abandoned
Aug 30, 2026
Merged

refactor(completion): make Abandoned opaque#249
tisonkun merged 1 commit into
apache:mainfrom
QwQBiG:refactor/completion-abandoned

Conversation

@QwQBiG

@QwQBiG QwQBiG commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • give completion::Abandoned a private unit field, following the existing PoolIsEmpty(()) pattern, so downstream code cannot directly construct or destructure it
  • update integration tests to verify abandonment without constructing the error
  • preserve its zero-sized layout, Copy semantics, and completion behavior

Follow-up to #240.

Signed-off-by: QwQBiG <baigaozi114514@gmail.com>

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tisonkun
tisonkun merged commit ad25b99 into apache:main Aug 30, 2026
10 checks passed
@QwQBiG
QwQBiG deleted the refactor/completion-abandoned branch August 30, 2026 16:35
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