Equality #128
Closed
utaal
started this conversation in
Language design
Equality
#128
Replies: 1 comment
-
|
We don't have a separate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recording the conclusion of offline discussion with @Chris-Hawblitzel:
SpecEqimpliesEqand means that==is smt equal in a spec context;StructuralimpliesEqand means that exec==is smt equal,Structuralalso implies SpecEq.Structuralis restricted to types with only exec fields.SpecEqis auto-derived (a-la Send) for #[spec] and #[proof] types, and can be manually derived for #[exec] type as long as the type doesn’t implement Eq (because of the coherence rules, we’re guaranteed that the Eq implementation, if any, is in the same compilation unit as the type).Beta Was this translation helpful? Give feedback.
All reactions