Skip to content

Commit 7d4da6a

Browse files
author
Jeaye
committed
---
yaml --- r: 66238 b: refs/heads/master c: 41f11d6 h: refs/heads/master v: v3
1 parent ef57c17 commit 7d4da6a

File tree

13 files changed

+70
-14
lines changed

13 files changed

+70
-14
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: 5a089c252e1645c1b321c8b6811f89ae3fea4bd2
2+
refs/heads/master: 41f11d642861ff5b7a85f1fcdab2d5e14692fb6d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ hi def link rustConditional Conditional
143143
hi def link rustIdentifier Identifier
144144
hi def link rustModPath Include
145145
hi def link rustFuncName Function
146+
hi def link rustFuncCall Function
146147
hi def link rustCommentDoc SpecialComment
147148
hi def link rustComment Comment
148149
hi def link rustMacro Macro

trunk/src/librustc/metadata/decoder.rs

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

trunk/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_ptr_to_str};
24+
use util::ppaux::{note_and_explain_region, bound_region_to_str, 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};

trunk/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_ptr_to_str};
110+
use util::ppaux::{bound_region_to_str,bound_region_ptr_to_str};
111111
use util::ppaux;
112112

113113

trunk/src/librustc/middle/typeck/coherence.rs

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

1717
use core::prelude::*;
1818

19+
use driver;
1920
use metadata::csearch::{each_path, get_impl_trait};
2021
use metadata::csearch::{get_impls_for_mod};
22+
use metadata::csearch;
2123
use metadata::cstore::{CStore, iter_crate_data};
2224
use metadata::decoder::{dl_def, dl_field, dl_impl};
2325
use middle::resolve::{Impl, MethodInfo};
@@ -37,7 +39,7 @@ use middle::typeck::infer::combine::Combine;
3739
use middle::typeck::infer::InferCtxt;
3840
use middle::typeck::infer::{new_infer_ctxt, resolve_ivar};
3941
use middle::typeck::infer::{resolve_nested_tvar, resolve_type};
40-
use syntax::ast::{crate, def_id, def_mod, def_struct, def_ty};
42+
use syntax::ast::{crate, def_id, def_mod, def_struct, def_trait, def_ty};
4143
use syntax::ast::{item, item_enum, item_impl, item_mod, item_struct};
4244
use syntax::ast::{local_crate, method, trait_ref, ty_path};
4345
use syntax::ast;

trunk/src/librustc/util/ppaux.rs

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

35+
use core::str;
3536
use core::vec;
3637

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

trunk/src/libstd/iterator.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ 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))]
4647
fn size_hint(&self) -> (Option<uint>, Option<uint>) { (None, None) }
4748
}
4849

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

611612
#[inline]
613+
#[cfg(not(stage0))]
612614
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
613615
let (a_lower, a_upper) = self.a.size_hint();
614616
let (b_lower, b_upper) = self.b.size_hint();
@@ -662,6 +664,7 @@ impl<'self, A, B, T: Iterator<A>> Iterator<B> for MapIterator<'self, A, B, T> {
662664
}
663665

664666
#[inline]
667+
#[cfg(not(stage0))]
665668
fn size_hint(&self) -> (Option<uint>, Option<uint>) {
666669
self.iter.size_hint()
667670
}
@@ -687,6 +690,7 @@ impl<'self, A, T: Iterator<A>> Iterator<A> for FilterIterator<'self, A, T> {
687690
}
688691

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

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

trunk/src/libstd/to_str.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ use str::OwnedStr;
1818
use hashmap::HashMap;
1919
use hashmap::HashSet;
2020
use iterator::IteratorUtil;
21+
use container::Map;
2122
use hash::Hash;
2223
use cmp::Eq;
2324
use vec::ImmutableVector;
25+
use iterator::IteratorUtil;
2426

