Skip to content

Commit 0541bb9

Browse files
committed
---
yaml --- r: 275119 b: refs/heads/stable c: 7e96216 h: refs/heads/master i: 275117: 70a5874 275115: acfd1b6 275111: aaec072 275103: 44e0833
1 parent 4b93642 commit 0541bb9

File tree

13 files changed

+33
-50
lines changed

13 files changed

+33
-50
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 24bb648d8442a636bbe2cb6f06bb2b43d2e14bab
32+
refs/heads/stable: 7e962166dfa1c55489d9637d829cb8e16f6de32a
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
url = https://github.com/rust-lang/rust-installer.git
1717
[submodule "src/liblibc"]
1818
path = src/liblibc
19-
url = https://github.com/rust-lang/libc.git
19+
url = https://github.com/rust-lang-nursery/libc.git

branches/stable/mk/dist.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ PKG_FILES := \
4848
$(S)configure $(S)Makefile.in \
4949
$(S)man \
5050
$(addprefix $(S)src/, \
51-
bootstrap \
52-
build_helper \
5351
compiletest \
5452
doc \
5553
driver \
@@ -62,7 +60,6 @@ PKG_FILES := \
6260
rt \
6361
rtstartup \
6462
rustllvm \
65-
rustc \
6663
snapshots.txt \
6764
rust-installer \
6865
rustbook \

branches/stable/src/doc/book/guessing-game.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ done:
258258
io::stdin().read_line(&mut guess).expect("failed to read line");
259259
```
260260

261-
But that gets hard to read. So we’ve split it up, two lines for two method
261+
But that gets hard to read. So we’ve split it up, three lines for three method
262262
calls. We already talked about `read_line()`, but what about `expect()`? Well,
263263
we already mentioned that `read_line()` puts what the user types into the `&mut
264264
String` we pass it. But it also returns a value: in this case, an
@@ -644,7 +644,7 @@ So far, that hasn’t mattered, and so Rust defaults to an `i32`. However, here,
644644
Rust doesn’t know how to compare the `guess` and the `secret_number`. They
645645
need to be the same type. Ultimately, we want to convert the `String` we
646646
read as input into a real number type, for comparison. We can do that
647-
with two more lines. Here’s our new program:
647+
with three more lines. Here’s our new program:
648648
649649
```rust,ignore
650650
extern crate rand;

branches/stable/src/liballoc/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ test = false
1010

1111
[dependencies]
1212
core = { path = "../libcore" }
13+
libc = { path = "../rustc/libc_shim" }
14+
alloc_system = { path = "../liballoc_system" }

branches/stable/src/liballoc/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,16 @@
9292
#![feature(unsafe_no_drop_flag, filling_drop)]
9393
#![feature(unsize)]
9494

95+
// Issue# 30592: Systematically use alloc_system during stage0 since jemalloc
96+
// might be unavailable or disabled
97+
#![cfg_attr(stage0, feature(alloc_system))]
98+
9599
#![cfg_attr(not(test), feature(raw, fn_traits, placement_new_protocol))]
96100
#![cfg_attr(test, feature(test, rustc_private, box_heap))]
97101

102+
#[cfg(stage0)]
103+
extern crate alloc_system;
104+
98105
// Allow testing this library
99106

100107
#[cfg(test)]

branches/stable/src/liblibc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 403bdc88394919f297bdb365032044cc0481c319
1+
Subproject commit 1b1eea2cdd77c63d73ba0b09b905a91910d1c992

branches/stable/src/librustc_unicode/char.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,13 +776,13 @@ impl char {
776776
/// Basic usage:
777777
///
778778
/// ```
779-
/// let c = 'C';
779+
/// let c = 'c';
780780
///
781-
/// assert_eq!(c.to_lowercase().next(), Some('c'));
781+
/// assert_eq!(c.to_uppercase().next(), Some('C'));
782782
///
783783
/// // Japanese scripts do not have case, and so:
784784
/// let c = '山';
785-
/// assert_eq!(c.to_lowercase().next(), Some('山'));
785+
/// assert_eq!(c.to_uppercase().next(), Some('山'));
786786
/// ```
787787
#[stable(feature = "rust1", since = "1.0.0")]
788788
#[inline]

branches/stable/src/libstd/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@
269269
#![feature(vec_push_all)]
270270
#![feature(zero_one)]
271271

272-
// Issue# 30592: Systematically use alloc_system during stage0 since jemalloc
273-
// might be unavailable or disabled
274-
#![cfg_attr(stage0, feature(alloc_system))]
275-
276272
// Don't link to std. We are std.
277273
#![no_std]
278274

@@ -299,9 +295,6 @@ extern crate alloc;
299295
extern crate rustc_unicode;
300296
extern crate libc;
301297

302-
#[cfg(stage0)]
303-
extern crate alloc_system;
304-
305298
// Make std testable by not duplicating lang items and other globals. See #2912
306299
#[cfg(test)] extern crate std as realstd;
307300

branches/stable/src/libstd/os/netbsd/fs.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ pub trait MetadataExt {
7474
fn st_flags(&self) -> u32;
7575
#[stable(feature = "metadata_ext2", since = "1.8.0")]
7676
fn st_gen(&self) -> u32;
77+
#[stable(feature = "metadata_ext2", since = "1.8.0")]
78+
fn st_spare(&self) -> u32;
7779
}
7880

7981
#[stable(feature = "metadata_ext", since = "1.1.0")]
@@ -113,25 +115,25 @@ impl MetadataExt for Metadata {
113115
self.as_inner().as_inner().st_atime as i64
114116
}
115117
fn st_atime_nsec(&self) -> i64 {
116-
self.as_inner().as_inner().st_atimensec as i64
118+
self.as_inner().as_inner().st_atime_nsec as i64
117119
}
118120
fn st_mtime(&self) -> i64 {
119121
self.as_inner().as_inner().st_mtime as i64
120122
}
121123
fn st_mtime_nsec(&self) -> i64 {
122-
self.as_inner().as_inner().st_mtimensec as i64
124+
self.as_inner().as_inner().st_mtime_nsec as i64
123125
}
124126
fn st_ctime(&self) -> i64 {
125127
self.as_inner().as_inner().st_ctime as i64
126128
}
127129
fn st_ctime_nsec(&self) -> i64 {
128-
self.as_inner().as_inner().st_ctimensec as i64
130+
self.as_inner().as_inner().st_ctime_nsec as i64
129131
}
130132
fn st_birthtime(&self) -> i64 {
131133
self.as_inner().as_inner().st_birthtime as i64
132134
}
133135
fn st_birthtime_nsec(&self) -> i64 {
134-
self.as_inner().as_inner().st_birthtimensec as i64
136+
self.as_inner().as_inner().st_birthtime_nsec as i64
135137
}
136138
fn st_blksize(&self) -> u64 {
137139
self.as_inner().as_inner().st_blksize as u64
@@ -145,5 +147,8 @@ impl MetadataExt for Metadata {
145147
fn st_flags(&self) -> u32 {
146148
self.as_inner().as_inner().st_flags as u32
147149
}
150+
fn st_spare(&self) -> u32 {
151+
self.as_inner().as_inner().st_spare as u32
152+
}
148153
}
149154

branches/stable/src/libstd/sys/unix/fs.rs

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ use sys_common::{AsInner, FromInner};
2727

2828
#[cfg(target_os = "linux")]
2929
use libc::{stat64, fstat64, lstat64, off64_t, ftruncate64, lseek64, dirent64, readdir64_r, open64};
30-
#[cfg(not(target_os = "linux"))]
30+
#[cfg(target_os = "android")]
31+
use libc::{stat as stat64, fstat as fstat64, lstat as lstat64, off64_t, ftruncate64, lseek64,
32+
dirent as dirent64, open as open64};
33+
#[cfg(not(any(target_os = "linux", target_os = "android")))]
3134
use libc::{stat as stat64, fstat as fstat64, lstat as lstat64, off_t as off64_t,
3235
ftruncate as ftruncate64, lseek as lseek64, dirent as dirent64, open as open64};
3336
#[cfg(not(any(target_os = "linux", target_os = "solaris")))]
@@ -119,31 +122,7 @@ impl FileAttr {
119122
}
120123
}
121124

122-
#[cfg(target_os = "netbsd")]
123-
impl FileAttr {
124-
pub fn modified(&self) -> io::Result<SystemTime> {
125-
Ok(SystemTime::from(libc::timespec {
126-
tv_sec: self.stat.st_mtime as libc::time_t,
127-
tv_nsec: self.stat.st_mtimensec as libc::c_long,
128-
}))
129-
}
130-
131-
pub fn accessed(&self) -> io::Result<SystemTime> {
132-
Ok(SystemTime::from(libc::timespec {
133-
tv_sec: self.stat.st_atime as libc::time_t,
134-
tv_nsec: self.stat.st_atimensec as libc::c_long,
135-
}))
136-
}
137-
138-
pub fn created(&self) -> io::Result<SystemTime> {
139-
Ok(SystemTime::from(libc::timespec {
140-
tv_sec: self.stat.st_birthtime as libc::time_t,
141-
tv_nsec: self.stat.st_birthtimensec as libc::c_long,
142-
}))
143-
}
144-
}
145-
146-
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "netbsd")))]
125+
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
147126
impl FileAttr {
148127
pub fn modified(&self) -> io::Result<SystemTime> {
149128
Ok(SystemTime::from(libc::timespec {

branches/stable/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 69ef168544e4f15b793dd35d272008fde9a6e835
1+
Subproject commit 39e8e59056bcd84bf9c44d0bcd46ae441567e0a0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
22
# The actual contents of this file do not matter, but to trigger a change on the
33
# build bots then the contents should be changed so git updates the mtime.
4-
2016-02-20
4+
2016-02-16

0 commit comments

Comments
 (0)