Skip to content

Commit 42340a3

Browse files
committed
---
yaml --- r: 112446 b: refs/heads/try c: 67ee480 h: refs/heads/master v: v3
1 parent 83dcec0 commit 42340a3

File tree

7 files changed

+5
-126
lines changed

7 files changed

+5
-126
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: a72a6ec897e1b8d7e125be9bb4b60d89c79aa4c0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b5dd3f05fe95168b5569d0f519636149479eb6ac
5-
refs/heads/try: 07598fc8cc7049594afee14528bda4019d8dda14
5+
refs/heads/try: 67ee480936947aa5b1953b7b6e48a0c7a191501e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libnative/io/pipe_unix.rs

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -155,77 +155,6 @@ impl rtio::RtioPipe for UnixStream {
155155
}
156156
}
157157

158-
////////////////////////////////////////////////////////////////////////////////
159-
// Unix Datagram
160-
////////////////////////////////////////////////////////////////////////////////
161-
162-
pub struct UnixDatagram {
163-
inner: UnsafeArc<Inner>,
164-
}
165-
166-
impl UnixDatagram {
167-
pub fn connect(addr: &CString) -> IoResult<UnixDatagram> {
168-
connect(addr, libc::SOCK_DGRAM).map(|inner| {
169-
UnixDatagram { inner: UnsafeArc::new(inner) }
170-
})
171-
}
172-
173-
pub fn bind(addr: &CString) -> IoResult<UnixDatagram> {
174-
bind(addr, libc::SOCK_DGRAM).map(|inner| {
175-
UnixDatagram { inner: UnsafeArc::new(inner) }
176-
})
177-
}
178-
179-
fn fd(&self) -> fd_t { unsafe { (*self.inner.get()).fd } }
180-
181-
pub fn recvfrom(&mut self, buf: &mut [u8]) -> IoResult<(uint, CString)> {
182-
let mut storage: libc::sockaddr_storage = unsafe { intrinsics::init() };
183-
let storagep = &mut storage as *mut libc::sockaddr_storage;
184-
let mut addrlen: libc::socklen_t =
185-
mem::size_of::<libc::sockaddr_storage>() as libc::socklen_t;
186-
let ret = retry(|| unsafe {
187-
libc::recvfrom(self.fd(),
188-
buf.as_ptr() as *mut libc::c_void,
189-
buf.len() as libc::size_t,
190-
0,
191-
storagep as *mut libc::sockaddr,
192-
&mut addrlen) as libc::c_int
193-
});
194-
if ret < 0 { return Err(super::last_error()) }
195-
sockaddr_to_unix(&storage, addrlen as uint).and_then(|addr| {
196-
Ok((ret as uint, addr))
197-
})
198-
}
199-
200-
pub fn sendto(&mut self, buf: &[u8], dst: &CString) -> IoResult<()> {
201-
let (dst, len) = try!(addr_to_sockaddr_un(dst));
202-
let dstp = &dst as *libc::sockaddr_storage;
203-
let ret = retry(|| unsafe {
204-
libc::sendto(self.fd(),
205-
buf.as_ptr() as *libc::c_void,
206-
buf.len() as libc::size_t,
207-
0,
208-
dstp as *libc::sockaddr,
209-
len as libc::socklen_t) as libc::c_int
210-
});
211-
match ret {
212-
-1 => Err(super::last_error()),
213-
n if n as uint != buf.len() => {
214-
Err(io::IoError {
215-
kind: io::OtherIoError,
216-
desc: "couldn't send entire packet at once",
217-
detail: None,
218-
})
219-
}
220-
_ => Ok(())
221-
}
222-
}
223-
224-
pub fn clone(&mut self) -> UnixDatagram {
225-
UnixDatagram { inner: self.inner.clone() }
226-
}
227-
}
228-
229158
////////////////////////////////////////////////////////////////////////////////
230159
// Unix Listener
231160
////////////////////////////////////////////////////////////////////////////////

branches/try/src/librustc/middle/lint.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,9 +1638,6 @@ impl<'a> Visitor<()> for Context<'a> {
16381638
fn visit_view_item(&mut self, i: &ast::ViewItem, _: ()) {
16391639
self.with_lint_attrs(i.attrs.as_slice(), |cx| {
16401640
check_attrs_usage(cx, i.attrs.as_slice());
1641-
1642-
cx.visit_ids(|v| v.visit_view_item(i, ()));
1643-
16441641
visit::walk_view_item(cx, i, ());
16451642
})
16461643
}

branches/try/src/libstd/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
// Don't link to std. We are std.
5858
#![no_std]
5959

60+
// NOTE: remove after snapshot
61+
#![allow(unknown_features)]
6062
#![deny(missing_doc)]
6163

6264
// When testing libstd, bring in libuv as the I/O backend so tests can print

branches/try/src/libsyntax/ast_util.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -396,13 +396,6 @@ impl<'a, O: IdVisitingOperation> Visitor<()> for IdVisitor<'a, O> {
396396
}
397397

398398
fn visit_view_item(&mut self, view_item: &ViewItem, env: ()) {
399-
if !self.pass_through_items {
400-
if self.visited_outermost {
401-
return;
402-
} else {
403-
self.visited_outermost = true;
404-
}
405-
}
406399
match view_item.node {
407400
ViewItemExternCrate(_, _, node_id) => {
408401
self.operation.visit_id(node_id)
@@ -424,8 +417,7 @@ impl<'a, O: IdVisitingOperation> Visitor<()> for IdVisitor<'a, O> {
424417
}
425418
}
426419
}
427-
visit::walk_view_item(self, view_item, env);
428-
self.visited_outermost = false;
420+
visit::walk_view_item(self, view_item, env)
429421
}
430422

431423
fn visit_foreign_item(&mut self, foreign_item: &ForeignItem, env: ()) {

branches/try/src/snapshots.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
S 2014-04-23 b5dd3f0
2-
freebsd-x86_64 b6ccb045b9bea4cc4781bc128e047a1c68dc2c17
3-
linux-i386 9e4e8d2bc70ff5b8db21169f762cb20c4dba6c2c
4-
linux-x86_64 3367b8e1a0295c8124c26c5c627343ebe9a0ac5d
5-
macos-i386 3029be6d6cc7a34b8a03a0a659b427c2916a8962
6-
macos-x86_64 2de6d89ac8063588a37059140a602f028f2cc2ea
7-
winnt-i386 021b39bc24b293f166aa329224f08cc5dedd5769
8-
91
S 2014-04-15 349d66a
102
freebsd-x86_64 0e8078e24b3f86481c5ae0a47a15e5ed2703f241
113
linux-i386 b4e5d104fc2b1eb0236b662ab3cbbb729f789bd6

branches/try/src/test/compile-fail/lint-directives-on-use-items-issue-10534.rs

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)