creusot icon indicating copy to clipboard operation
creusot copied to clipboard

Error when user forgets to use `pearlite!`

Open xldenis opened this issue 2 years ago • 2 comments

We should detect and provide a helpful error when the user forgets to use pearlite! { .. } in predicates or logical functions.

see #378

xldenis avatar May 25 '22 14:05 xldenis

Or make it implicit in logic and predicate functions?

jhjourdan avatar May 25 '22 14:05 jhjourdan

We can't since attribute macros need to be attached to valid rust syntax, so there's no way for us to handle ^, forall, exists or other logical operators.

xldenis avatar May 25 '22 14:05 xldenis

We now provide an error message when logical symbols are used outside of pearlite! contexts.

xldenis avatar Sep 28 '23 09:09 xldenis