Uh oh!
There was an error while loading. Please reload this page.
Add harnesses for all functions in Alignment - #42
Conversation
In model-checking#33 a contract was added to `Alignment::new_unchecked`, but its verification was only implicit through `Layout`, and may be affected by future changes to the contract that was added to `Layout`. This commit remedies this by adding a separate harness just for `Alignment`.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
feliperodri
left a comment
There was a problem hiding this comment.
LGTM, but did you try the safety_constraint?
tautschnig
commented
Aug 14, 2024
No, because I can't get |
celinval
commented
Aug 14, 2024
Please see my reply above |
celinval
commented
Aug 17, 2024
Why did you revert the |
tautschnig
commented
Aug 17, 2024
I thought it was causing the compile errors, but then I realised it’s #49 that’s needed. Will continue on this once Kani and this repo are back in a working state. |
tautschnig
commented
Aug 20, 2024
Now successfully using |
…_collision, r=petrochenkov Prevent name collisions with internal implementation details The implementation of the linkage attribute inside extern blocks defines symbols starting with _rust_extern_with_linkage_. If someone tries to also define this symbol you will get a symbol conflict or even an ICE. By adding an unpredictable component to the symbol name, this becomes less of an issue. Spawned from the discussion at [#t-compiler > About static variables &model-checking#96;_rust_extern_with_linkage_&model-checking#42;&model-checking#96;](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/About.20static.20variables.20.60_rust_extern_with_linkage_*.60) cc `@ywxt` Fixesrust-lang#144940
In #33 a contract was added to
Alignment::new_unchecked, but its verification was only implicit throughLayout, and may be affected by future changes to the contract that was added toLayout. This commit remedies this by adding a separate harness just forAlignment.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.