Skip to content

Commit 950580c

Browse files
committed
---
yaml --- r: 153103 b: refs/heads/try2 c: 83f9f07 h: refs/heads/master i: 153101: ba6a153 153099: ec15443 153095: 2f550a9 153087: dd4e80a v: v3
1 parent bdf04d6 commit 950580c

File tree

20 files changed

+155
-291
lines changed

20 files changed

+155
-291
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 459f155f81291c46633e86a480628b50304ffb1c
8+
refs/heads/try2: 83f9f07ec4a339a31650abf7023a584cf7c5ce54
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,7 @@ fn main() {
30383038
~~~{.ignore}
30393039
// `b/mod.rs`
30403040
pub mod c;
3041-
pub fn foo() { println!("Foo!"); }
3041+
pub fn foo() { println!("Foo!"; }
30423042
~~~
30433043

30443044
~~~{.ignore}

branches/try2/src/libnative/io/c_win32.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ pub static WSASYS_STATUS_LEN: uint = 128;
1919
pub static FIONBIO: libc::c_long = 0x8004667e;
2020
static FD_SETSIZE: uint = 64;
2121
pub static MSG_DONTWAIT: libc::c_int = 0;
22-
pub static ERROR_ILLEGAL_CHARACTER: libc::c_int = 582;
23-
pub static ENABLE_ECHO_INPUT: libc::DWORD = 0x4;
24-
pub static ENABLE_EXTENDED_FLAGS: libc::DWORD = 0x80;
25-
pub static ENABLE_INSERT_MODE: libc::DWORD = 0x20;
26-
pub static ENABLE_LINE_INPUT: libc::DWORD = 0x2;
27-
pub static ENABLE_PROCESSED_INPUT: libc::DWORD = 0x1;
28-
pub static ENABLE_QUICK_EDIT_MODE: libc::DWORD = 0x40;
2922

3023
#[repr(C)]
3124
pub struct WSADATA {
@@ -172,24 +165,3 @@ pub mod compat {
172165
})
173166
}
174167
}
175-
176-
extern "system" {
177-
// FIXME - pInputControl should be PCONSOLE_READCONSOLE_CONTROL
178-
pub fn ReadConsoleW(hConsoleInput: libc::HANDLE,
179-
lpBuffer: libc::LPVOID,
180-
nNumberOfCharsToRead: libc::DWORD,
181-
lpNumberOfCharsRead: libc::LPDWORD,
182-
pInputControl: libc::LPVOID) -> libc::BOOL;
183-
184-
pub fn WriteConsoleW(hConsoleOutput: libc::HANDLE,
185-
lpBuffer: libc::types::os::arch::extra::LPCVOID,
186-
nNumberOfCharsToWrite: libc::DWORD,
187-
lpNumberOfCharsWritten: libc::LPDWORD,
188-
lpReserved: libc::LPVOID) -> libc::BOOL;
189-
190-
pub fn GetConsoleMode(hConsoleHandle: libc::HANDLE,
191-
lpMode: libc::LPDWORD) -> libc::BOOL;
192-
193-
pub fn SetConsoleMode(hConsoleHandle: libc::HANDLE,
194-
lpMode: libc::DWORD) -> libc::BOOL;
195-
}

branches/try2/src/libnative/io/mod.rs

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ pub mod pipe;
6969
#[path = "pipe_win32.rs"]
7070
pub mod pipe;
7171

72-
#[cfg(windows)]
73-
#[path = "tty_win32.rs"]
74-
mod tty;
75-
7672
#[cfg(unix)] #[path = "c_unix.rs"] mod c;
7773
#[cfg(windows)] #[path = "c_win32.rs"] mod c;
7874

@@ -284,27 +280,15 @@ impl rtio::IoFactory for IoFactory {
284280
fn pipe_open(&mut self, fd: c_int) -> IoResult<Box<rtio::RtioPipe + Send>> {
285281
Ok(box file::FileDesc::new(fd, true) as Box<rtio::RtioPipe + Send>)
286282
}
287-
#[cfg(unix)]
288283
fn tty_open(&mut self, fd: c_int, _readable: bool)
289284
-> IoResult<Box<rtio::RtioTTY + Send>> {
285+
#[cfg(unix)] use ERROR = libc::ENOTTY;
286+
#[cfg(windows)] use ERROR = libc::ERROR_INVALID_HANDLE;
290287
if unsafe { libc::isatty(fd) } != 0 {
291288
Ok(box file::FileDesc::new(fd, true) as Box<rtio::RtioTTY + Send>)
292289
} else {
293290
Err(IoError {
294-
code: libc::ENOTTY as uint,
295-
extra: 0,
296-
detail: None,
297-
})
298-
}
299-
}
300-
#[cfg(windows)]
301-
fn tty_open(&mut self, fd: c_int, _readable: bool)
302-
-> IoResult<Box<rtio::RtioTTY + Send>> {
303-
if tty::is_tty(fd) {
304-
Ok(box tty::WindowsTTY::new(fd) as Box<rtio::RtioTTY + Send>)
305-
} else {
306-
Err(IoError {
307-
code: libc::ERROR_INVALID_HANDLE as uint,
291+
code: ERROR as uint,
308292
extra: 0,
309293
detail: None,
310294
})

branches/try2/src/libnative/io/tty_win32.rs

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

branches/try2/src/libregex_macros/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
316316

317317
#[inline]
318318
fn groups<'r>(&'r mut self, i: uint) -> &'r mut Captures {
319-
&mut self.queue[i].groups
319+
&'r mut self.queue[i].groups
320320
}
321321
}
322322
}

branches/try2/src/librustc/driver/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ pub fn get_os(triple: &str) -> Option<abi::Os> {
427427
}
428428
None
429429
}
430-
static os_names : &'static [(&'static str, abi::Os)] = &[
430+
static os_names : &'static [(&'static str, abi::Os)] = &'static [
431431
("mingw32", abi::OsWin32),
432432
("win32", abi::OsWin32),
433433
("darwin", abi::OsMacos),
@@ -442,7 +442,7 @@ pub fn get_arch(triple: &str) -> Option<abi::Architecture> {
442442
}
443443
None
444444
}
445-
static architecture_abis : &'static [(&'static str, abi::Architecture)] = &[
445+
static architecture_abis : &'static [(&'static str, abi::Architecture)] = &'static [
446446
("i386", abi::X86),
447447
("i486", abi::X86),
448448
("i586", abi::X86),

branches/try2/src/librustc/lint/builtin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ impl LintPass for UnusedAttribute {
540540
}
541541

542542
fn check_attribute(&mut self, cx: &Context, attr: &ast::Attribute) {
543-
static ATTRIBUTE_WHITELIST: &'static [&'static str] = &[
543+
static ATTRIBUTE_WHITELIST: &'static [&'static str] = &'static [
544544
// FIXME: #14408 whitelist docs since rustdoc looks at them
545545
"doc",
546546

@@ -574,7 +574,7 @@ impl LintPass for UnusedAttribute {
574574
"unstable",
575575
];
576576

577-
static CRATE_ATTRS: &'static [&'static str] = &[
577+
static CRATE_ATTRS: &'static [&'static str] = &'static [
578578
"crate_type",
579579
"feature",
580580
"no_start",

0 commit comments

Comments
 (0)