Skip to content

Add combined contract attribute#118

Draft
robjtede wants to merge 1 commit into
mainfrom
codex-add-combined-contract-attribute
Draft

Add combined contract attribute#118
robjtede wants to merge 1 commit into
mainfrom
codex-add-combined-contract-attribute

Conversation

@robjtede

@robjtede robjtede commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

  • add a new #[contract(...)] attribute for grouping contract clauses in one macro invocation
  • reuse the existing contract parser/codegen path for requires, ensures, invariant, and mode-prefixed clauses
  • update the issue clippy reports unused imports when using both requires and ensures #9 regression to import only contract under deny(unused_imports)

Closes #9.

Validation

  • cargo +1.65.0 test --test ui
  • just clippy
  • just test

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3bd3901b-0bf9-4a9f-89df-3a40b3ab26f7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex-add-combined-contract-attribute

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

clippy reports unused imports when using both requires and ensures

1 participant