Skip to content

Commit 5a089c2

Browse files
committed
auto merge of #7370 : Aatch/rust/snapshot, r=huonw
I also cleaned up the warnings.
2 parents 237ca7d + 122f25d commit 5a089c2

File tree

11 files changed

+13
-68
lines changed

11 files changed

+13
-68
lines changed

src/librustc/metadata/decoder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ use extra::ebml;
3535
use extra::serialize::Decodable;
3636
use syntax::ast_map;
3737
use syntax::attr;
38-
use syntax::diagnostic::span_handler;
3938
use syntax::parse::token::{ident_interner, special_idents};
4039
use syntax::print::pprust;
4140
use syntax::{ast, ast_util};

src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use middle::ty;
2121
use middle::subst::Subst;
2222
use middle::typeck;
2323
use middle;
24-
use util::ppaux::{note_and_explain_region, bound_region_to_str, bound_region_ptr_to_str};
24+
use util::ppaux::{note_and_explain_region, bound_region_ptr_to_str};
2525
use util::ppaux::{trait_store_to_str, ty_to_str, vstore_to_str};
2626
use util::ppaux::{Repr, UserString};
2727
use util::common::{indenter};

src/librustc/middle/typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ use middle::typeck::{isr_alist, lookup_def_ccx};
107107
use middle::typeck::no_params;
108108
use middle::typeck::{require_same_types, method_map, vtable_map};
109109
use util::common::{block_query, indenter, loop_query};
110-
use util::ppaux::{bound_region_to_str,bound_region_ptr_to_str};
110+
use util::ppaux::{bound_region_ptr_to_str};
111111
use util::ppaux;
112112

113113

src/librustc/middle/typeck/coherence.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616

1717
use core::prelude::*;
1818

19-
use driver;
2019
use metadata::csearch::{each_path, get_impl_trait};
2120
use metadata::csearch::{get_impls_for_mod};
22-
use metadata::csearch;
2321
use metadata::cstore::{CStore, iter_crate_data};
2422
use metadata::decoder::{dl_def, dl_field, dl_impl};
2523
use middle::resolve::{Impl, MethodInfo};
@@ -39,7 +37,7 @@ use middle::typeck::infer::combine::Combine;
3937
use middle::typeck::infer::InferCtxt;
4038
use middle::typeck::infer::{new_infer_ctxt, resolve_ivar};
4139
use middle::typeck::infer::{resolve_nested_tvar, resolve_type};
42-
use syntax::ast::{crate, def_id, def_mod, def_struct, def_trait, def_ty};
40+
use syntax::ast::{crate, def_id, def_mod, def_struct, def_ty};
4341
use syntax::ast::{item, item_enum, item_impl, item_mod, item_struct};
4442
use syntax::ast::{local_crate, method, trait_ref, ty_path};
4543
use syntax::ast;

src/librustc/util/ppaux.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ use syntax::parse::token;
3232
use syntax::print::pprust;
3333
use syntax::{ast, ast_util};
3434

35-
use core::str;
3635
use core::vec;
3736

3837
/// Produces a string suitable for debugging output.

src/libstd/iterator.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ pub trait Iterator<A> {
4343
/// Return a lower bound and upper bound on the remaining length of the iterator.
4444
///
4545
/// The common use case for the estimate is pre-allocating space to store the results.
46-
#[cfg(not(stage0))]
4746
fn size_hint(&self) -> (Option<uint>, Option<uint>) { (None, None) }
4847
}
4948

@@ -610,7 +609,6 @@ impl<A, T: Iterator<A>, U: Iterator<A>> Iterator<A> for ChainIterator<A, T, U> {
610609
}
611610

612611
#[inline]
613-
#[cfg(not(stage0))]
614612
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
615613
let (a_lower, a_upper) = self.a.size_hint();
616614
let (b_lower, b_upper) = self.b.size_hint();
@@ -664,7 +662,6 @@ impl<'self, A, B, T: Iterator<A>> Iterator<B> for MapIterator<'self, A, B, T> {
664662
}
665663

