]> git.lizzy.rs Git - rust.git/commit
lint: Improve ffi-unsafe enum lint warning
authorAnton Lofgren <alofgren@op5.com>
Tue, 22 Jul 2014 06:33:03 +0000 (08:33 +0200)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 29 Jul 2014 22:43:21 +0000 (15:43 -0700)
commitef7d3e13e258258ec427889d3b047f0b7fda33c7
tree777ba94df1cff07ec2b8b514c1c99d93ac3d773d
parentc2ac7fde0b4715ff87467be91d57d5afd49978a2
lint: Improve ffi-unsafe enum lint warning

I think this is an improvement of the previous warning message, which
- like the comment that I removed implies - is in need of some
improvement.
I've opted to point the user in the right direction w.r.t how to fix the
problem, which I think is good form.

Not being familiar with the repr(...) attribute, I personally had to
check the lint rules myself to figure out what was wrong. Hopefully,
this will save he next person some time and headache.

Signed-off-by: Anton Lofgren <alofgren@op5.com>
src/librustc/lint/builtin.rs