1
Fork 0
rust/src/libstd
bors 7f53b943f9 Auto merge of #23430 - alexcrichton:io-error, r=aturon
This commit stabilizes the `ErrorKind` enumeration which is consumed by and
generated by the `io::Error` type. The purpose of this type is to serve as a
cross-platform namespace to categorize errors into. Two specific issues are
addressed as part of this stablization:

* The naming of each variant was scrutinized and some were tweaked. An example
  is how `FileNotFound` was renamed to simply `NotFound`. These names should not
  show either a Unix or Windows bias and the set of names is intended to grow
  over time. For now the names will likely largely consist of those errors
  generated by the I/O APIs in the standard library.

* The mapping of OS error codes onto kinds has been altered. Coalescing no
  longer occurs (multiple error codes become one kind). It is intended that each
  OS error code, if bound, corresponds to only one `ErrorKind`. The current set
  of error kinds was expanded slightly to include some networking errors.

This commit also adds a `raw_os_error` function which returns an `Option<i32>`
to extract the underlying raw error code from the `Error`.

Closes #16666

[breaking-change]
2015-03-19 19:15:22 +00:00
..
collections Register new snapshots 2015-03-18 16:32:32 -07:00
ffi Register new snapshots 2015-03-18 16:32:32 -07:00
fs std: Stablize io::ErrorKind 2015-03-19 09:59:21 -07:00
io Auto merge of #23430 - alexcrichton:io-error, r=aturon 2015-03-19 19:15:22 +00:00
net std: Stablize io::ErrorKind 2015-03-19 09:59:21 -07:00
num Register new snapshots 2015-03-18 16:32:32 -07:00
old_io Register new snapshots 2015-03-18 16:32:32 -07:00
old_path Register new snapshots 2015-03-18 16:32:32 -07:00
prelude Register new snapshots 2015-03-18 16:32:32 -07:00
rand Register new snapshots 2015-03-18 16:32:32 -07:00
rt Register new snapshots 2015-03-18 16:32:32 -07:00
sync Remove explicit syntax highlight from docs. 2015-03-13 19:25:18 -04:00
sys Auto merge of #23430 - alexcrichton:io-error, r=aturon 2015-03-19 19:15:22 +00:00
thread_local Example -> Examples 2015-03-11 21:11:40 -04:00
time Fix Duration::weeks docs 2015-03-04 12:16:37 +00:00
ascii.rs Deprecate range, range_step, count, distributions 2015-03-13 14:45:13 -07:00
bool.rs Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
dynamic_lib.rs Register new snapshots 2015-03-18 16:32:32 -07:00
env.rs Rollup merge of #23329 - jbcrail:rm-syntax-highlight, r=sanxiyn 2015-03-17 15:20:27 +05:30
lib.rs Rollup merge of #23392 - WiSaGaN:bugfix/fix_deprecate_link, r=Manishearth 2015-03-18 22:21:07 +05:30
macros.rs Document include! 2015-03-19 08:24:41 +05:30
os.rs Register new snapshots 2015-03-18 16:32:32 -07:00
panicking.rs Fallout of std::old_io deprecation 2015-03-13 10:00:28 -07:00
path.rs Register new snapshots 2015-03-18 16:32:32 -07:00
process.rs std: Stablize io::ErrorKind 2015-03-19 09:59:21 -07:00
rtdeps.rs fixing trailing whitespace errors 2015-02-11 14:49:07 -08:00
thread.rs Auto merge of #23330 - alexcrichton:thread-sleep, r=aturon 2015-03-17 17:15:54 +00:00
thunk.rs Switched to Box::new in many places. 2015-03-03 21:05:55 +01:00
tuple.rs Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
unit.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00