Skip to content

Commit e36a638

Browse files
committed
---
yaml --- r: 63294 b: refs/heads/snap-stage3 c: f93a974 h: refs/heads/master v: v3
1 parent 28e42e0 commit e36a638

28 files changed

+77
-19
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: ec276448708983e506cd2751feb4efedc096b13e
4+
refs/heads/snap-stage3: f93a974558bf09bee475427158150ba6e008cdd8
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/CONTRIBUTING.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
## Pull request procedure
22

3-
Pull requests should be targeted at Rust's `incoming` branch (note
4-
that by default Github will aim them at the `master` branch) -- see
5-
"Changing The Commit Range and Destination Repository" in Github's
6-
documentation on [pull
7-
requests](https://help.github.com/articles/using-pull-requests).
3+
Pull requests should be targeted at Rust's `master` branch.
84
Before pushing to your Github repo and issuing the pull request,
95
please do two things:
106

117
1. [Rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) your
12-
local changes against the `incoming` branch. Resolve any conflicts
8+
local changes against the `master` branch. Resolve any conflicts
139
that arise.
1410

1511
2. Run the full Rust test suite with the `make check` command. You're

branches/snap-stage3/RELEASES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Version 0.7 (July 2013)
44
* ??? changes, numerous bugfixes
55

66
* Syntax changes
7-
* `#[deriving(Encodable)]`, `#[deriving(Decodable)]`
7+
* `#[deriving(Encodable)]`, `#[deriving(Decodable)]`
88

99
* Semantic changes
1010
* The `self` parameter no longer implicitly means `&'self self`,

branches/snap-stage3/src/etc/adb_run_wrapper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# usage : adb_run_wrapper [test dir - where test executables exist] [test executable]
33
#
44

5-
# Sometimes android shell produce exitcode "1 : Text File Busy"
5+
# Sometimes android shell produce exitcode "1 : Text File Busy"
66
# Retry after $WAIT seconds, expecting resource cleaned-up
77
WAIT=10
88
PATH=$1
@@ -20,15 +20,15 @@ then
2020
while [ $L_RET -eq 1 ]
2121
do
2222
LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
23-
L_RET=$?
23+
L_RET=$?
2424
if [ $L_COUNT -gt 0 ]
2525
then
2626
/system/bin/sleep $WAIT
2727
/system/bin/sync
2828
fi
2929
L_COUNT=`expr $L_COUNT+1`
3030
done
31-
31+
3232
echo $L_RET > $PATH/$RUN.exitcode
3333

3434
fi

branches/snap-stage3/src/librustc/middle/borrowck/gather_loans/gather_moves.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,4 @@ fn check_is_legal_to_move_from(bccx: @BorrowckCtxt,
161161
}
162162
}
163163
}
164+

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,4 @@ pub fn check_crate(tcx: ty::ctxt,
154154

155155
visit::visit_crate(crate, ((), visitor))
156156
}
157+

branches/snap-stage3/src/libstd/core.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,4 @@ mod std {
232232
pub use str;
233233
pub use os;
234234
}
235+

branches/snap-stage3/src/libstd/rt/comm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,3 +615,4 @@ mod test {
615615
}
616616
}
617617
}
618+

branches/snap-stage3/src/libstd/rt/io/stdio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ impl Writer for StdWriter {
5050

5151
fn flush(&mut self) { fail!() }
5252
}
53+

branches/snap-stage3/src/libstd/rt/task.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,4 @@ mod test {
228228
}
229229
}
230230
}
231+

branches/snap-stage3/src/libstd/rt/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,4 @@ pub fn stress_factor() -> uint {
189189
None => 1
190190
}
191191
}
192+

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,20 @@ fn rand_substructure(cx: @ExtCtxt, span: span, substr: &Substructure) -> @expr {
7878

7979
let variant_count = cx.expr_uint(span, variants.len());
8080

81-
// need to specify the uint-ness of the random number
82-
let u32_ty = cx.ty_ident(span, cx.ident_of("uint"));
81+
// need to specify the u32-ness of the random number
82+
let u32_ty = cx.ty_ident(span, cx.ident_of("u32"));
8383
let r_ty = cx.ty_ident(span, cx.ident_of("R"));
84-
let rand_name = cx.path_all(span, false, copy rand_ident, None, ~[ u32_ty, r_ty ]);
84+
let rand_name = cx.path_all(span, true, copy rand_ident, None, ~[ u32_ty, r_ty ]);
8585
let rand_name = cx.expr_path(rand_name);
8686

87+
// ::std::rand::Rand::rand::<u32>(rng)
8788
let rv_call = cx.expr_call(span,
8889
rand_name,
8990
~[ rng[0].duplicate(cx) ]);
9091

9192
// rand() % variants.len()
9293
let rand_variant = cx.expr_binary(span, ast::rem,
93-
rv_call, variant_count);
94+
rv_call, variant_count);
9495

