1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-10 00:00:39 -08:00

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Decl struct predicates as pure

This commit is contained in:
Andrea Corallo 2021-12-01 11:23:25 +01:00
parent ec3b6fa8e1
commit c35c86a353

View file

@ -3050,7 +3050,7 @@ To see the documentation for a defined struct type, use
`(,predicate cl-x))))
(when pred-form
(push `(,defsym ,predicate (cl-x)
(declare (side-effect-free error-free))
(declare (side-effect-free error-free) (pure t))
,(if (eq (car pred-form) 'and)
(append pred-form '(t))
`(and ,pred-form t)))