666664
#[inline]
667-
#[cfg(not(stage0))]
668665
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
669666
self.iter.size_hint()
670667
}
@@ -690,7 +687,6 @@ impl<'self, A, T: Iterator<A>> Iterator<A> for FilterIterator<'self, A, T> {
690687
}
691688

692689
#[inline]
693-
#[cfg(not(stage0))]
694690
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
695691
let (_, upper) = self.iter.size_hint();
696692
(None, upper) // can't know a lower bound, due to the predicate
@@ -716,7 +712,6 @@ impl<'self, A, B, T: Iterator<A>> Iterator<B> for FilterMapIterator<'self, A, B,
716712
}
717713

718714
#[inline]
719-
#[cfg(not(stage0))]
720715
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
721716
let (_, upper) = self.iter.size_hint();
722717
(None, upper) // can't know a lower bound, due to the predicate

src/libstd/to_str.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ use str::OwnedStr;
1818
use hashmap::HashMap;
1919
use hashmap::HashSet;
2020
use iterator::IteratorUtil;
21-
use container::Map;
2221
use hash::Hash;
2322
use cmp::Eq;
2423
use vec::ImmutableVector;
25-
use iterator::IteratorUtil;
2624

2725
/// A generic trait for converting a value to a string
2826
pub trait ToStr {
@@ -179,7 +177,7 @@ impl<A:ToStr> ToStr for @[A] {
179177
mod tests {
180178
use hashmap::HashMap;
181179
use hashmap::HashSet;
182-
use container::Set;
180+
use container::{Set,Map};
183181
#[test]
184182
fn test_simple_types() {
185183
assert_eq!(1i.to_str(), ~"1");

src/libstd/unstable/intrinsics.rs

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ pub extern "rust-intrinsic" {
4242
/// Atomic compare and exchange, release ordering.
4343
pub fn atomic_cxchg_rel(dst: &mut int, old: int, src: int) -> int;
4444

45-
#[cfg(not(stage0))]
4645
pub fn atomic_cxchg_acqrel(dst: &mut int, old: int, src: int) -> int;
47-
#[cfg(not(stage0))]
4846
pub fn atomic_cxchg_relaxed(dst: &mut int, old: int, src: int) -> int;
4947

5048

@@ -53,15 +51,13 @@ pub extern "rust-intrinsic" {
5351
/// Atomic load, acquire ordering.
5452
pub fn atomic_load_acq(src: &int) -> int;
5553

56-
#[cfg(not(stage0))]
5754
pub fn atomic_load_relaxed(src: &int) -> int;
5855

5956
/// Atomic store, sequentially consistent.
6057
pub fn atomic_store(dst: &mut int, val: int);
6158
/// Atomic store, release ordering.
6259
pub fn atomic_store_rel(dst: &mut int, val: int);
6360

64-
#[cfg(not(stage0))]
6561
pub fn atomic_store_relaxed(dst: &mut int, val: int);
6662

6763
/// Atomic exchange, sequentially consistent.
@@ -70,9 +66,7 @@ pub extern "rust-intrinsic" {
7066
pub fn atomic_xchg_acq(dst: &mut int, src: int) -> int;
7167
/// Atomic exchange, release ordering.
7268
pub fn atomic_xchg_rel(dst: &mut int, src: int) -> int;
73-
#[cfg(not(stage0))]
7469
pub fn atomic_xchg_acqrel(dst: &mut int, src: int) -> int;
75-
#[cfg(not(stage0))]
7670
pub fn atomic_xchg_relaxed(dst: &mut int, src: int) -> int;
7771

7872
/// Atomic addition, sequentially consistent.
@@ -81,9 +75,7 @@ pub extern "rust-intrinsic" {
8175
pub fn atomic_xadd_acq(dst: &mut int, src: int) -> int;
8276
/// Atomic addition, release ordering.
8377
pub fn atomic_xadd_rel(dst: &mut int, src: int) -> int;
84-
#[cfg(not(stage0))]
8578
pub fn atomic_xadd_acqrel(dst: &mut int, src: int) -> int;
86-
#[cfg(not(stage0))]
8779
pub fn atomic_xadd_relaxed(dst: &mut int, src: int) -> int;
8880

8981
/// Atomic subtraction, sequentially consistent.
@@ -92,97 +84,55 @@ pub extern "rust-intrinsic" {
9284
pub fn atomic_xsub_acq(dst: &mut int, src: int) -> int;
9385
/// Atomic subtraction, release ordering.
9486
pub fn atomic_xsub_rel(dst: &mut int, src: int) -> int;
95-
#[cfg(not(stage0))]
9687
pub fn atomic_xsub_acqrel(dst: &mut int, src: int) -> int;
97-
#[cfg(not(stage0))]
9888
pub fn atomic_xsub_relaxed(dst: &mut int, src: int) -> int;
9989

100-
#[cfg(not(stage0))]
10190
pub fn atomic_and(dst: &mut int, src: int) -> int;
102-
#[cfg(not(stage0))]
10391
pub fn atomic_and_acq(dst: &mut int, src: int) -> int;
104-
#[cfg(not(stage0))]
10592
pub fn atomic_and_rel(dst: &mut int, src: int) -> int;
106-
#[cfg(not(stage0))]
10793
pub fn atomic_and_acqrel(dst: &mut int, src: int) -> int;
108-
#[cfg(not(stage0))]
10994
pub fn atomic_and_relaxed(dst: &mut int, src: int) -> int;
11095

111-
#[cfg(not(stage0))]
11296
pub fn atomic_nand(dst: &mut int, src: int) -> int;
113-
#[cfg(not(stage0))]
11497
pub fn atomic_nand_acq(dst: &mut int, src: int) -> int;
115-
#[cfg(not(stage0))]
11698
pub fn atomic_nand_rel(dst: &mut int, src: int) -> int;
117-
#[cfg(not(stage0))]
11899
pub fn atomic_nand_acqrel(dst: &mut int, src: int) -> int;
119-
#[cfg(not(stage0))]
120100
pub fn atomic_nand_relaxed(dst: &mut int, src: int) -> int;
121101

122-
#[cfg(not(stage0))]
123102
pub fn atomic_or(dst: &mut int, src: int) -> int;
124-
#[cfg(not(stage0))]
125103
pub fn atomic_or_acq(dst: &mut int, src: int) -> int;
126-
#[cfg(not(stage0))]
127104
pub fn atomic_or_rel(dst: &mut int, src: int) -> int;
128-
#[cfg(not(stage0))]
129105
pub fn atomic_or_acqrel(dst: &mut int, src: int) -> int;
130-
#[cfg(not(stage0))]
131106
pub fn atomic_or_relaxed(dst: &mut int, src: int) -> int;
132107

133-
#[cfg(not(stage0))]
134108
pub fn atomic_xor(dst: &mut int, src: int) -> int;
135-
#[cfg(not(stage0))]
136109
pub fn atomic_xor_acq(dst: &mut int, src: int) -> int;
137-
#[cfg(not(stage0))]
138110
pub fn atomic_xor_rel(dst: &mut int, src: int) -> int;
139-
#[cfg(not(stage0))]
140111
pub fn atomic_xor_acqrel(dst: &mut int, src: int) -> int;
141-
#[cfg(not(stage0))]
142112
pub fn atomic_xor_relaxed(dst: &mut int, src: int) -> int;
143113

144-
#[cfg(not(stage0))]
145114
pub fn atomic_max(dst: &mut int, src: int) -> int;
146-
#[cfg(not(stage0))]
147115
pub fn atomic_max_acq(dst: &mut int, src: int) -> int;
148-
#[cfg(not(stage0))]
149116
pub fn atomic_max_rel(dst: &mut int, src: int) -> int;
150-
#[cfg(not(stage0))]
151117
pub fn atomic_max_acqrel(dst: &mut int, src: int) -> int;
152-
#[cfg(not(stage0))]
153118
pub fn atomic_max_relaxed(dst: &mut int, src: int) -> int;
154119

155-
#[cfg(not(stage0))]
156120
pub fn atomic_min(dst: &mut int, src: int) -> int;
157-
#[cfg(not(stage0))]
158121
pub fn atomic_min_acq(dst: &mut int, src: int) -> int;
159-
#[cfg(not(stage0))]
160122
pub fn atomic_min_rel(dst: &mut int, src: int) -> int;
161-
#[cfg(not(stage0))]
162123
pub fn atomic_min_acqrel(dst: &mut int, src: int) -> int;
163-
#[cfg(not(stage0))]
164124
pub fn atomic_min_relaxed(dst: &mut int, src: int) -> int;
165125

166-
#[cfg(not(stage0))]
167126
pub fn atomic_umin(dst: &mut int, src: int) -> int;
168-
#[cfg(not(stage0))]
169127
pub fn atomic_umin_acq(dst: &mut int, src: int) -> int;
170-
#[cfg(not(stage0))]
171128
pub fn atomic_umin_rel(dst: &mut int, src: int) -> int;
172-
#[cfg(not(stage0))]
173129
pub fn atomic_umin_acqrel(dst: &mut int, src: int) -> int;
174-
#[cfg(not(stage0))]
175130
pub fn atomic_umin_relaxed(dst: &mut int, src: int) -> int;
176131

177-
#[cfg(not(stage0))]
178132
pub fn atomic_umax(dst: &mut int, src: int) -> int;
179-
#[cfg(not(stage0))]
180133
pub fn atomic_umax_acq(dst: &mut int, src: int) -> int;
181-
#[cfg(not(stage0))]
182134
pub fn atomic_umax_rel(dst: &mut int, src: int) -> int;
183-
#[cfg(not(stage0))]
184135
pub fn atomic_umax_acqrel(dst: &mut int, src: int) -> int;
185-
#[cfg(not(stage0))]
186136
pub fn atomic_umax_relaxed(dst: &mut int, src: int) -> int;
187137

188138
/// The size of a type in bytes.

src/libstd/vec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,6 @@ macro_rules! iterator {
24462446
}
24472447

24482448
#[inline]
2449-
#[cfg(not(stage0))]
24502449
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
24512450
let exact = Some(((self.end as uint) - (self.ptr as uint)) / size_of::<$elem>());
24522451
(exact, exact)
@@ -3929,7 +3928,6 @@ mod tests {
39293928
}
39303929

39313930
#[test]
3932-
#[cfg(not(stage0))]
39333931
fn test_iterator() {
39343932
use iterator::*;
39353933
let xs = [1, 2, 5, 10, 11];

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use ast::{view_item_, view_item_extern_mod, view_item_use};
6060
use ast::{view_path, view_path_glob, view_path_list, view_path_simple};
6161
use ast::visibility;
6262
use ast;
63-
use ast_util::{as_prec, ident_to_path, operator_prec};
63+
use ast_util::{as_prec, operator_prec};
6464
use ast_util;
6565
use codemap::{span, BytePos, spanned, mk_sp};
6666
use codemap;

src/snapshots.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2013-06-23 f827561
2+
macos-i386 63ffbcf99b6853d7840bdfe01380068518d0e466
3+
macos-x86_64 b34fdf3845f8ef4760817007d8ef820cd32f2e07
4+
winnt-i386 6602150074ec442fd376fddb2eaf63f5da6fdff9
5+
freebsd-x86_64 a05bdda2d9ec0e66336d81b98bee8a95442a501f
6+
linux-i386 b8f4a0f0c2250aa4d76ec1eb57c83bfae5725f93
7+
linux-x86_64 caea3402663334d0a3967c21f58a860c060d5474
8+
19
S 2013-06-21 6759ce4
210
macos-i386 6e5395d2fda1db356f64af28ba525031bf9871c7
311
macos-x86_64 7b8ded4e1ba1e999a5614eea3a4acacb2c7cef1d

0 commit comments

Comments
 (0)