2527
/// A generic trait for converting a value to a string
2628
pub trait ToStr {
@@ -177,7 +179,7 @@ impl<A:ToStr> ToStr for @[A] {
177179
mod tests {
178180
use hashmap::HashMap;
179181
use hashmap::HashSet;
180-
use container::{Set,Map};
182+
use container::Set;
181183
#[test]
182184
fn test_simple_types() {
183185
assert_eq!(1i.to_str(), ~"1");

trunk/src/libstd/unstable/intrinsics.rs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ 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))]
4546
pub fn atomic_cxchg_acqrel(dst: &mut int, old: int, src: int) -> int;
47+
#[cfg(not(stage0))]
4648
pub fn atomic_cxchg_relaxed(dst: &mut int, old: int, src: int) -> int;
4749

4850

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

56+
#[cfg(not(stage0))]
5457
pub fn atomic_load_relaxed(src: &int) -> int;
5558

5659
/// Atomic store, sequentially consistent.
5760
pub fn atomic_store(dst: &mut int, val: int);
5861
/// Atomic store, release ordering.
5962
pub fn atomic_store_rel(dst: &mut int, val: int);
6063

64+
#[cfg(not(stage0))]
6165
pub fn atomic_store_relaxed(dst: &mut int, val: int);
6266

6367
/// Atomic exchange, sequentially consistent.
@@ -66,7 +70,9 @@ pub extern "rust-intrinsic" {
6670
pub fn atomic_xchg_acq(dst: &mut int, src: int) -> int;
6771
/// Atomic exchange, release ordering.
6872
pub fn atomic_xchg_rel(dst: &mut int, src: int) -> int;
73+
#[cfg(not(stage0))]
6974
pub fn atomic_xchg_acqrel(dst: &mut int, src: int) -> int;
75+
#[cfg(not(stage0))]
7076
pub fn atomic_xchg_relaxed(dst: &mut int, src: int) -> int;
7177

7278
/// Atomic addition, sequentially consistent.
@@ -75,7 +81,9 @@ pub extern "rust-intrinsic" {
7581
pub fn atomic_xadd_acq(dst: &mut int, src: int) -> int;
7682
/// Atomic addition, release ordering.
7783
pub fn atomic_xadd_rel(dst: &mut int, src: int) -> int;
84+
#[cfg(not(stage0))]
7885
pub fn atomic_xadd_acqrel(dst: &mut int, src: int) -> int;
86+
#[cfg(not(stage0))]
7987
pub fn atomic_xadd_relaxed(dst: &mut int, src: int) -> int;
8088

8189
/// Atomic subtraction, sequentially consistent.
@@ -84,55 +92,97 @@ pub extern "rust-intrinsic" {
8492
pub fn atomic_xsub_acq(dst: &mut int, src: int) -> int;
8593
/// Atomic subtraction, release ordering.
8694
pub fn atomic_xsub_rel(dst: &mut int, src: int) -> int;
95+
#[cfg(not(stage0))]
8796
pub fn atomic_xsub_acqrel(dst: &mut int, src: int) -> int;
97+
#[cfg(not(stage0))]
8898
pub fn atomic_xsub_relaxed(dst: &mut int, src: int) -> int;
8999

100+
#[cfg(not(stage0))]
90101
pub fn atomic_and(dst: &mut int, src: int) -> int;
102+
#[cfg(not(stage0))]
91103
pub fn atomic_and_acq(dst: &mut int, src: int) -> int;
104+
#[cfg(not(stage0))]
92105
pub fn atomic_and_rel(dst: &mut int, src: int) -> int;
106+
#[cfg(not(stage0))]
93107
pub fn atomic_and_acqrel(dst: &mut int, src: int) -> int;
108+
#[cfg(not(stage0))]
94109
pub fn atomic_and_relaxed(dst: &mut int, src: int) -> int;
95110

111+
#[cfg(not(stage0))]
96112
pub fn atomic_nand(dst: &mut int, src: int) -> int;
113+
#[cfg(not(stage0))]
97114
pub fn atomic_nand_acq(dst: &mut int, src: int) -> int;
115+
#[cfg(not(stage0))]
98116
pub fn atomic_nand_rel(dst: &mut int, src: int) -> int;
117+
#[cfg(not(stage0))]
99118
pub fn atomic_nand_acqrel(dst: &mut int, src: int) -> int;
119+
#[cfg(not(stage0))]
100120
pub fn atomic_nand_relaxed(dst: &mut int, src: int) -> int;
101121

122+
#[cfg(not(stage0))]
102123
pub fn atomic_or(dst: &mut int, src: int) -> int;
124+
#[cfg(not(stage0))]
103125
pub fn atomic_or_acq(dst: &mut int, src: int) -> int;
126+
#[cfg(not(stage0))]
104127
pub fn atomic_or_rel(dst: &mut int, src: int) -> int;
128+
#[cfg(not(stage0))]
105129
pub fn atomic_or_acqrel(dst: &mut int, src: int) -> int;
130+
#[cfg(not(stage0))]
106131
pub fn atomic_or_relaxed(dst: &mut int, src: int) -> int;
107132

133+
#[cfg(not(stage0))]
108134
pub fn atomic_xor(dst: &mut int, src: int) -> int;
135+
#[cfg(not(stage0))]
109136
pub fn atomic_xor_acq(dst: &mut int, src: int) -> int;
137+
#[cfg(not(stage0))]
110138
pub fn atomic_xor_rel(dst: &mut int, src: int) -> int;
139+
#[cfg(not(stage0))]
111140
pub fn atomic_xor_acqrel(dst: &mut int, src: int) -> int;
141+
#[cfg(not(stage0))]
112142
pub fn atomic_xor_relaxed(dst: &mut int, src: int) -> int;
113143

144+
#[cfg(not(stage0))]
114145
pub fn atomic_max(dst: &mut int, src: int) -> int;
146+
#[cfg(not(stage0))]
115147
pub fn atomic_max_acq(dst: &mut int, src: int) -> int;
148+
#[cfg(not(stage0))]
116149
pub fn atomic_max_rel(dst: &mut int, src: int) -> int;
150+
#[cfg(not(stage0))]
117151
pub fn atomic_max_acqrel(dst: &mut int, src: int) -> int;
152+
#[cfg(not(stage0))]
118153
pub fn atomic_max_relaxed(dst: &mut int, src: int) -> int;
119154

155+
#[cfg(not(stage0))]
120156
pub fn atomic_min(dst: &mut int, src: int) -> int;
157+
#[cfg(not(stage0))]
121158
pub fn atomic_min_acq(dst: &mut int, src: int) -> int;
159+
#[cfg(not(stage0))]
122160
pub fn atomic_min_rel(dst: &mut int, src: int) -> int;
161+
#[cfg(not(stage0))]
123162
pub fn atomic_min_acqrel(dst: &mut int, src: int) -> int;
163+
#[cfg(not(stage0))]
124164
pub fn atomic_min_relaxed(dst: &mut int, src: int) -> int;
125165

166+
#[cfg(not(stage0))]
126167
pub fn atomic_umin(dst: &mut int, src: int) -> int;
168+
#[cfg(not(stage0))]
127169
pub fn atomic_umin_acq(dst: &mut int, src: int) -> int;
170+
#[cfg(not(stage0))]
128171
pub fn atomic_umin_rel(dst: &mut int, src: int) -> int;
172+
#[cfg(not(stage0))]
129173
pub fn atomic_umin_acqrel(dst: &mut int, src: int) -> int;
174+
#[cfg(not(stage0))]
130175
pub fn atomic_umin_relaxed(dst: &mut int, src: int) -> int;
131176

177+
#[cfg(not(stage0))]
132178
pub fn atomic_umax(dst: &mut int, src: int) -> int;
179+
#[cfg(not(stage0))]
133180
pub fn atomic_umax_acq(dst: &mut int, src: int) -> int;
181+
#[cfg(not(stage0))]
134182
pub fn atomic_umax_rel(dst: &mut int, src: int) -> int;
183+
#[cfg(not(stage0))]
135184
pub fn atomic_umax_acqrel(dst: &mut int, src: int) -> int;
185+
#[cfg(not(stage0))]
136186
pub fn atomic_umax_relaxed(dst: &mut int, src: int) -> int;
137187

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

trunk/src/libstd/vec.rs

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

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

39303931
#[test]
3932+
#[cfg(not(stage0))]
39313933
fn test_iterator() {
39323934
use iterator::*;
39333935
let xs = [1, 2, 5, 10, 11];

trunk/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, operator_prec};
63+
use ast_util::{as_prec, ident_to_path, operator_prec};
6464
use ast_util;
6565
use codemap::{span, BytePos, spanned, mk_sp};
6666
use codemap;

trunk/src/snapshots.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
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-
91
S 2013-06-21 6759ce4
102
macos-i386 6e5395d2fda1db356f64af28ba525031bf9871c7
113
macos-x86_64 7b8ded4e1ba1e999a5614eea3a4acacb2c7cef1d

0 commit comments

Comments
 (0)