Skip to content

Commit 312c6da

Browse files
committed
---
yaml --- r: 79412 b: refs/heads/snap-stage3 c: b3f7f75 h: refs/heads/master v: v3
1 parent 5cc4f20 commit 312c6da

File tree

4 files changed

+11
-38
lines changed

4 files changed

+11
-38
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: d1dde99e4b3d43d044cdead7240bbd5f0d7a0ce5
4+
refs/heads/snap-stage3: b3f7f758b1f3df8c1d2ded808492b452e4b0e1a0
55
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/rt/uv/file.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,17 @@ impl NativeHandle<*uvll::uv_fs_t> for FsRequest {
139139
match self { &FsRequest(ptr) => ptr }
140140
}
141141
}
142-
fn sync_cleanup(loop_: &Loop, result: int)
143-
-> Result<int, UvError> {
144-
match status_to_maybe_uv_error_with_loop(loop_.native_handle(), result as i32) {
145-
Some(err) => Err(err),
146-
None => Ok(result)
147-
}
142+
143+
fn sync_cleanup(loop_: &Loop, result: int)
144+
-> Result<int, UvError> {
145+
match status_to_maybe_uv_error_with_loop(loop_.native_handle(), result as i32) {
146+
Some(err) => Err(err),
147+
None => Ok(result)
148148
}
149+
}
149150

150151
pub struct FileDescriptor(c_int);
152+
151153
impl FileDescriptor {
152154
fn new(fd: c_int) -> FileDescriptor {
153155
FileDescriptor(fd)

branches/snap-stage3/src/libstd/rt/uv/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ pub type UdpReceiveCallback = ~fn(UdpWatcher, int, Buf, SocketAddr, uint, Option
132132
pub type UdpSendCallback = ~fn(UdpWatcher, Option<UvError>);
133133

134134

135-
/// Callbacks used by StreamWatchers, set as custom data on the foreign handle
135+
/// Callbacks used by StreamWatchers, set as custom data on the foreign handle.
136+
/// XXX: Would be better not to have all watchers allocate room for all callback types.
136137
struct WatcherData {
137138
read_cb: Option<ReadCallback>,
138139
write_cb: Option<ConnectionCallback>,

branches/snap-stage3/src/libsyntax/ext/expand.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -884,36 +884,6 @@ pub fn std_macros() -> @str {
884884
)
885885
)
886886

887-
// FIXME(#6266): change the /* to /** when attributes are supported on macros
888-
// (Though even then—is it going to work according to the clear intent here?)
889-
/*
890-
A utility macro for indicating unreachable code. It will fail if
891-
executed. This is occasionally useful to put after loops that never
892-
terminate normally, but instead directly return from a function.
893-
894-
# Example
895-
896-
~~~ {.rust}
897-
fn choose_weighted_item(v: &[Item]) -> Item {
898-
assert!(!v.is_empty());
899-
let mut so_far = 0u;
900-
for v.each |item| {
901-
so_far += item.weight;
902-
if so_far > 100 {
903-
return item;
904-
}
905-
}
906-
// The above loop always returns, so we must hint to the
907-
// type checker that it isn't possible to get down here
908-
unreachable!();
909-
}
910-
~~~
911-
912-
*/
913-
macro_rules! unreachable (() => (
914-
fail!(\"internal error: entered unreachable code\");
915-
))
916-
917887
macro_rules! condition (
918888

919889
{ pub $c:ident: $input:ty -> $out:ty; } => {

0 commit comments

Comments
 (0)