9596
let mut arms = do variants.mapi |i, id_sum| {
9697
let i_expr = cx.expr_uint(span, i);

branches/snap-stage3/src/libsyntax/ext/pipes/ast_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ impl append_types for @ast::Path {
6363
}
6464
}
6565
}
66+

branches/snap-stage3/src/rt/rust_env.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,4 @@ free_env(rust_env *env) {
156156
free(env->rust_seed);
157157
free(env);
158158
}
159+

branches/snap-stage3/src/rustllvm/rustllvm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@
5454
#include <fcntl.h>
5555
#include <unistd.h>
5656
#endif
57+

branches/snap-stage3/src/test/auxiliary/anon-extern-mod-cross-crate-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ use std::libc;
2020
extern {
2121
pub fn rust_get_argc() -> libc::c_int;
2222
}
23+

branches/snap-stage3/src/test/auxiliary/private_variant_xc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pub enum Foo {
22
pub Bar,
33
priv Baz,
44
}
5+

branches/snap-stage3/src/test/auxiliary/use_from_trait_xc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ struct Foo;
77
impl Foo {
88
pub fn new() {}
99
}
10+

branches/snap-stage3/src/test/compile-fail/lint-unused-import-tricky-names.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ mod issue6935 {
4444
}
4545

4646
fn main(){}
47+

branches/snap-stage3/src/test/compile-fail/private-variant-xc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ pub fn main() {
66
let _ = private_variant_xc::Bar;
77
let _ = private_variant_xc::Baz; //~ ERROR unresolved name
88
}
9+

branches/snap-stage3/src/test/compile-fail/use-from-trait-xc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ use use_from_trait_xc::Foo::new; //~ ERROR cannot import from a trait or type
99

1010
fn main() {
1111
}
12+

branches/snap-stage3/src/test/compile-fail/use-from-trait.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ impl Foo {
1414
}
1515

1616
fn main() {}
17+

branches/snap-stage3/src/test/run-pass/const-struct-offsets.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ struct Bar {
1111
static bar: Bar = Bar { i: 0, v: IntVal(0) };
1212

1313
fn main() {}
14+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
extern mod extra; // {En,De}codable
12+
mod submod {
13+
// if any of these are implemented without global calls for any
14+
// function calls, then being in a submodule will (correctly)
15+
// cause errors about unrecognised module `std` (or `extra`)
16+
#[deriving(Eq, Ord, TotalEq, TotalOrd,
17+
IterBytes,
18+
Clone, DeepClone,
19+
ToStr, Rand,
20+
Encodable, Decodable)]
21+
enum A { A1(uint), A2(int) }
22+
23+
#[deriving(Eq, Ord, TotalEq, TotalOrd,
24+
IterBytes,
25+
Clone, DeepClone,
26+
ToStr, Rand,
27+
Encodable, Decodable)]
28+
struct B { x: uint, y: int }
29+
30+
#[deriving(Eq, Ord, TotalEq, TotalOrd,
31+
IterBytes,
32+
Clone, DeepClone,
33+
ToStr, Rand,
34+
Encodable, Decodable)]
35+
struct C(uint, int);
36+
37+
}
38+
39+
fn main() {}

branches/snap-stage3/src/test/run-pass/issue-4735.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ fn main() {
2626
let p = unsafe { transmute::<~int, *c_void>(t) };
2727
let z = NonCopyable(p);
2828
}
29+
30+

branches/snap-stage3/src/test/run-pass/monomorphize-abi-alignment.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ struct A((u32, u32));
2424
struct B(u64);
2525

2626
pub fn main() {
27-
static Ca: S<A> = S { i: 0, t: A((13, 104)) };
28-
static Cb: S<B> = S { i: 0, t: B(31337) };
29-
assert_eq!(*(Ca.unwrap()), (13, 104));
30-
assert_eq!(*(Cb.unwrap()), 31337);
27+
static Ca: S<A> = S { i: 0, t: A((13, 104)) };
28+
static Cb: S<B> = S { i: 0, t: B(31337) };
29+
assert_eq!(*(Ca.unwrap()), (13, 104));
30+
assert_eq!(*(Cb.unwrap()), 31337);
3131
}

branches/snap-stage3/src/test/run-pass/multi-let.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ pub fn main() {
1313
let y = x;
1414
assert!((y == 10));
1515
}
16+

branches/snap-stage3/src/test/run-pass/pub-extern-privacy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ fn main() {
1111
a::free(transmute(0));
1212
}
1313
}
14+

0 commit comments

Comments
 (0)