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

+1-4
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

+2-2
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

+1
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

+1
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

+3-2
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

-7
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

-38
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

+1-6
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

+1-7
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

-16
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

src/libstd/rt/crate_map.rs

-62
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,13 @@ use option::{Some, None, Option};
1313
use ptr::RawPtr;
1414
use rt::rtio::EventLoop;
1515

16-
#[cfg(stage0)] use cmp::TotalOrd;
17-
#[cfg(stage0)] use container::MutableSet;
18-
#[cfg(stage0)] use iter::Iterator;
19-
#[cfg(stage0)] use slice::{ImmutableVector, OwnedVector};
20-
2116
// Need to tell the linker on OS X to not barf on undefined symbols
2217
// and instead look them up at runtime, which we need to resolve
2318
// the crate_map properly.
2419
#[cfg(target_os = "macos")]
2520
#[link_args = "-Wl,-U,__rust_crate_map_toplevel"]
2621
extern {}
2722

28-
#[cfg(stage0)]
29-
pub struct ModEntry<'a> {
30-
name: &'a str,
31-
log_level: *mut u32
32-
}
33-
34-
#[cfg(stage0)]
35-
pub struct CrateMap<'a> {
36-
version: i32,
37-
entries: &'a [ModEntry<'a>],
38-
children: &'a [&'a CrateMap<'a>],
39-
event_loop_factory: Option<fn() -> ~EventLoop>,
40-
}
41-
#[cfg(not(stage0))]
4223
pub struct CrateMap<'a> {
4324
version: i32,
4425
event_loop_factory: Option<fn() -> ~EventLoop>,
@@ -121,46 +102,3 @@ pub fn get_crate_map() -> Option<&'static CrateMap<'static>> {
121102
}
122103
}
123104
}
124-
125-
#[cfg(stage0)]
126-
fn version(crate_map: &CrateMap) -> i32 {
127-
match crate_map.version {
128-
2 => return 2,
129-
_ => return 0
130-
}
131-
}
132-
133-
#[cfg(stage0)]
134-
fn do_iter_crate_map<'a>(
135-
crate_map: &'a CrateMap<'a>,
136-
f: |&'a ModEntry<'a>|,
137-
visited: &mut ~[*CrateMap<'a>]) {
138-
let raw = crate_map as *CrateMap<'a>;
139-
if visited.bsearch(|a| (*a as uint).cmp(&(raw as uint))).is_some() {
140-
return
141-
}
142-
match visited.iter().position(|i| *i as uint > raw as uint) {
143-
Some(i) => visited.insert(i, raw),
144-
None => visited.push(raw),
145-
}
146-
147-
match version(crate_map) {
148-
2 => {
149-
let (entries, children) = (crate_map.entries, crate_map.children);
150-
for entry in entries.iter() {
151-
f(entry);
152-
}
153-
for child in children.iter() {
154-
do_iter_crate_map(*child, |x| f(x), visited);
155-
}
156-
},
157-
_ => fail!("invalid crate map version")
158-
}
159-
}
160-
161-
/// Iterates recursively over `crate_map` and all child crate maps
162-
#[cfg(stage0)]
163-
pub fn iter_crate_map<'a>(crate_map: &'a CrateMap<'a>, f: |&'a ModEntry<'a>|) {
164-
let mut v = ~[];
165-
do_iter_crate_map(crate_map, f, &mut v);
166-
}

src/libstd/rt/libunwind.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,11 @@ extern "C" {
101101
pub fn _Unwind_Backtrace(trace: _Unwind_Trace_Fn,
102102
trace_argument: *libc::c_void)
103103
-> _Unwind_Reason_Code;
104-
#[cfg(stage0, not(target_os = "android"))]
105-
pub fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t;
106-
#[cfg(stage0, not(target_os = "android"))]
107-
pub fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void;
108104

109-
#[cfg(not(stage0),
110-
not(target_os = "android"),
105+
#[cfg(not(target_os = "android"),
111106
not(target_os = "linux", target_arch = "arm"))]
112107
pub fn _Unwind_GetIP(ctx: *_Unwind_Context) -> libc::uintptr_t;
113-
#[cfg(not(stage0),
114-
not(target_os = "android"),
108+
#[cfg(not(target_os = "android"),
115109
not(target_os = "linux", target_arch = "arm"))]
116110
pub fn _Unwind_FindEnclosingFunction(pc: *libc::c_void) -> *libc::c_void;
117111
}

src/libstd/rt/thread.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ mod imp {
271271
// Assumes that we've been dynamically linked to libpthread but that is
272272
// currently always the case. Note that you need to check that the symbol
273273
// is non-null before calling it!
274-
#[cfg(target_os = "linux", not(stage0))]
274+
#[cfg(target_os = "linux")]
275275
fn min_stack_size(attr: *libc::pthread_attr_t) -> libc::size_t {
276276
use ptr::RawPtr;
277277
type F = extern "C" unsafe fn(*libc::pthread_attr_t) -> libc::size_t;
@@ -289,7 +289,6 @@ mod imp {
289289
// __pthread_get_minstack() is marked as weak but extern_weak linkage is
290290
// not supported on OS X, hence this kludge...
291291
#[cfg(not(target_os = "linux"))]
292-
#[cfg(stage0)]
293292
fn min_stack_size(_: *libc::pthread_attr_t) -> libc::size_t {
294293
PTHREAD_STACK_MIN
295294
}

src/libsync/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2121
html_root_url = "http://static.rust-lang.org/doc/master")];
2222
#[feature(phase)];
23+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
2324

2425
#[cfg(test)] #[phase(syntax, link)] extern crate log;
2526

src/libsyntax/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ This API is completely unstable and subject to change.
2626
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2727
html_root_url = "http://static.rust-lang.org/doc/master")];
2828

29-
#[feature(macro_rules, globs, managed_boxes, default_type_params, phase, quote)];
30-
29+
#[feature(macro_rules, globs, managed_boxes, default_type_params, phase,
30+
quote)];
31+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
3132
#[allow(deprecated)];
32-
#[deny(non_camel_case_types)];
3333

3434
extern crate serialize;
3535
extern crate term;

src/libterm/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
html_root_url = "http://static.rust-lang.org/doc/master")];
2121

2222
#[feature(macro_rules)];
23-
#[deny(non_camel_case_types)];
24-
#[allow(missing_doc)];
23+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
2524

2625
extern crate collections;
2726

src/libtime/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1616
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
1717
html_root_url = "http://static.rust-lang.org/doc/master")];
18-
1918
#[feature(phase)];
19+
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
2020

2121
#[cfg(test)] #[phase(syntax, link)] extern crate log;
2222
extern crate serialize;

src/snapshots.txt

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2014-03-19 4ca51ae
2+
freebsd-x86_64 3059005ca4ee2972bb705313bfb7848e859a20cd
3+
linux-i386 8907cd4ce8b8301d70a6bbc0100c955444270c19
4+
linux-x86_64 54df3ad0c9f0db585090ab98692956cfbd7a3bd8
5+
macos-i386 b4b3ff9d658e6fa5b2441f0f315941119fe091a8
6+
macos-x86_64 0e67338c4395ef22231b63fa8139d85f277a8edd
7+
winnt-i386 d39f2c0b53a914c1b60a99d0e32892e3fb511273
8+
19
S 2014-03-03 6e7f170
210
freebsd-x86_64 1afdfbb838af95cea5d5037018f220356da954f6
311
linux-i386 edd73d291614907ad502a9f726cd9facb1f2f49f

0 commit comments

Comments
 (0)