Skip to content

Commit 4ee2bae

Browse files
committed
---
yaml --- r: 212983 b: refs/heads/master c: 6895311 h: refs/heads/master i: 212981: 50f920d 212979: e8a8105 212975: c67ff42 v: v3
1 parent 919119b commit 4ee2bae

File tree

36 files changed

+93
-118
lines changed

36 files changed

+93
-118
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d444d0c357e85c90e73585520e2da74304c7265a
2+
refs/heads/master: 6895311e859e1859f9b3f0adc9f1fbb4d2891534
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05

trunk/src/libcollections/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ impl<'a, K, V> DoubleEndedIterator for RangeMut<'a, K, V> {
11511151
}
11521152

11531153
impl<'a, K: Ord, V> Entry<'a, K, V> {
1154-
#[unstable(feature = "std_misc",
1154+
#[unstable(feature = "entry",
11551155
reason = "will soon be replaced by or_insert")]
11561156
#[deprecated(since = "1.0",
11571157
reason = "replaced with more ergonomic `or_insert` and `or_insert_with`")]

trunk/src/liblog/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,10 @@
173173
#![feature(box_syntax)]
174174
#![feature(const_fn)]
175175
#![feature(iter_cmp)]
176+
#![feature(once_new)]
177+
#![feature(rt)]
176178
#![feature(staged_api)]
177-
#![feature(std_misc)]
179+
#![feature(static_mutex)]
178180

179181
use std::boxed;
180182
use std::cell::RefCell;

trunk/src/librustc/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
#![feature(const_fn)]
3535
#![feature(duration)]
3636
#![feature(duration_span)]
37+
#![feature(dynamic_lib)]
3738
#![feature(enumset)]
3839
#![feature(fs_canonicalize)]
3940
#![feature(hash_default)]
41+
#![feature(hashmap_hasher)]
4042
#![feature(into_cow)]
4143
#![feature(iter_sum)]
4244
#![feature(libc)]
@@ -53,7 +55,6 @@
5355
#![feature(slice_patterns)]
5456
#![feature(slice_position_elem)]
5557
#![feature(staged_api)]
56-
#![feature(std_misc)]
5758
#![feature(str_char)]
5859
#![feature(str_matches)]
5960
#![feature(vec_push_all)]

trunk/src/librustc_trans/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#![feature(iter_sum)]
3434
#![feature(iter_unfold)]
3535
#![feature(libc)]
36+
#![feature(once_new)]
3637
#![feature(path_ext)]
3738
#![feature(path_ext)]
3839
#![feature(path_relative_from)]
@@ -42,7 +43,6 @@
4243
#![feature(rustc_diagnostic_macros)]
4344
#![feature(rustc_private)]
4445
#![feature(staged_api)]
45-
#![feature(std_misc)]
4646
#![feature(unicode)]
4747
#![feature(unicode)]
4848
#![feature(vec_push_all)]

trunk/src/libserialize/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ Core encoding and decoding interfaces.
2929

3030
#![feature(box_syntax)]
3131
#![feature(collections)]
32+
#![feature(enumset)]
33+
#![feature(hashmap_hasher)]
3234
#![feature(num_bits_bytes)]
3335
#![feature(num_wrapping)]
3436
#![feature(rustc_private)]
3537
#![feature(staged_api)]
36-
#![feature(std_misc)]
3738
#![feature(str_char)]
3839
#![feature(unicode)]
3940
#![feature(vecmap)]
40-
#![feature(enumset)]
4141
#![cfg_attr(test, feature(test))]
4242

4343
// test harness access

trunk/src/libstd/ascii.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use ops::Range;
1818
use mem;
1919

2020
/// Extension methods for ASCII-subset only operations on owned strings
21-
#[unstable(feature = "std_misc",
21+
#[unstable(feature = "owned_ascii_ext",
2222
reason = "would prefer to do this in a more general way")]
2323
pub trait OwnedAsciiExt {
2424
/// Converts the string to ASCII upper case:
@@ -189,8 +189,6 @@ impl AsciiExt for str {
189189
}
190190
}
191191

