-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[builder(on(_, transparent))]
attribute
#155
Conversation
WalkthroughThe changes in this pull request focus on error messages related to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Compiler
participant ErrorHandler
User->>Compiler: Submit Rust code with #[builder(...)]
Compiler->>ErrorHandler: Check for attribute errors
ErrorHandler->>Compiler: Return error messages for:
ErrorHandler-->>User: Display errors (redundant attributes, unsupported syntax, etc.)
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (6)
📒 Files selected for processing (1)
🔇 Additional comments (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Implements the
#[builder(on(_, transparent)]
that is part of #35.Unfortunately, this initial implementation is a bit limited (but still useful!). There are two restrictions:
#[builder(on(_, transparent))]
with an_
pattern. No other patterns will be accepted (compile error)transparent
in the firston
. This doesn't compile:#[builder(on(String, into), on(_, transparent))]
. Reorder the clauses to this instead:#[builder(on(_, transparent), on(String, into))]
I decided to postpone the extended design #152 for
on
for later. It's a really complex feature that I'd rather not do as part of the initial3.0
. It's possible to implement that in a minor release (no breaking changes are expected).This PR doesn't include the documentation for this feature. The docs for all the new behaviors and attributes will be submitted in a separate PR.
Summary by CodeRabbit
#[builder(...)]
attribute usage, addressing redundancy, unsupported syntax, and nested attributes.on(...)
clauses, including order and parameter specifications.transparent
option withinon(...)
clauses.