rust/src/librustc_lint
Alex Crichton bd6758a2b5 rustc: Don't lint about isize/usize in FFI
This lint warning was originally intended to help against misuse of the old Rust
`int` and `uint` types in FFI bindings where the Rust `int` was not equal to the
C `int`. This confusion no longer exists (as Rust's types are now `isize` and
`usize`), and as a result the need for this lint has become much less over time.

Additionally, starting with [the RFC for libc][rfc] it's likely that `isize` and
`usize` will be quite common in FFI bindings (e.g. they're the definition of
`size_t` and `ssize_t` on many platforms).

[rfc]: https://github.com/rust-lang/rfcs/pull/1291

This commit disables these lints to instead consider `isize` and `usize` valid
types to have in FFI signatures.
2015-09-30 14:31:01 -07:00
..
bad_style.rs Fix rebase 2015-09-22 20:46:23 +03:00
builtin.rs Rollup merge of #28681 - arielb1:destructor-fixes, r=eddyb 2015-09-27 15:05:17 +05:30
lib.rs Split out the type lints into a new module 2015-09-21 20:58:57 -04:00
types.rs rustc: Don't lint about isize/usize in FFI 2015-09-30 14:31:01 -07:00
unused.rs Auto merge of #28642 - petrochenkov:name3, r=nrc 2015-09-26 14:48:56 +00:00