192-
#[unstable(feature = "std_misc",
193-
reason = "would prefer to do this in a more general way")]
194192
impl OwnedAsciiExt for String {
195193
#[inline]
196194
fn into_ascii_uppercase(self) -> String {
@@ -244,8 +242,6 @@ impl AsciiExt for [u8] {
244242
}
245243
}
246244

247-
#[unstable(feature = "std_misc",
248-
reason = "would prefer to do this in a more general way")]
249245
impl OwnedAsciiExt for Vec<u8> {
250246
#[inline]
251247
fn into_ascii_uppercase(mut self) -> Vec<u8> {

trunk/src/libstd/collections/hash/map.rs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ use super::table::BucketState::{
4343
use super::state::HashState;
4444

4545
const INITIAL_LOG2_CAP: usize = 5;
46-
#[unstable(feature = "std_misc")]
47-
pub const INITIAL_CAPACITY: usize = 1 << INITIAL_LOG2_CAP; // 2^5
46+
const INITIAL_CAPACITY: usize = 1 << INITIAL_LOG2_CAP; // 2^5
4847

4948
/// The default behavior of HashMap implements a load factor of 90.9%.
5049
/// This behavior is characterized by the following condition:
@@ -544,7 +543,7 @@ impl<K, V, S> HashMap<K, V, S>
544543
/// # Examples
545544
///
546545
/// ```
547-
/// # #![feature(std_misc)]
546+
/// # #![feature(hashmap_hasher)]
548547
/// use std::collections::HashMap;
549548
/// use std::collections::hash_map::RandomState;
550549
///
@@ -553,7 +552,7 @@ impl<K, V, S> HashMap<K, V, S>
553552
/// map.insert(1, 2);
554553
/// ```
555554
#[inline]
556-
#[unstable(feature = "std_misc", reason = "hasher stuff is unclear")]
555+
#[unstable(feature = "hashmap_hasher", reason = "hasher stuff is unclear")]
557556
pub fn with_hash_state(hash_state: S) -> HashMap<K, V, S> {
558557
HashMap {
559558
hash_state: hash_state,
@@ -573,7 +572,7 @@ impl<K, V, S> HashMap<K, V, S>
573572
/// # Examples
574573
///
575574
/// ```
576-
/// # #![feature(std_misc)]
575+
/// # #![feature(hashmap_hasher)]
577576
/// use std::collections::HashMap;
578577
/// use std::collections::hash_map::RandomState;
579578
///
@@ -582,7 +581,7 @@ impl<K, V, S> HashMap<K, V, S>
582581
/// map.insert(1, 2);
583582
/// ```
584583
#[inline]
585-
#[unstable(feature = "std_misc", reason = "hasher stuff is unclear")]
584+
#[unstable(feature = "hashmap_hasher", reason = "hasher stuff is unclear")]
586585
pub fn with_capacity_and_hash_state(capacity: usize, hash_state: S)
587586
-> HashMap<K, V, S> {
588587
let resize_policy = DefaultResizePolicy::new();
@@ -980,7 +979,7 @@ impl<K, V, S> HashMap<K, V, S>
980979
/// # Examples
981980
///
982981
/// ```
983-
/// # #![feature(std_misc)]
982+
/// # #![feature(drain)]
984983
/// use std::collections::HashMap;
985984
///
986985
/// let mut a = HashMap::new();
@@ -995,7 +994,7 @@ impl<K, V, S> HashMap<K, V, S>
995994
/// assert!(a.is_empty());
996995
/// ```
997996
#[inline]
998-
#[unstable(feature = "std_misc",
997+
#[unstable(feature = "drain",
999998
reason = "matches collection reform specification, waiting for dust to settle")]
1000999
pub fn drain(&mut self) -> Drain<K, V> {
10011000
fn last_two<A, B, C>((_, b, c): (A, B, C)) -> (B, C) { (b, c) }
@@ -1308,7 +1307,7 @@ impl<'a, K, V> Clone for Values<'a, K, V> {
13081307
}
13091308

13101309
/// HashMap drain iterator.
1311-
#[unstable(feature = "std_misc",
1310+
#[unstable(feature = "drain",
13121311
reason = "matches collection reform specification, waiting for dust to settle")]
13131312
pub struct Drain<'a, K: 'a, V: 'a> {
13141313
inner: iter::Map<table::Drain<'a, K, V>, fn((SafeHash, K, V)) -> (K, V)>
@@ -1480,7 +1479,7 @@ impl<'a, K, V> ExactSizeIterator for Drain<'a, K, V> {
14801479
}
14811480

14821481
impl<'a, K, V> Entry<'a, K, V> {
1483-
#[unstable(feature = "std_misc",
1482+
#[unstable(feature = "entry",
14841483
reason = "will soon be replaced by or_insert")]
14851484
#[deprecated(since = "1.0",
14861485
reason = "replaced with more ergonomic `or_insert` and `or_insert_with`")]
@@ -1596,14 +1595,14 @@ impl<K, V, S> Extend<(K, V)> for HashMap<K, V, S>
15961595
/// `Hasher`, but the hashers created by two different `RandomState`
15971596
/// instances are unlikely to produce the same result for the same values.
15981597
#[derive(Clone)]
1599-
#[unstable(feature = "std_misc",
1598+
#[unstable(feature = "hashmap_hasher",
16001599
reason = "hashing an hash maps may be altered")]
16011600
pub struct RandomState {
16021601
k0: u64,
16031602
k1: u64,
16041603
}
16051604

