about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-25 13:58:58 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-25 13:58:58 +0530
commite61a790495f49580fc0ee831bb07e00b4750b04a (patch)
tree0633b57a7b1982243495483c02e55e5fcd34acdf /src/libstd
parent9f8a1cb38d4d6dd16291aa0fd9f19e93e5263028 (diff)
downloadrust-e61a790495f49580fc0ee831bb07e00b4750b04a.tar.gz
rust-e61a790495f49580fc0ee831bb07e00b4750b04a.zip
Fix type inference error (fixup #22739)
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/windows/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/mod.rs b/src/libstd/sys/windows/mod.rs
index 6e3b48a8f64..5bb2a134533 100644
--- a/src/libstd/sys/windows/mod.rs
+++ b/src/libstd/sys/windows/mod.rs
@@ -198,7 +198,7 @@ pub fn set_nonblocking(fd: sock_t, nb: bool) {
     if unsafe { c::ioctlsocket(fd, c::FIONBIO, &mut set) } != 0 {
         // The above function should not return an error unless we passed it
         // invalid parameters. Panic on errors.
-        Err(last_error()).unwrap();
+        panic!("set_nonblocking called with invalid parameters: {}", last_error());
     }
 }