Skip to content

Commit 08ca43d

Browse files
committed
---
yaml --- r: 275124 b: refs/heads/stable c: 98a59cf h: refs/heads/master
1 parent 420d291 commit 08ca43d

File tree

20 files changed

+65
-47
lines changed

20 files changed

+65
-47
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: e77c79e96d600b9179b1697037e1c0a52558c8f2
32+
refs/heads/stable: 98a59cf57e02b6e6a5a3bd74eb47b1422eaacc53
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/liballoc/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ 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: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,9 @@
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-
9995
#![cfg_attr(not(test), feature(raw, fn_traits, placement_new_protocol))]
10096
#![cfg_attr(test, feature(test, rustc_private, box_heap))]
10197

102-
#[cfg(stage0)]
103-
extern crate alloc_system;
104-
10598
// Allow testing this library
10699

107100
#[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/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ graphviz = { path = "../libgraphviz" }
1717
log = { path = "../liblog" }
1818
rbml = { path = "../librbml" }
1919
rustc_back = { path = "../librustc_back" }
20+
rustc_bitflags = { path = "../librustc_bitflags" }
2021
rustc_data_structures = { path = "../librustc_data_structures" }
2122
rustc_front = { path = "../librustc_front" }
2223
rustc_llvm = { path = "../librustc_llvm" }

branches/stable/src/librustc_bitflags/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@ version = "0.0.0"
77
name = "rustc_bitflags"
88
path = "lib.rs"
99
test = false
10-
11-
[dependencies]
12-
core = { path = "../libcore" }

branches/stable/src/librustc_front/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ crate-type = ["dylib"]
1212
log = { path = "../liblog" }
1313
syntax = { path = "../libsyntax" }
1414
serialize = { path = "../libserialize" }
15+
rustc_bitflags = { path = "../librustc_bitflags" }

branches/stable/src/librustc_llvm/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ crate-type = ["dylib"]
1212
[features]
1313
static-libstdcpp = []
1414

15+
[dependencies]
16+
rustc_bitflags = { path = "../librustc_bitflags" }
17+
1518
[build-dependencies]
1619
build_helper = { path = "../build_helper" }
1720
gcc = "0.3"

branches/stable/src/librustc_metadata/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ log = { path = "../liblog" }
1414
rbml = { path = "../librbml" }
1515
rustc = { path = "../librustc" }
1616
rustc_back = { path = "../librustc_back" }
17+
rustc_bitflags = { path = "../librustc_bitflags" }
1718
rustc_front = { path = "../librustc_front" }
1819
rustc_llvm = { path = "../librustc_llvm" }
1920
serialize = { path = "../libserialize" }

branches/stable/src/librustc_plugin/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ crate-type = ["dylib"]
1111
[dependencies]
1212
log = { path = "../liblog" }
1313
rustc = { path = "../librustc" }
14+
rustc_bitflags = { path = "../librustc_bitflags" }
1415
rustc_front = { path = "../librustc_front" }
1516
rustc_metadata = { path = "../librustc_metadata" }
1617
rustc_mir = { path = "../librustc_mir" }

branches/stable/src/librustc_resolve/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ crate-type = ["dylib"]
1212
log = { path = "../liblog" }
1313
syntax = { path = "../libsyntax" }
1414
rustc = { path = "../librustc" }
15+
rustc_bitflags = { path = "../librustc_bitflags" }
1516
rustc_front = { path = "../librustc_front" }
1617
arena = { path = "../libarena" }

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_uppercase().next(), Some('C'));
781+
/// assert_eq!(c.to_lowercase().next(), Some('c'));
782782
///
783783
/// // Japanese scripts do not have case, and so:
784784
/// let c = '山';
785-
/// assert_eq!(c.to_uppercase().next(), Some('山'));
785+
/// assert_eq!(c.to_lowercase().next(), Some('山'));
786786
/// ```
787787
#[stable(feature = "rust1", since = "1.0.0")]
788788
#[inline]

branches/stable/src/libstd/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ collections = { path = "../libcollections" }
1818
core = { path = "../libcore" }
1919
libc = { path = "../rustc/libc_shim" }
2020
rand = { path = "../librand" }
21-
rustc_bitflags = { path = "../librustc_bitflags" }
2221
rustc_unicode = { path = "../librustc_unicode" }
2322

2423
[build-dependencies]

branches/stable/src/libstd/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@
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+
272276
// Don't link to std. We are std.
273277
#![no_std]
274278

@@ -295,6 +299,9 @@ extern crate alloc;
295299
extern crate rustc_unicode;
296300
extern crate libc;
297301

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

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ 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;
7977
}
8078

8179
#[stable(feature = "metadata_ext", since = "1.1.0")]
@@ -115,25 +113,25 @@ impl MetadataExt for Metadata {
115113
self.as_inner().as_inner().st_atime as i64
116114
}
117115
fn st_atime_nsec(&self) -> i64 {
118-
self.as_inner().as_inner().st_atime_nsec as i64
116+
self.as_inner().as_inner().st_atimensec as i64
119117
}
120118
fn st_mtime(&self) -> i64 {
121119
self.as_inner().as_inner().st_mtime as i64
122120
}
123121
fn st_mtime_nsec(&self) -> i64 {
124-
self.as_inner().as_inner().st_mtime_nsec as i64
122+
self.as_inner().as_inner().st_mtimensec as i64
125123
}
126124
fn st_ctime(&self) -> i64 {
127125
self.as_inner().as_inner().st_ctime as i64
128126
}
129127
fn st_ctime_nsec(&self) -> i64 {
130-
self.as_inner().as_inner().st_ctime_nsec as i64
128+
self.as_inner().as_inner().st_ctimensec as i64
131129
}
132130
fn st_birthtime(&self) -> i64 {
133131
self.as_inner().as_inner().st_birthtime as i64
134132
}
135133
fn st_birthtime_nsec(&self) -> i64 {
136-
self.as_inner().as_inner().st_birthtime_nsec as i64
134+
self.as_inner().as_inner().st_birthtimensec as i64
137135
}
138136
fn st_blksize(&self) -> u64 {
139137
self.as_inner().as_inner().st_blksize as u64
@@ -147,8 +145,5 @@ impl MetadataExt for Metadata {
147145
fn st_flags(&self) -> u32 {
148146
self.as_inner().as_inner().st_flags as u32
149147
}
150-
fn st_spare(&self) -> u32 {
151-
self.as_inner().as_inner().st_spare as u32
152-
}
153148
}
154149

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

Lines changed: 29 additions & 2 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,7 +122,31 @@ impl FileAttr {
119122
}
120123
}
121124

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

branches/stable/src/libsyntax/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ path = "lib.rs"
99
crate-type = ["dylib"]
1010

1111
[dependencies]
12-
arena = { path = "../libarena" }
13-
fmt_macros = { path = "../libfmt_macros" }
1412
serialize = { path = "../libserialize" }
1513
term = { path = "../libterm" }
1614
log = { path = "../liblog" }
15+
rustc_bitflags = { path = "../librustc_bitflags" }

branches/stable/src/libterm/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@ version = "0.0.0"
77
name = "term"
88
path = "lib.rs"
99
crate-type = ["dylib", "rlib"]
10-
11-
[dependencies]
12-
log = { path = "../liblog" }

branches/stable/src/rustc/Cargo.lock

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

branches/stable/src/rustc/std_shim/Cargo.lock

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)