1606-
#[unstable(feature = "std_misc",
1605+
#[unstable(feature = "hashmap_hasher",
16071606
reason = "hashing an hash maps may be altered")]
16081607
impl RandomState {
16091608
/// Constructs a new `RandomState` that is initialized with random keys.
@@ -1615,7 +1614,7 @@ impl RandomState {
16151614
}
16161615
}
16171616

1618-
#[unstable(feature = "std_misc",
1617+
#[unstable(feature = "hashmap_hasher",
16191618
reason = "hashing an hash maps may be altered")]
16201619
impl HashState for RandomState {
16211620
type Hasher = SipHasher;

trunk/src/libstd/collections/hash/set.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ use iter::{Iterator, IntoIterator, ExactSizeIterator, FromIterator, Map, Chain,
2020
use ops::{BitOr, BitAnd, BitXor, Sub};
2121
use option::Option::{Some, None, self};
2222

23-
use super::map::{self, HashMap, Keys, INITIAL_CAPACITY, RandomState};
23+
use super::map::{self, HashMap, Keys, RandomState};
2424
use super::state::HashState;
2525

26+
const INITIAL_CAPACITY: usize = 32;
27+
2628
// Future Optimization (FIXME!)
2729
// =============================
2830
//
@@ -152,7 +154,7 @@ impl<T, S> HashSet<T, S>
152154
/// # Examples
153155
///
154156
/// ```
155-
/// # #![feature(std_misc)]
157+
/// # #![feature(hashmap_hasher)]
156158
/// use std::collections::HashSet;
157159
/// use std::collections::hash_map::RandomState;
158160
///
@@ -161,7 +163,7 @@ impl<T, S> HashSet<T, S>
161163
/// set.insert(2);
162164
/// ```
163165
#[inline]
164-
#[unstable(feature = "std_misc", reason = "hasher stuff is unclear")]
166+
#[unstable(feature = "hashmap_hasher", reason = "hasher stuff is unclear")]
165167
pub fn with_hash_state(hash_state: S) -> HashSet<T, S> {
166168
HashSet::with_capacity_and_hash_state(INITIAL_CAPACITY, hash_state)
167169
}
@@ -177,7 +179,7 @@ impl<T, S> HashSet<T, S>
177179
/// # Examples
178180
///
179181
/// ```
180-
/// # #![feature(std_misc)]
182+
/// # #![feature(hashmap_hasher)]
181183
/// use std::collections::HashSet;
182184
/// use std::collections::hash_map::RandomState;
183185
///
@@ -186,7 +188,7 @@ impl<T, S> HashSet<T, S>
186188
/// set.insert(1);
187189
/// ```
188190
#[inline]
189-
#[unstable(feature = "std_misc", reason = "hasher stuff is unclear")]
191+
#[unstable(feature = "hashmap_hasher", reason = "hasher stuff is unclear")]
190192
pub fn with_capacity_and_hash_state(capacity: usize, hash_state: S)
191193
-> HashSet<T, S> {
192194
HashSet {
@@ -406,7 +408,7 @@ impl<T, S> HashSet<T, S>
406408

407409
/// Clears the set, returning all elements in an iterator.
408410
#[inline]
409-
#[unstable(feature = "std_misc",
411+
#[unstable(feature = "drain",
410412
reason = "matches collection reform specification, waiting for dust to settle")]
411413
pub fn drain(&mut self) -> Drain<T> {
412414
fn first<A, B>((a, _): (A, B)) -> A { a }

trunk/src/libstd/collections/hash/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![unstable(feature = "hashmap_hasher", reason = "hasher stuff is unclear")]
12+
1113
use clone::Clone;
1214
use default::Default;
1315
use hash;
@@ -25,7 +27,6 @@ use marker;
2527
/// algorithm can implement the `Default` trait and create hash maps with the
2628
/// `DefaultState` structure. This state is 0-sized and will simply delegate
2729
/// to `Default` when asked to create a hasher.
28-
#[unstable(feature = "std_misc", reason = "hasher stuff is unclear")]
2930
pub trait HashState {
3031
/// Type of the hasher that will be created.
3132
type Hasher: hash::Hasher;
@@ -38,7 +39,6 @@ pub trait HashState {
3839
/// default trait.
3940
///
4041
/// This struct has is 0-sized and does not need construction.
41-
#[unstable(feature = "std_misc", reason = "hasher stuff is unclear")]
4242
pub struct DefaultState<H>(marker::PhantomData<H>);
4343

4444
impl<H: Default + hash::Hasher> HashState for DefaultState<H> {

trunk/src/libstd/collections/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ pub mod hash_set {
410410

411411
/// Experimental support for providing custom hash algorithms to a HashMap and
412412
/// HashSet.
413-
#[unstable(feature = "std_misc", reason = "module was recently added")]
413+
#[unstable(feature = "hashmap_hasher", reason = "module was recently added")]
414414
pub mod hash_state {
415415
pub use super::hash::state::*;
416416
}

trunk/src/libstd/dynamic_lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
//!
1313
//! A simple wrapper over the platform's dynamic library facilities
1414
15-
#![unstable(feature = "std_misc")]
15+
#![unstable(feature = "dynamic_lib",
16+
reason = "API has not been scrutinized and is highly likely to \
17+
either disappear or change")]
1618
#![allow(missing_docs)]
1719

1820
use prelude::v1::*;

trunk/src/libstd/ffi/c_str.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![unstable(feature = "std_misc")]
1211

1312
use borrow::{Cow, ToOwned};
1413
use boxed::{self, Box};

trunk/src/libstd/io/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub enum ErrorKind {
123123
Other,
124124

125125
/// Any I/O error not part of this list.
126-
#[unstable(feature = "std_misc",
126+
#[unstable(feature = "io_error_internals",
127127
reason = "better expressed through extensible enums that this \
128128
enum cannot be exhaustively matched against")]
129129
#[doc(hidden)]

trunk/src/libstd/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
#![feature(wrapping)]
151151
#![feature(zero_one)]
152152
#![cfg_attr(test, feature(float_from_str_radix))]
153-
#![cfg_attr(test, feature(test, rustc_private, std_misc))]
153+
#![cfg_attr(test, feature(test, rustc_private))]
154154

155155
// Don't link to std. We are std.
156156
#![no_std]

trunk/src/libstd/macros.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
//! library. Each macro is available for use when linking against the standard
1515
//! library.
1616
17-
#![unstable(feature = "std_misc")]
18-
1917
/// The entry point for panic of Rust threads.
2018
///
2119
/// This macro is used to inject panic into a Rust thread, causing the thread to
@@ -165,7 +163,7 @@ macro_rules! try {
165163
/// # Examples
166164
///
167165
/// ```
168-
/// # #![feature(std_misc)]
166+
/// # #![feature(mpsc_select)]
169167
/// use std::thread;
170168
/// use std::sync::mpsc;
171169
///
@@ -191,7 +189,7 @@ macro_rules! try {
191189
///
192190
/// For more information about select, see the `std::sync::mpsc::Select` structure.
193191
#[macro_export]
194-
#[unstable(feature = "std_misc")]
192+
#[unstable(feature = "mpsc_select")]
195193
macro_rules! select {
196194
(
197195
$($name:pat = $rx:ident.$meth:ident() => $code:expr),+

0 commit comments

Comments
 (0)