Improve warning when using private predicates in specification

This commit is contained in:
Patrick Lühne 2020-05-19 12:47:24 +02:00
parent 3bf981236a
commit c1038b398c
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -251,7 +251,7 @@ impl std::fmt::Debug for Error
predicate_declaration), predicate_declaration),
Kind::PredicateShouldNotOccurInSpecification(ref predicate_declaration) => Kind::PredicateShouldNotOccurInSpecification(ref predicate_declaration) =>
write!(formatter, write!(formatter,
"predicate {} should not occur in specification (it is not declared as an input or output predicate)", "{} should not occur in specification because its a private predicate (consider declaring it an input or output predicate)",
predicate_declaration), predicate_declaration),
Kind::RunVampire => write!(formatter, "could not run Vampire"), Kind::RunVampire => write!(formatter, "could not run Vampire"),
Kind::ProveProgram(exit_code, ref stdout, ref stderr) => Kind::ProveProgram(exit_code, ref stdout, ref stderr) =>