Skip to content

Commit 70e3895

Browse files
committed
---
yaml --- r: 180104 b: refs/heads/auto c: 315730f h: refs/heads/master v: v3
1 parent 2c803dd commit 70e3895

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: aa0db172de42a981a64730df146ccf3d737c5762
13+
refs/heads/auto: 315730fb273c4d55c4c25d4fba2b68dcd6a54093
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libcollections/bench.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ macro_rules! map_find_rand_bench {
6767
#[bench]
6868
pub fn $name(b: &mut ::test::Bencher) {
6969
use std::rand;
70+
use std::iter::IteratorExt;
7071
use std::rand::Rng;
7172
use test::black_box;
73+
use vec::Vec;
7274

7375
let mut map = $map::new();
7476
let n: usize = $n;

branches/auto/src/libcollections/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ pub use alloc::boxed;
6767
#[macro_use]
6868
mod macros;
6969

70+
#[cfg(test)] #[macro_use] mod bench;
71+
7072
pub mod binary_heap;
7173
mod bit;
7274
mod btree;
@@ -104,8 +106,6 @@ pub mod btree_set {
104106
}
105107

106108

107-
#[cfg(test)] #[macro_use] mod bench;
108-
109109
// FIXME(#14344) this shouldn't be necessary
110110
#[doc(hidden)]
111111
pub fn fixme_14344_be_sure_to_link_to_collections() {}

branches/auto/src/libstd/sys/common/thread_local.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,17 @@ use sys::thread_local as imp;
8484
/// KEY.set(1 as *mut u8);
8585
/// }
8686
/// ```
87+
#[stable(feature = "rust1", since = "1.0.0")]
8788
pub struct StaticKey {
8889
/// Inner static TLS key (internals), created with by `INIT_INNER` in this
8990
/// module.
91+
#[stable(feature = "rust1", since = "1.0.0")]
9092
pub inner: StaticKeyInner,
9193
/// Destructor for the TLS value.
9294
///
9395
/// See `Key::new` for information about when the destructor runs and how
9496
/// it runs.
97+
#[stable(feature = "rust1", since = "1.0.0")]
9598
pub dtor: Option<unsafe extern fn(*mut u8)>,
9699
}
97100

@@ -128,6 +131,7 @@ pub struct Key {
128131
/// Constant initialization value for static TLS keys.
129132
///
130133
/// This value specifies no destructor by default.
134+
#[stable(feature = "rust1", since = "1.0.0")]
131135
pub const INIT: StaticKey = StaticKey {
132136
inner: INIT_INNER,
133137
dtor: None,

branches/auto/src/libstd/sys/unix/fs2.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ impl OpenOptions {
159159
flags: 0,
160160
read: false,
161161
write: false,
162-
mode: libc::S_IRUSR | libc::S_IWUSR
163-
| libc::S_IRGRP | libc::S_IWGRP
164-
| libc::S_IROTH | libc::S_IWOTH,
162+
mode: 0o666,
165163
}
166164
}
167165

branches/auto/src/libstd/thread_local/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ mod imp {
452452
}
453453

454454
#[doc(hidden)]
455+
#[stable(feature = "rust1", since = "1.0.0")]
455456
pub unsafe extern fn destroy_value<T>(ptr: *mut u8) {
456457
let ptr = ptr as *mut Key<T>;
457458
// Right before we run the user destructor be sure to flag the
@@ -523,6 +524,7 @@ mod imp {
523524
}
524525

525526
#[doc(hidden)]
527+
#[stable(feature = "rust1", since = "1.0.0")]
526528
pub unsafe extern fn destroy_value<T: 'static>(ptr: *mut u8) {
527529
// The OS TLS ensures that this key contains a NULL value when this
528530
// destructor starts to run. We set it back to a sentinel value of 1 to

branches/auto/src/libtest/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#![feature(hash)]
4141
#![feature(int_uint)]
4242
#![feature(io)]
43-
#![feature(os)]
4443
#![feature(path)]
4544
#![feature(rustc_private)]
4645
#![feature(staged_api)]
@@ -267,7 +266,7 @@ pub fn test_main(args: &[String], tests: Vec<TestDescAndFn> ) {
267266
// semantics into parallel test runners, which in turn requires a ~[]
268267
// rather than a &[].
269268
pub fn test_main_static(args: env::Args, tests: &[TestDescAndFn]) {
270-
let args = args.map(|s| s.into_string().unwrap()).collect::<Vec<_>>();
269+
let args = args.collect::<Vec<_>>();
271270
let owned_tests = tests.iter().map(|t| {
272271
match t.testfn {
273272
StaticTestFn(f) => TestDescAndFn { testfn: StaticTestFn(f), desc: t.desc.clone() },

0 commit comments

Comments
 (0)