Skip to content

Commit 296280e

Browse files
committed
---
yaml --- r: 96090 b: refs/heads/dist-snap c: e91cb47 h: refs/heads/master v: v3
1 parent b909785 commit 296280e

Some content is hidden

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

46 files changed

+420
-517
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 51f2e7e84e200e50bf421bb509c7861f4b8af957
9+
refs/heads/dist-snap: e91cb479a448c1afef1387e3abfbbcbd7fec6fea
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,4 @@ config.stamp
8989
src/etc/dl
9090
.settings/
9191
build/
92+
i686-pc-mingw32/

branches/dist-snap/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) -> std::libc::c_int;
306+
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
307307
}
308308
~~~~
309309

branches/dist-snap/src/etc/snapshot.py

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

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

158155
def snap_filename_hash_part(snap):

branches/dist-snap/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(not(windows), test)] // FIXME test failure on windows: #10471
73+
#[cfg(test)]
7474
mod tests;
7575
mod util;
7676
pub mod version;

branches/dist-snap/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::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);
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);
4141
}

branches/dist-snap/src/libstd/io/mod.rs

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

309-
pub mod native;
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+
}
310327

311328
/// Signal handling
312329
pub mod signal;

0 commit comments

Comments
 (0)