Warn about DEFSTRUCTs that appear after use of the accessors and/or predicate.
commit8807f3f432276f8f7ceee5afd11343a8a6a79429
authorDouglas Katzman <dougk@google.com>
Mon, 19 Jan 2015 18:40:07 +0000 (19 13:40 -0500)
committerDouglas Katzman <dougk@google.com>
Mon, 19 Jan 2015 18:42:22 +0000 (19 13:42 -0500)
tree360ad73385d777962b5d89190c41641cbf2c533b
parent5d97a47e89c7a7884e846888d008fa1e3a69ecd4
Warn about DEFSTRUCTs that appear after use of the accessors and/or predicate.

As per previous similar changes, 4 out of 4 hackers surveyed
consider this poor style, and not merely a compiler efficiency note.

SBCL's self-build gets 23 such warnings.
NEWS
package-data-list.lisp-expr
src/code/defstruct.lisp
src/code/uncross.lisp
src/cold/chill.lisp
src/compiler/info-functions.lisp
src/compiler/ir1report.lisp
tests/style-warnings.impure.lisp