Skip to content

Commit 420d291

Browse files
committed
---
yaml --- r: 275123 b: refs/heads/stable c: e77c79e h: refs/heads/master i: 275121: f22afc9 275119: 0541bb9
1 parent fdd04e8 commit 420d291

File tree

23 files changed

+51
-67
lines changed

23 files changed

+51
-67
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: e628398f3464ef4bb60c3a05006064e1633e3d6f
32+
refs/heads/stable: e77c79e96d600b9179b1697037e1c0a52558c8f2
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: 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 1b1eea2cdd77c63d73ba0b09b905a91910d1c992
1+
Subproject commit 403bdc88394919f297bdb365032044cc0481c319

branches/stable/src/librustc/Cargo.toml

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

branches/stable/src/librustc_back/target/x86_64_sun_solaris.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use target::Target;
1313
pub fn target() -> Target {
1414
let mut base = super::solaris_base::opts();
1515
base.pre_link_args.push("-m64".to_string());
16+
base.cpu = "x86-64".to_string();
1617

1718
Target {
1819
llvm_target: "x86_64-pc-solaris".to_string(),

branches/stable/src/librustc_bitflags/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ 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: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ crate-type = ["dylib"]
1212
[features]
1313
static-libstdcpp = []
1414

15-
[dependencies]
16-
rustc_bitflags = { path = "../librustc_bitflags" }
17-
1815
[build-dependencies]
1916
build_helper = { path = "../build_helper" }
2017
gcc = "0.3"

branches/stable/src/librustc_metadata/Cargo.toml

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

branches/stable/src/librustc_plugin/Cargo.toml

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

branches/stable/src/librustc_resolve/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ crate-type = ["dylib"]
1212
log = { path = "../liblog" }
1313
syntax = { path = "../libsyntax" }
1414
rustc = { path = "../librustc" }
15-
rustc_bitflags = { path = "../librustc_bitflags" }
1615
rustc_front = { path = "../librustc_front" }
1716
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_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/Cargo.toml

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

2324
[build-dependencies]

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/os/solaris/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl MetadataExt for Metadata {
7373
#[allow(deprecated)]
7474
fn as_raw_stat(&self) -> &raw::stat {
7575
unsafe {
76-
&*(self.as_inner().as_inner() as *const libc::stat64
76+
&*(self.as_inner().as_inner() as *const libc::stat
7777
as *const raw::stat)
7878
}
7979
}

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

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ 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(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")))]
30+
#[cfg(not(target_os = "linux"))]
3431
use libc::{stat as stat64, fstat as fstat64, lstat as lstat64, off_t as off64_t,
3532
ftruncate as ftruncate64, lseek as lseek64, dirent as dirent64, open as open64};
3633
#[cfg(not(any(target_os = "linux", target_os = "solaris")))]
@@ -122,31 +119,7 @@ impl FileAttr {
122119
}
123120
}
124121

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")))]
122+
#[cfg(not(any(target_os = "ios", target_os = "macos")))]
150123
impl FileAttr {
151124
pub fn modified(&self) -> io::Result<SystemTime> {
152125
Ok(SystemTime::from(libc::timespec {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ mod imp {
157157
target_os = "macos",
158158
target_os = "bitrig",
159159
target_os = "netbsd",
160-
target_os = "openbsd"))]
160+
target_os = "openbsd",
161+
target_os = "solaris"))]
161162
unsafe fn get_stack() -> libc::stack_t {
162163
libc::stack_t { ss_sp: get_stackp(), ss_flags: 0, ss_size: SIGSTKSZ }
163164
}

branches/stable/src/libsyntax/Cargo.toml

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

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

branches/stable/src/libterm/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ 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: 5 additions & 11 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: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)