Skip to content

Commit 23d9e4d

Browse files
committed
---
yaml --- r: 63676 b: refs/heads/snap-stage3 c: 5242e8d h: refs/heads/master v: v3
1 parent dcc2625 commit 23d9e4d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+242
-124
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 0d471d310ded00283338ae28350b304e0f36e562
4+
refs/heads/snap-stage3: 5242e8d2bad01beec7c841d20952cb230bc9fd84
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/metadata/encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,8 @@ fn encode_info_for_method(ecx: &EncodeContext,
731731
}
732732

733733
let mut combined_ty_params = opt_vec::Empty;
734-
for owner_generics.ty_params.each |x| { combined_ty_params.push(copy *x) }
735-
for method_generics.ty_params.each |x| { combined_ty_params.push(copy *x) }
734+
for owner_generics.ty_params.iter().advance |x| { combined_ty_params.push(copy *x) }
735+
for method_generics.ty_params.iter().advance |x| { combined_ty_params.push(copy *x) }
736736
let len = combined_ty_params.len();
737737
encode_type_param_bounds(ebml_w, ecx, &combined_ty_params);
738738

branches/snap-stage3/src/librustc/middle/resolve.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3834,8 +3834,8 @@ impl Resolver {
38343834
pub fn resolve_type_parameters(@mut self,
38353835
type_parameters: &OptVec<TyParam>,
38363836
visitor: ResolveVisitor) {
3837-
for type_parameters.each |type_parameter| {
3838-
for type_parameter.bounds.each |bound| {
3837+
for type_parameters.iter().advance |type_parameter| {
3838+
for type_parameter.bounds.iter().advance |bound| {
38393839
self.resolve_type_parameter_bound(bound, visitor);
38403840
}
38413841
}
@@ -4181,13 +4181,13 @@ impl Resolver {
41814181
}
41824182
}
41834183

4184-
for bounds.each |bound| {
4184+
for bounds.iter().advance |bound| {
41854185
self.resolve_type_parameter_bound(bound, visitor);
41864186
}
41874187
}
41884188

41894189
ty_closure(c) => {
4190-
for c.bounds.each |bound| {
4190+
for c.bounds.iter().advance |bound| {
41914191
self.resolve_type_parameter_bound(bound, visitor);
41924192
}
41934193
visit_ty(ty, ((), visitor));

branches/snap-stage3/src/librustc/middle/typeck/astconv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ fn conv_builtin_bounds(tcx: ty::ctxt,
752752
//! legal.
753753
754754
let mut builtin_bounds = ty::EmptyBuiltinBounds();
755-
for ast_bounds.each |ast_bound| {
755+
for ast_bounds.iter().advance |ast_bound| {
756756
match *ast_bound {
757757
ast::TraitTyParamBound(b) => {
758758
match lookup_def_tcx(tcx, b.path.span, b.ref_id) {

branches/snap-stage3/src/librustc/middle/typeck/collect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ pub fn ensure_no_ty_param_bounds(ccx: &CrateCtxt,
775775
span: span,
776776
generics: &ast::Generics,
777777
thing: &'static str) {
778-
for generics.ty_params.each |ty_param| {
778+
for generics.ty_params.iter().advance |ty_param| {
779779
if ty_param.bounds.len() > 0 {
780780
ccx.tcx.sess.span_err(
781781
span,
@@ -1172,7 +1172,7 @@ pub fn ty_generics(ccx: &CrateCtxt,
11721172
builtin_bounds: ty::EmptyBuiltinBounds(),
11731173
trait_bounds: ~[]
11741174
};
1175-
for ast_bounds.each |ast_bound| {
1175+
for ast_bounds.iter().advance |ast_bound| {
11761176
match *ast_bound {
11771177
TraitTyParamBound(b) => {
11781178
let ty = ty::mk_param(ccx.tcx, param_ty.idx, param_ty.def_id);

branches/snap-stage3/src/librustc/middle/typeck/rscope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl RegionParamNames {
5757
}
5858

5959
fn has_ident(&self, ident: ast::ident) -> bool {
60-
for self.each |region_param_name| {
60+
for self.iter().advance |region_param_name| {
6161
if *region_param_name == ident {
6262
return true;
6363
}

branches/snap-stage3/src/libsyntax/abi.rs

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

11-
use std::to_bytes;
11+
use core::prelude::*;
12+
13+
use core::to_bytes;
1214

1315
#[deriving(Eq)]
1416
pub enum Abi {

branches/snap-stage3/src/libsyntax/ast.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@
1010

1111
// The Rust abstract syntax tree.
1212

13+
use core::prelude::*;
14+
1315
use codemap::{span, spanned};
1416
use abi::AbiSet;
1517
use opt_vec::OptVec;
1618
use parse::token::{interner_get, str_to_ident};
1719

18-
use std::hashmap::HashMap;
19-
use std::option::Option;
20-
use std::to_bytes::IterBytes;
21-
use std::to_bytes;
22-
use std::to_str::ToStr;
20+
use core::hashmap::HashMap;
21+
use core::option::Option;
22+
use core::to_bytes::IterBytes;
23+
use core::to_bytes;
24+
use core::to_str::ToStr;
2325
use extra::serialize::{Encodable, Decodable, Encoder, Decoder};
2426

2527

branches/snap-stage3/src/libsyntax/ast_map.rs

Lines changed: 5 additions & 3 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+
use core::prelude::*;
12+
1113
use abi::AbiSet;
1214
use ast::*;
1315
use ast;
@@ -20,9 +22,9 @@ use print::pprust;
2022
use visit;
2123
use syntax::parse::token::special_idents;
2224

23-
use std::cmp;
24-
use std::hashmap::HashMap;
25-
use std::vec;
25+
use core::cmp;
26+
use core::hashmap::HashMap;
27+
use core::vec;
2628

2729
pub enum path_elt {
2830
path_mod(ident),

branches/snap-stage3/src/libsyntax/ast_util.rs

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

11+
use core::prelude::*;
12+
1113
use ast::*;
1214
use ast;
1315
use ast_util;
1416
use codemap::{span, spanned};
17+
use core::cast;
18+
use core::local_data;
1519
use opt_vec;
1620
use parse::token;
1721
use visit;
1822

19-
use std::hashmap::HashMap;
20-
use std::int;
21-
use std::option;
22-
use std::to_bytes;
23-
use std::cast;
24-
use std::local_data;
23+
use core::hashmap::HashMap;
24+
use core::int;
25+
use core::option;
26+
use core::to_bytes;
2527

2628
pub fn path_name_i(idents: &[ident]) -> ~str {
2729
// FIXME: Bad copies (#2543 -- same for everything else that says "bad")
@@ -392,10 +394,10 @@ impl id_range {
392394

393395
pub fn id_visitor<T: Copy>(vfn: @fn(node_id, T)) -> visit::vt<T> {
394396
let visit_generics: @fn(&Generics, T) = |generics, t| {
395-
for generics.ty_params.each |p| {
397+
for generics.ty_params.iter().advance |p| {
396398
vfn(p.id, copy t);
397399
}
398-
for generics.lifetimes.each |p| {
400+
for generics.lifetimes.iter().advance |p| {
399401
vfn(p.id, copy t);
400402
}
401403
};
@@ -791,7 +793,7 @@ pub fn getLast(arr: &~[Mrk]) -> uint {
791793
mod test {
792794
use ast::*;
793795
use super::*;
794-
use std::io;
796+
use core::io;
795797
796798
#[test] fn xorpush_test () {
797799
let mut s = ~[];

branches/snap-stage3/src/libsyntax/attr.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Functions dealing with attributes and meta_items
1212

13-
extern mod extra;
13+
use core::prelude::*;
1414

1515
use ast;
1616
use codemap::{spanned, dummy_spanned};
@@ -19,8 +19,10 @@ use codemap::BytePos;
1919
use diagnostic::span_handler;
2020
use parse::comments::{doc_comment_style, strip_doc_comment_decoration};
2121

22-
use std::hashmap::HashSet;
23-
use std::vec;
22+
use core::hashmap::HashSet;
23+
use core::vec;
24+
use extra;
25+
2426
/* Constructors */
2527

2628
pub fn mk_name_value_item_str(name: @str, value: @str)

branches/snap-stage3/src/libsyntax/codemap.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ source code snippets, etc.
2121
2222
*/
2323

24-
use std::cmp;
25-
use std::to_bytes;
26-
use std::uint;
24+
use core::prelude::*;
25+
26+
use core::cmp;
27+
use core::to_bytes;
28+
use core::uint;
2729
use extra::serialize::{Encodable, Decodable, Encoder, Decoder};
2830

2931
pub trait Pos {

branches/snap-stage3/src/libsyntax/diagnostic.rs

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

11+
use core::prelude::*;
12+
1113
use codemap::{Pos, span};
1214
use codemap;
1315

14-
use std::io;
15-
use std::uint;
16-
use std::vec;
16+
use core::io;
17+
use core::uint;
18+
use core::vec;
1719
use extra::term;
1820

1921
pub type Emitter = @fn(cmsp: Option<(@codemap::CodeMap, span)>,

branches/snap-stage3/src/libsyntax/ext/asm.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
* Inline assembly support.
1313
*/
1414

15+
use core::prelude::*;
16+
17+
use core::vec;
1518
use ast;
1619
use codemap::span;
1720
use ext::base;
1821
use ext::base::*;
1922
use parse;
2023
use parse::token;
2124

22-
use std::vec;
23-
2425
enum State {
2526
Asm,
2627
Outputs,

branches/snap-stage3/src/libsyntax/ext/base.rs

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

11+
use core::prelude::*;
12+
13+
use core::vec;
1114
use ast;
1215
use ast::Name;
1316
use codemap;
@@ -19,8 +22,7 @@ use parse;
1922
use parse::token;
2023
use parse::token::{ident_to_str, intern, str_to_ident};
2124

22-
use std::vec;
23-
use std::hashmap::HashMap;
25+
use core::hashmap::HashMap;
2426

2527
// new-style macro! tt code:
2628
//
@@ -533,7 +535,7 @@ fn satisfies_pred<K : Eq + Hash + IterBytes,V>(map : &mut HashMap<K,V>,
533535
#[cfg(test)]
534536
mod test {
535537
use super::MapChain;
536-
use std::hashmap::HashMap;
538+
use core::hashmap::HashMap;
537539
538540
#[test] fn testenv () {
539541
let mut a = HashMap::new();

branches/snap-stage3/src/libsyntax/ext/build.rs

Lines changed: 2 additions & 0 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+
use core::prelude::*;
12+
1113
use abi::AbiSet;
1214
use ast::ident;
1315
use ast;

branches/snap-stage3/src/libsyntax/ext/concat_idents.rs

Lines changed: 2 additions & 0 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+
use core::prelude::*;
12+
1113
use ast;
1214
use codemap::span;
1315
use ext::base::*;

branches/snap-stage3/src/libsyntax/ext/deriving/clone.rs

Lines changed: 2 additions & 0 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+
use core::prelude::*;
12+
1113
use ast::{meta_item, item, expr};
1214
use codemap::span;
1315
use ext::base::ExtCtxt;

branches/snap-stage3/src/libsyntax/ext/deriving/cmp/eq.rs

Lines changed: 2 additions & 0 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+
use core::prelude::*;
12+
1113
use ast::{meta_item, item, expr};
1214
use codemap::span;
1315
use ext::base::ExtCtxt;

branches/snap-stage3/src/libsyntax/ext/deriving/cmp/ord.rs

Lines changed: 2 additions & 0 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+
use core::prelude::*;
12+
1113
use ast;
1214
use ast::{meta_item, item, expr};
1315
use codemap::span;

branches/snap-stage3/src/libsyntax/ext/deriving/cmp/totaleq.rs

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

11-
use std::prelude::*;
11+
use core::prelude::*;
1212

1313
use ast::{meta_item, item, expr};
1414
use codemap::span;

branches/snap-stage3/src/libsyntax/ext/deriving/cmp/totalord.rs

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

11+
use core::prelude::*;
12+
1113
use ast::{meta_item, item, expr};
1214
use codemap::span;
1315
use ext::base::ExtCtxt;
1416
use ext::build::AstBuilder;
1517
use ext::deriving::generic::*;
16-
use std::cmp::{Ordering, Equal, Less, Greater};
18+
use core::cmp::{Ordering, Equal, Less, Greater};
1719

1820
pub fn expand_deriving_totalord(cx: @ExtCtxt,
1921
span: span,

branches/snap-stage3/src/libsyntax/ext/deriving/decodable.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ The compiler code necessary for #[deriving(Decodable)]. See
1313
encodable.rs for more.
1414
*/
1515

16-
use std::vec;
17-
use std::uint;
16+
use core::prelude::*;
17+
use core::vec;
18+
use core::uint;
1819

1920
use ast::{meta_item, item, expr, m_mutbl};
2021
use codemap::span;

branches/snap-stage3/src/libsyntax/ext/deriving/encodable.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ would yield functions like:
7575
}
7676
*/
7777

78+
use core::prelude::*;
79+
7880
use ast::{meta_item, item, expr, m_imm, m_mutbl};
7981
use codemap::span;
8082
use ext::base::ExtCtxt;

0 commit comments

Comments
 (0)