Skip to content
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

Update crates documentation with info. on #[safety_constraint(...)] attribute for structs #3405

Merged
merged 8 commits into from
Aug 2, 2024

Conversation

adpaco-aws
Copy link
Contributor

This PR updates the crates documentation we already had for the #[safety_constraint(...)] attribute to account for the changes in #3270.

The proposal includes notes/guidelines on where to use the attribute (i.e., the struct or its fields) depending on the type safety condition to be specified. Also, it removes the rs annotations on the code blocks that appear in the documentation because they don't seem to have the intended effect (the blocks are not being highlighted at all).

The current version of this documentation can be found here and here.

Related #3095

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@adpaco-aws adpaco-aws requested a review from a team as a code owner August 1, 2024 18:25
@github-actions github-actions bot added the Z-BenchCI Tag a PR to run benchmark CI label Aug 1, 2024
Copy link
Contributor

@zhassan-aws zhassan-aws left a comment

Choose a reason for hiding this comment

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

Thanks!

Only a few nits.

library/kani_macros/src/lib.rs Outdated Show resolved Hide resolved
library/kani_macros/src/lib.rs Outdated Show resolved Hide resolved
library/kani_macros/src/lib.rs Outdated Show resolved Hide resolved
library/kani_macros/src/lib.rs Outdated Show resolved Hide resolved
library/kani_macros/src/lib.rs Outdated Show resolved Hide resolved
library/kani_macros/src/lib.rs Outdated Show resolved Hide resolved
adpaco-aws and others added 4 commits August 1, 2024 19:25
Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com>
Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com>
@adpaco-aws adpaco-aws added this pull request to the merge queue Aug 2, 2024
@tautschnig tautschnig removed this pull request from the merge queue due to the queue being cleared Aug 2, 2024
@tautschnig tautschnig enabled auto-merge (squash) August 2, 2024 19:59
@tautschnig tautschnig merged commit b337081 into model-checking:main Aug 2, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-BenchCI Tag a PR to run benchmark CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants