Skip to content

Make it possible for derives to emit check(ghost) #2014

@Kixunil

Description

@Kixunil

I tried to #[derive(creusot_std::prelude::PartialEq)] on a type and then use check(ghost) on a function that compares values of that type and it failed with error about equality not being ghost-compatible. I don't see any way to solve it other than manually implementing it. An attribute controlling the attributes of the emitted function would be helpful, so that tedious manual implementation can be avoided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions