Skip to content

feat(ogar-emitter): emit include!-safe projection headers (// not //!)#214

Merged
AdaWorldAPI merged 1 commit into
mainfrom
claude/medcare-ruff-codebook-handover-5ulx0i
Jul 19, 2026
Merged

feat(ogar-emitter): emit include!-safe projection headers (// not //!)#214
AdaWorldAPI merged 1 commit into
mainfrom
claude/medcare-ruff-codebook-handover-5ulx0i

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

emit_projection_adapters (the read-arm impl From<Row> for Domain codegen from #212) led its output with //! inner-doc lines. That rejects (E0753) when the generated file is include!'d into a module at a non-start position — which is exactly the consumer adoption pattern: include! the generated impl next to a private row type as the live From.

This switches the two header lines to plain // line comments, so the emitted file is include!-safe anywhere. A standalone-module consumer can carry its doc separately; nothing else about the output changes. Golden test (patient_projection_golden_is_pinned) updated to match.

Consumer: MedCare-rs adopts the generated Patient projection as its live impl From<PatientRow> for Patient via include! (MedCare PR #214) — this fix is what makes that include! compile.

  • 4/4 ogar-emitter projection tests green.

Generated by Claude Code

🤖 Generated with Claude Code


Generated by Claude Code

emit_projection_adapters led with //! inner-doc lines, which rustc rejects
(E0753) when the generated file is include!'d into a module at a non-start
position — exactly the consumer adoption pattern (include! the generated
impl next to a private row type as the live From). Switch the two header
lines to plain // line comments so the emitted file is include!-safe
anywhere; a standalone-module consumer can carry its doc separately.
Golden test updated. 4/4 emitter tests green.

Generated by [Claude Code](https://claude.com/claude-code)
@cursor

cursor Bot commented Jul 19, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_5d0192da-81d4-4b02-9f4e-1103df6c4637)

@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review July 19, 2026 13:31
@AdaWorldAPI
AdaWorldAPI merged commit 84369e5 into main Jul 19, 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.

2 participants