Skip to content

Commit ee56bed

Browse files
committed
---
yaml --- r: 44750 b: refs/heads/master c: 9b8ce0d h: refs/heads/master v: v3
1 parent 2b39afa commit ee56bed

File tree

8 files changed

+27
-226
lines changed

8 files changed

+27
-226
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: 5098cf5bd2abbef4418e93c9ab7db1eac43bb1bb
2+
refs/heads/master: 9b8ce0d3b5dd5fd371d665258555db54b1656300
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Josh Matthews <[email protected]>
9393
Joshua Clark <[email protected]>
9494
Joshua Wise <[email protected]>
9595
Jyun-Yan You <[email protected]>
96+
Kang Seonghoon <[email protected]>
9697
Kelly Wilson <[email protected]>
9798
Kevin Atkinson <[email protected]>
9899
Kevin Cantu <[email protected]>

trunk/src/librustc/middle/trans/cabi_arm.rs

Lines changed: 0 additions & 164 deletions
This file was deleted.

trunk/src/librustc/middle/trans/foreign.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use lib;
2121
use middle::trans::base::*;
2222
use middle::trans::cabi;
2323
use middle::trans::cabi_x86_64::*;
24-
use middle::trans::cabi_arm;
2524
use middle::trans::build::*;
2625
use middle::trans::callee::*;
2726
use middle::trans::common::*;
@@ -43,8 +42,7 @@ use syntax::parse::token::special_idents;
4342

4443
fn abi_info(arch: session::arch) -> cabi::ABIInfo {
4544
return match arch {
46-
arch_x86_64 => x86_64_abi_info(),
47-
arch_arm => cabi_arm::abi_info(),
45+
arch_x86_64 | arch_arm => x86_64_abi_info(),
4846
_ => cabi::llvm_abi_info()
4947
}
5048
}

trunk/src/librustc/rustc.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ pub mod middle {
6868
pub mod meth;
6969
pub mod cabi;
7070
pub mod cabi_x86_64;
71-
pub mod cabi_arm;
7271
pub mod foreign;
7372
pub mod reflect;
7473
pub mod shape;

trunk/src/libsyntax/ext/auto_encode.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,9 +1176,9 @@ mod test {
11761176
// all of the ones I was too lazy to handle:
11771177
CallToOther
11781178
}
1179-
// using a mutable field rather than changing the
1179+
// using `@mut` rather than changing the
11801180
// type of self in every method of every encoder everywhere.
1181-
pub struct TestEncoder {mut call_log : ~[call]}
1181+
pub struct TestEncoder {call_log : @mut ~[call]}
11821182
11831183
pub impl TestEncoder {
11841184
// these self's should be &mut self's, as well....
@@ -1272,9 +1272,9 @@ mod test {
12721272
struct Node {id: uint}
12731273
12741274
fn to_call_log (val: Encodable<TestEncoder>) -> ~[call] {
1275-
let mut te = TestEncoder {call_log: ~[]};
1275+
let mut te = TestEncoder {call_log: @mut ~[]};
12761276
val.encode(&te);
1277-
te.call_log
1277+
copy *te.call_log
12781278
}
12791279
/*
12801280
#[test] fn encode_test () {

trunk/src/libsyntax/parse/parser.rs

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -748,18 +748,6 @@ pub impl Parser {
748748
}
749749
}
750750

751-
fn parse_capture_item_or(parse_arg_fn: fn(Parser) -> arg_or_capture_item)
752-
-> arg_or_capture_item
753-
{
754-
if self.eat_keyword(~"copy") {
755-
// XXX outdated syntax now that moves-based-on-type has gone in
756-
self.parse_ident();
757-
either::Right(())
758-
} else {
759-
parse_arg_fn(self)
760-
}
761-
}
762-
763751
// This version of parse arg doesn't necessarily require
764752
// identifier names.
765753
fn parse_arg_general(require_name: bool) -> arg {
@@ -788,32 +776,26 @@ pub impl Parser {
788776
either::Left(self.parse_arg_general(true))
789777
}
790778
791-
fn parse_arg_or_capture_item() -> arg_or_capture_item {
792-
self.parse_capture_item_or(|p| p.parse_arg())
793-
}
794-
795779
fn parse_fn_block_arg() -> arg_or_capture_item {
796-
do self.parse_capture_item_or |p| {
797-
let m = p.parse_arg_mode();
798-
let is_mutbl = self.eat_keyword(~"mut");
799-
let pat = p.parse_pat(false);
800-
let t = if p.eat(token::COLON) {
801-
p.parse_ty(false)
802-
} else {
803-
@Ty {
804-
id: p.get_id(),
805-
node: ty_infer,
806-
span: mk_sp(p.span.lo, p.span.hi),
807-
}
808-
};
809-
either::Left(ast::arg {
810-
mode: m,
811-
is_mutbl: is_mutbl,
812-
ty: t,
813-
pat: pat,
814-
id: p.get_id()
815-
})
816-
}
780+
let m = self.parse_arg_mode();
781+
let is_mutbl = self.eat_keyword(~"mut");
782+
let pat = self.parse_pat(false);
783+
let t = if self.eat(token::COLON) {
784+
self.parse_ty(false)
785+
} else {
786+
@Ty {
787+
id: self.get_id(),
788+
node: ty_infer,
789+
span: mk_sp(self.span.lo, self.span.hi),
790+
}
791+
};
792+
either::Left(ast::arg {
793+
mode: m,
794+
is_mutbl: is_mutbl,
795+
ty: t,
796+
pat: pat,
797+
id: self.get_id()
798+
})
817799
}
818800

819801
fn maybe_parse_fixed_vstore_with_star() -> Option<uint> {
@@ -1722,7 +1704,7 @@ pub impl Parser {
17221704

17231705
// if we want to allow fn expression argument types to be inferred in
17241706
// the future, just have to change parse_arg to parse_fn_block_arg.
1725-
let decl = self.parse_fn_decl(|p| p.parse_arg_or_capture_item());
1707+
let decl = self.parse_fn_decl(|p| p.parse_arg());
17261708

17271709
let body = self.parse_block();
17281710

trunk/src/test/run-pass/cap-clause-not-used.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)