Skip to content

Commit 7334c11

Browse files
committed
auto merge of #13026 : alexcrichton/rust/snapshots, r=huonw
2 parents b568efc + 11ac4df commit 7334c11

File tree

18 files changed

+27
-160
lines changed

18 files changed

+27
-160
lines changed

src/libcollections/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
html_root_url = "http://static.rust-lang.org/doc/master")];
2222

2323
#[feature(macro_rules, managed_boxes, default_type_params, phase)];
24-
25-
// NOTE remove the following two attributes after the next snapshot.
26-
#[allow(unrecognized_lint)];
27-
#[allow(default_type_param_usage)];
24+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
2825

2926
extern crate rand;
3027

src/libgetopts/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@
8383
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
8484
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
8585
html_root_url = "http://static.rust-lang.org/doc/master")];
86-
#[deny(missing_doc)];
87-
8886
#[feature(globs, phase)];
87+
#[deny(missing_doc)];
88+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
8989

9090
#[cfg(test)] #[phase(syntax, link)] extern crate log;
9191

src/libnative/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
html_root_url = "http://static.rust-lang.org/doc/master")];
5151
#[deny(unused_result, unused_must_use)];
5252
#[allow(non_camel_case_types)];
53+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
5354

5455
// NB this crate explicitly does *not* allow glob imports, please seriously
5556
// consider whether they're needed before adding that feature here (the

src/librand/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ println!("{:?}", tuple_ptr)
7171
html_root_url = "http://static.rust-lang.org/doc/master")];
7272

7373
#[feature(macro_rules, managed_boxes, phase)];
74+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
7475

7576
#[cfg(test)]
7677
#[phase(syntax, link)] extern crate log;

src/librustc/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ This API is completely unstable and subject to change.
2828
html_root_url = "http://static.rust-lang.org/doc/master")];
2929

3030
#[allow(deprecated)];
31-
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
32-
#[feature(quote, default_type_params, phase)];
31+
#[feature(macro_rules, globs, struct_variant, managed_boxes, quote,
32+
default_type_params, phase)];
33+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
3334

3435
extern crate flate;
3536
extern crate arena;

src/librustc/middle/ty.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,6 @@ impl cmp::Eq for intern_key {
178178
}
179179
}
180180

181-
#[cfg(stage0)]
182-
impl Hash for intern_key {
183-
fn hash(&self, s: &mut sip::SipState) {
184-
unsafe { (*self.sty).hash(s) }
185-
}
186-
}
187-
#[cfg(not(stage0))]
188181
impl<W:Writer> Hash<W> for intern_key {
189182
fn hash(&self, s: &mut W) {
190183
unsafe { (*self.sty).hash(s) }

src/librustc/util/nodemap.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,15 @@ use std::hash::{Hasher, Hash};
1515
use std::io;
1616
use syntax::ast;
1717

18-
#[cfg(not(stage0))]
1918
pub type FnvHashMap<K, V> = HashMap<K, V, FnvHasher>;
2019

2120
pub type NodeMap<T> = FnvHashMap<ast::NodeId, T>;
2221
pub type DefIdMap<T> = FnvHashMap<ast::DefId, T>;
2322

24-
#[cfg(not(stage0))]
2523
pub type NodeSet = HashSet<ast::NodeId, FnvHasher>;
26-
#[cfg(not(stage0))]
2724
pub type DefIdSet = HashSet<ast::DefId, FnvHasher>;
2825

2926
// Hacks to get good names
30-
#[cfg(not(stage0))]
3127
pub mod FnvHashMap {
3228
use std::hash::Hash;
3329
use collections::HashMap;
@@ -45,53 +41,19 @@ pub mod DefIdMap {
4541
super::FnvHashMap::new()
4642
}
4743
}
48-
#[cfg(not(stage0))]
4944
pub mod NodeSet {
5045
use collections::HashSet;
5146
pub fn new() -> super::NodeSet {
5247
HashSet::with_hasher(super::FnvHasher)
5348
}
5449
}
55-
#[cfg(not(stage0))]
5650
pub mod DefIdSet {
5751
use collections::HashSet;
5852
pub fn new() -> super::DefIdSet {
5953
HashSet::with_hasher(super::FnvHasher)
6054
}
6155
}
6256

63-
#[cfg(stage0)]
64-
pub type FnvHashMap<K, V> = HashMap<K, V>;
65-
66-
#[cfg(stage0)]
67-
pub type NodeSet = HashSet<ast::NodeId>;
68-
#[cfg(stage0)]
69-
pub type DefIdSet = HashSet<ast::DefId>;
70-
71-
// Hacks to get good names
72-
#[cfg(stage0)]
73-
pub mod FnvHashMap {
74-
use std::hash::Hash;
75-
use collections::HashMap;
76-
pub fn new<K: Hash + Eq, V>() -> super::FnvHashMap<K, V> {
77-
HashMap::new()
78-
}
79-
}
80-
#[cfg(stage0)]
81-
pub mod NodeSet {
82-
use collections::HashSet;
83-
pub fn new() -> super::NodeSet {
84-
HashSet::new()
85-
}
86-
}
87-
#[cfg(stage0)]
88-
pub mod DefIdSet {
89-
use collections::HashSet;
90-
pub fn new() -> super::DefIdSet {
91-
HashSet::new()
92-
}
93-
}
94-
9557
/// A speedy hash algorithm for node ids and def ids. The hashmap in
9658
/// libcollections by default uses SipHash which isn't quite as speedy as we
9759
/// want. In the compiler we're not really worried about DOS attempts, so we

src/libserialize/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,8 @@ Core encoding and decoding interfaces.
2121
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2222
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2323
html_root_url = "http://static.rust-lang.org/doc/master")];
24-
#[allow(missing_doc)];
25-
#[forbid(non_camel_case_types)];
2624
#[feature(macro_rules, managed_boxes, default_type_params, phase)];
27-
28-
// NOTE remove the following two attributes after the next snapshot.
29-
#[allow(unrecognized_lint)];
30-
#[allow(default_type_param_usage)];
25+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
3126

