rust/src/libstd
Corey Farwell 6251e4bb35 Rollup merge of #41035 - jmesmon:revert-bad-raw-fd-impls, r=aturon
Revert "Implement AsRawFd/IntoRawFd for RawFd"

This reverts commit 2cf686f2cd (#40842)

RawFd is a type alias for c_int, which is itself a type alias for i32.
As a result, adding AsRawFd and IntoRawFd impls for RawFd actually adds
them for i32.

As a result, the reverted commit makes this valid:

```
use std::os::unix::io::AsRawFd;

fn arf<T: AsRawFd>(_: T) {}

fn main() {
    arf(32i32)
}
```

Implimenting AsRawFd and IntoRawFd for i32 breaks the promises of both
those traits that their methods return a valid RawFd.

r? @aturon
cc @Mic92 @kamalmarhubi
2017-04-05 12:44:35 -04:00
..
collections Simplify hash table drops 2017-03-22 10:32:38 -07:00
ffi Merge branch 'master' into frewsxcv-osstr 2017-03-16 21:56:52 -04:00
io Rollup merge of #40763 - pirate:patch-2, r=steveklabnik 2017-03-31 16:48:26 -04:00
net Addressed requested changes for PR #40838 2017-03-27 16:38:17 +02:00
os Improve os::linux documentation (#29367) 2017-03-29 23:44:39 +02:00
prelude Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
rand Update usages of 'OSX' (and other old names) to 'macOS'. 2017-03-12 14:59:04 -04:00
sync Rollup merge of #40981 - Technius:master, r=steveklabnik 2017-04-05 12:44:27 -04:00
sys Revert "Implement AsRawFd/IntoRawFd for RawFd" 2017-04-03 10:17:59 -04:00
sys_common Replace hardcoded forward slash with path::MAIN_SEPARATOR 2017-03-30 13:51:16 +02:00
thread std::thread docs: fix link to current() 2017-04-02 12:03:54 +02:00
time std: Stabilize APIs for the 1.16.0 release 2017-01-25 16:43:01 -08:00
ascii.rs Add more std::ascii module-level docs. 2017-04-01 00:47:58 -07:00
build.rs Automate timestamp creation and build skipping for native libraries 2017-03-04 21:38:26 +03:00
Cargo.toml cleanup: remove the *san Cargo features from std 2017-03-05 14:25:47 -05:00
env.rs clarify docs for Args and ArgsOs 2017-03-05 16:39:26 -05:00
error.rs Implement Error for !. 2017-03-15 23:09:29 -04:00
f32.rs Get linkchecker clean 2017-02-21 14:02:12 -05:00
f64.rs Get linkchecker clean 2017-02-21 14:02:12 -05:00
fs.rs Improve documentation for std::fs::DirBuilder 2017-04-02 04:06:29 +02:00
lib.rs Rollup merge of #40556 - cramertj:stabilize-pub-restricted, r=petrochenkov 2017-03-20 23:44:59 -04:00
macros.rs Get linkchecker clean 2017-02-21 14:02:12 -05:00
memchr.rs std: Move platform specific memchr code into sys 2016-10-01 19:33:02 +00:00
num.rs travis: Get an emscripten builder online 2017-01-19 13:54:19 -08:00
panic.rs std: Relax UnwindSafe impl for Unique 2017-02-21 14:36:24 -08:00
panicking.rs Remove function invokation parens from documentation links. 2017-03-13 21:43:18 -04:00
path.rs Fix a typo in path.rs docs 2017-03-19 07:02:20 +01:00
primitive_docs.rs Rollup merge of #40703 - GuillaumeGomez:pointer-docs, r=steveklabnik 2017-03-31 16:48:24 -04:00
process.rs Update process.rs 2017-03-30 09:55:44 +02:00
rt.rs std: remove a workaround for privacy limitations that isn't necessary anymore 2017-03-13 18:42:23 -07:00