Skip to content

Commit 3d05441

Browse files
committed
---
yaml --- r: 93679 b: refs/heads/try c: 6f40147 h: refs/heads/master i: 93677: d82baf8 93675: d7b4cca 93671: 32050ba 93663: 4c99cbc v: v3
1 parent fdbd787 commit 3d05441

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+517
-419
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: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: e91cb479a448c1afef1387e3abfbbcbd7fec6fea
5+
refs/heads/try: 6f401478dc9fbd0b34ae4d9500c3f6c29852ce53
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/doc/tutorial-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
303303
#[cfg(target_os = "win32", target_arch = "x86")]
304304
#[link_name = "kernel32"]
305305
extern "stdcall" {
306-
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
306+
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
307307
}
308308
~~~~
309309

branches/try/src/etc/snapshot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,11 @@ def get_url_to_file(u,f):
148148
returncode = subprocess.call(["wget", "-O", tmpf, u])
149149

150150
if returncode != 0:
151-
os.unlink(tmpf)
152-
raise
151+
try:
152+
os.unlink(tmpf)
153+
except OSError as e:
154+
pass
155+
raise Exception("failed to fetch url")
153156
os.rename(tmpf, f)
154157

155158
def snap_filename_hash_part(snap):

branches/try/src/librustpkg/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ mod search;
7070
mod sha1;
7171
mod source_control;
7272
mod target;
73-
#[cfg(test)]
73+
#[cfg(not(windows), test)] // FIXME test failure on windows: #10471
7474
mod tests;
7575
mod util;
7676
pub mod version;

branches/try/src/librustuv/macros.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ macro_rules! get_handle_to_current_scheduler(
3333
)
3434

3535
pub fn dumb_println(args: &fmt::Arguments) {
36-
use std::io::native::stdio::stderr;
37-
use std::io::Writer;
38-
39-
let mut out = stderr();
40-
fmt::writeln(&mut out as &mut Writer, args);
36+
use std::io::native::file::FileDesc;
37+
use std::io;
38+
use std::libc;
39+
let mut out = FileDesc::new(libc::STDERR_FILENO, false);
40+
fmt::writeln(&mut out as &mut io::Writer, args);
4141
}

branches/try/src/libstd/io/mod.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -306,24 +306,7 @@ pub mod timer;
306306
/// Buffered I/O wrappers
307307
pub mod buffered;
308308

309-
/// Thread-blocking implementations
310-
pub mod native {
311-
/// Posix file I/O
312-
pub mod file;
313-
/// Process spawning and child management
314-
pub mod process;
315-
/// Posix stdio
316-
pub mod stdio;
317-
318-
/// Sockets
319-
/// # XXX - implement this
320-
pub mod net {
321-
pub mod tcp { }
322-
pub mod udp { }
323-
#[cfg(unix)]
324-
pub mod unix { }
325-
}
326-
}
309+
pub mod native;
327310

328311
/// Signal handling
329312
pub mod signal;

0 commit comments

Comments
 (0)