3227
// test harness access
3328
#[cfg(test)]

src/libstd/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,14 @@
5151
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
5252
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
5353
html_root_url = "http://static.rust-lang.org/doc/master")];
54-
5554
#[feature(macro_rules, globs, asm, managed_boxes, thread_local, link_args,
5655
simd, linkage, default_type_params, phase)];
5756

58-
// NOTE remove the following two attributes after the next snapshot.
59-
#[allow(unrecognized_lint)];
60-
#[allow(default_type_param_usage)];
61-
6257
// Don't link to std. We are std.
6358
#[no_std];
6459

65-
#[deny(non_camel_case_types)];
6660
#[deny(missing_doc)];
67-
#[allow(unknown_features)];
61+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
6862

6963
// When testing libstd, bring in libuv as the I/O backend so tests can print
7064
// things and all of the std::io tests have an I/O interface to run on top

src/libstd/ops.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,6 @@ pub trait Index<Index,Result> {
475475
fn index(&self, index: &Index) -> Result;
476476
}
477477

478-
/// Dummy dox
479-
#[cfg(stage0)]
480-
pub trait Deref<Result> {
481-
/// dummy dox
482-
fn deref<'a>(&'a self) -> &'a Result;
483-
}
484-
485478
/**
486479
*
487480
* The `Deref` trait is used to specify the functionality of dereferencing
@@ -509,20 +502,12 @@ pub trait Deref<Result> {
509502
* }
510503
* ```
511504
*/
512-
#[cfg(not(stage0))]
513505
#[lang="deref"]
514506
pub trait Deref<Result> {
515507
/// The method called to dereference a value
516508
fn deref<'a>(&'a self) -> &'a Result;
517509
}
518510

519-
/// dummy dox
520-
#[cfg(stage0)]
521-
pub trait DerefMut<Result>: Deref<Result> {
522-
/// dummy dox
523-
fn deref_mut<'a>(&'a mut self) -> &'a mut Result;
524-
}
525-
526511
/**
527512
*
528513
* The `DerefMut` trait is used to specify the functionality of dereferencing
@@ -557,7 +542,6 @@ pub trait DerefMut<Result>: Deref<Result> {
557542
* }
558543
* ```
559544
*/
560-
#[cfg(not(stage0))]
561545
#[lang="deref_mut"]
562546
pub trait DerefMut<Result>: Deref<Result> {
563547
/// The method called to mutably dereference a value

0 commit comments

Comments
 (0)