Skip to content

fix: correct stale macro name in prqlc-macros panic message#5811

Merged
max-sixty merged 1 commit intomainfrom
fix/prql-macro-stale-name
Apr 19, 2026
Merged

fix: correct stale macro name in prqlc-macros panic message#5811
max-sixty merged 1 commit intomainfrom
fix/prql-macro-stale-name

Conversation

@prql-bot
Copy link
Copy Markdown
Collaborator

Summary

The prqlc-macros crate exports a single proc macro: prql_to_sql!. The panic message for non-string input still references the old prql! name, which would mislead users encountering the error.

No regression test — adding one would require deliberately failing macro expansion, which would block compilation. The change is a one-line text fix.

Found during nightly code survey of prqlc/prqlc-macros/src/lib.rs.

The macro is `prql_to_sql\!`, not `prql\!`. Aligns the error message
with the macro's actual name.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@max-sixty max-sixty merged commit d4269b1 into main Apr 19, 2026
35 checks passed
@max-sixty max-sixty deleted the fix/prql-macro-stale-name branch April 19, 2026 17:17
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