]> git.lizzy.rs Git - rust.git/commit
Rewrite the improper_ctypes lint.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 25 Jun 2015 21:48:36 +0000 (14:48 -0700)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 24 Jul 2015 00:03:04 +0000 (17:03 -0700)
commit6fa17b43d351ed4f9093cf80f4044d1208044241
tree7b83ba2d846643e167815d8990a458764adebc48
parentd4d4206e5604b86fc4a9b28a8b51d99121cc3a5d
Rewrite the improper_ctypes lint.

Makes the lint a bit more accurate, and improves the quality of the diagnostic
messages by explicitly returning an error message.

The new lint is also a little more aggressive: specifically, it now
rejects tuples, and it recurses into function pointers.
14 files changed:
src/librustc/middle/ty.rs
src/librustc_lint/builtin.rs
src/librustc_lint/lib.rs
src/librustc_llvm/lib.rs
src/librustc_trans/back/msvc/registry.rs
src/libstd/rt/unwind/gcc.rs
src/libstd/sys/windows/stack_overflow.rs
src/libstd/thread/local.rs
src/test/compile-fail/issue-14309.rs
src/test/compile-fail/issue-16250.rs
src/test/compile-fail/lint-ctypes-enum.rs
src/test/compile-fail/lint-ctypes.rs
src/test/compile-fail/warn-foreign-int-types.rs
src/test/run-make/execution-engine/test.rs