Skip to content

Commit f3a2796

Browse files
committed
---
yaml --- r: 63326 b: refs/heads/snap-stage3 c: 104e612 h: refs/heads/master v: v3
1 parent aaa6b20 commit f3a2796

35 files changed

+13
-232
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: 893c70d7bc670054ef646b71d4d503298cc50d76
4+
refs/heads/snap-stage3: 104e6120b1161e6d242644c987b65525daa5ad5a
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,3 @@ fn check_is_legal_to_move_from(bccx: @BorrowckCtxt,
161161
}
162162
}
163163
}
164-

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

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

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

branches/snap-stage3/src/libstd/char.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use u32;
1717
use uint;
1818
use unicode::{derived_property, general_category};
1919

20-
#[cfg(not(test))] use cmp::{Eq, Ord};
21-
#[cfg(not(test))] use num::Zero;
20+
#[cfg(not(test))]
21+
use cmp::{Eq, Ord};
2222

2323
/*
2424
Lu Uppercase_Letter an uppercase letter
@@ -328,12 +328,6 @@ impl Ord for char {
328328
fn ge(&self, other: &char) -> bool { *self >= *other }
329329
}
330330

331-
#[cfg(not(test))]
332-
impl Zero for char {
333-
fn zero() -> char { 0 as char }
334-
fn is_zero(&self) -> bool { *self == 0 as char }
335-
}
336-
337331
#[test]
338332
fn test_is_lowercase() {
339333
assert!('a'.is_lowercase());

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

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

branches/snap-stage3/src/libstd/num/num.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -418,21 +418,6 @@ pub fn pow_with_uint<T:NumCast+One+Zero+Copy+Div<T,T>+Mul<T,T>>(radix: uint, pow
418418
total
419419
}
420420

421-
impl<T: Zero> Zero for @mut T {
422-
fn zero() -> @mut T { @mut Zero::zero() }
423-
fn is_zero(&self) -> bool { (**self).is_zero() }
424-
}
425-
426-
impl<T: Zero> Zero for @T {
427-
fn zero() -> @T { @Zero::zero() }
428-
fn is_zero(&self) -> bool { (**self).is_zero() }
429-
}
430-
431-
impl<T: Zero> Zero for ~T {
432-
fn zero() -> ~T { ~Zero::zero() }
433-
fn is_zero(&self) -> bool { (**self).is_zero() }
434-
}
435-
436421
/// Helper function for testing numeric operations
437422
#[cfg(test)]
438423
pub fn test_num<T:Num + NumCast>(ten: T, two: T) {

branches/snap-stage3/src/libstd/option.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,6 @@ impl<T:Copy + Zero> Option<T> {
350350
}
351351
}
352352

353-
impl<T> Zero for Option<T> {
354-
fn zero() -> Option<T> { None }
355-
fn is_zero(&self) -> bool { self.is_none() }
356-
}
357-
358353
/// Immutable iterator over an `Option<A>`
359354
pub struct OptionIterator<'self, A> {
360355
priv opt: Option<&'self A>

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

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

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

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

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

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

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

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

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

branches/snap-stage3/src/libstd/str.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use container::Container;
2828
use iter::Times;
2929
use iterator::{Iterator, IteratorUtil, FilterIterator, AdditiveIterator};
3030
use libc;
31-
use num::Zero;
3231
use option::{None, Option, Some};
3332
use old_iter::{BaseIter, EqIter};
3433
use ptr;
@@ -2251,16 +2250,6 @@ impl<'self> Iterator<u8> for StrBytesRevIterator<'self> {
22512250
}
22522251
}
22532252
2254-
impl Zero for ~str {
2255-
fn zero() -> ~str { ~"" }
2256-
fn is_zero(&self) -> bool { self.len() == 0 }
2257-
}
2258-
2259-
impl Zero for @str {
2260-
fn zero() -> @str { @"" }
2261-
fn is_zero(&self) -> bool { self.len() == 0 }
2262-
}
2263-
22642253
#[cfg(test)]
22652254
mod tests {
22662255
use iterator::IteratorUtil;

branches/snap-stage3/src/libstd/tuple.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ macro_rules! tuple_impls {
135135
pub mod inner {
136136
use clone::Clone;
137137
#[cfg(not(test))] use cmp::*;
138-
#[cfg(not(test))] use num::Zero;
139138

140139
$(
141140
pub trait $cloneable_trait<$($T),+> {
@@ -211,18 +210,6 @@ macro_rules! tuple_impls {
211210
lexical_cmp!($(self.$get_ref_fn(), other.$get_ref_fn()),+)
212211
}
213212
}
214-
215-
#[cfg(not(test))]
216-
impl<$($T:Zero),+> Zero for ($($T),+) {
217-
#[inline]
218-
fn zero() -> ($($T),+) {
219-
($(Zero::zero::<$T>()),+)
220-
}
221-
#[inline]
222-
fn is_zero(&self) -> bool {
223-
$(self.$get_ref_fn().is_zero())&&+
224-
}
225-
}
226213
)+
227214
}
228215
}

branches/snap-stage3/src/libstd/vec.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use iterator::{Iterator, IteratorUtil};
2323
use iter::FromIter;
2424
use kinds::Copy;
2525
use libc;
26-
use num::Zero;
2726
use old_iter::CopyableIter;
2827
use option::{None, Option, Some};
2928
use ptr::to_unsafe_ptr;
@@ -2703,16 +2702,6 @@ impl<A:Clone> Clone for ~[A] {
27032702
}
27042703
}
27052704

2706-
impl<A> Zero for ~[A] {
2707-
fn zero() -> ~[A] { ~[] }
2708-
fn is_zero(&self) -> bool { self.len() == 0 }
2709-
}
2710-
2711-
impl<A> Zero for @[A] {
2712-
fn zero() -> @[A] { @[] }
2713-
fn is_zero(&self) -> bool { self.len() == 0 }
2714-
}
2715-
27162705
macro_rules! iterator {
27172706
/* FIXME: #4375 Cannot attach documentation/attributes to a macro generated struct.
27182707
(struct $name:ident -> $ptr:ty, $elem:ty) => {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pub mod encodable;
3232
pub mod decodable;
3333
pub mod rand;
3434
pub mod to_str;
35-
pub mod zero;
3635

3736
#[path="cmp/eq.rs"]
3837
pub mod eq;
@@ -100,7 +99,6 @@ pub fn expand_meta_deriving(cx: @ExtCtxt,
10099
"Rand" => expand!(rand::expand_deriving_rand),
101100

102101
"ToStr" => expand!(to_str::expand_deriving_to_str),
103-
"Zero" => expand!(zero::expand_deriving_zero),
104102

105103
ref tname => {
106104
cx.span_err(titem.span, fmt!("unknown \

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

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

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

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

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

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ pub enum Foo {
22
pub Bar,
33
priv Baz,
44
}
5-

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@ mod issue6935 {
4444
}
4545

4646
fn main(){}
47-

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ impl Foo {
1414
}
1515

1616
fn main() {}
17-

branches/snap-stage3/src/test/run-pass/auto-encode.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// option. This file may not be copied, modified, or distributed
1111
// except according to those terms.
1212

13+
// xfail-test #6122
14+
1315
#[forbid(deprecated_pattern)];
1416

1517
extern mod extra;

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

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

1313
fn main() {}
14-

0 commit comments

Comments
 (0)