Skip to content

Commit 3ff62ac

Browse files
committed
---
yaml --- r: 56211 b: refs/heads/auto c: d2a81b9 h: refs/heads/master i: 56209: ee614e6 56207: d9e312b v: v3
1 parent 36fff3c commit 3ff62ac

Some content is hidden

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

64 files changed

+862
-1717
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: f43fc5fff898d2c2d0b2a49ec35daf1005e76dd9
17+
refs/heads/auto: d2a81b95c3e2ccfdba0324caae531ce3528ed4e2
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,3 @@ config.stamp
8686
.DS_Store
8787
src/etc/dl
8888
.settings/
89-
build/

branches/auto/doc/tutorial.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,9 +1669,6 @@ do spawn {
16691669
}
16701670
~~~~
16711671

1672-
If you want to see the output of `debug!` statements, you will need to turn on `debug!` logging.
1673-
To enable `debug!` logging, set the RUST_LOG environment variable to `debug` (e.g., with bash, `export RUST_LOG=debug`)
1674-
16751672
## For loops
16761673

16771674
The most common way to express iteration in Rust is with a `for`

branches/auto/mk/rt.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ RUNTIME_CXXS_$(1) := \
7676
rt/boxed_region.cpp \
7777
rt/arch/$$(HOST_$(1))/context.cpp \
7878
rt/arch/$$(HOST_$(1))/gpr.cpp \
79-
rt/rust_android_dummy.cpp \
80-
rt/rust_test_helpers.cpp
79+
rt/rust_android_dummy.cpp
8180

8281
RUNTIME_CS_$(1) := rt/linenoise/linenoise.c rt/linenoise/utf8.c
8382

branches/auto/src/etc/x86.supp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -654,11 +654,3 @@
654654
fun:_ZN5visit30visit_struct_dtor_helper_*
655655
...
656656
}
657-
658-
{
659-
llvm-optimization-reads-uninitialized-memory-16
660-
Memcheck:Cond
661-
fun:_ZN7ast_map6map_fn*
662-
fun:_ZN5visit30visit_struct_dtor_helper*
663-
...
664-
}

branches/auto/src/libcore/num/int-template.rs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,30 @@ impl ops::Modulo<T,T> for T {
199199
impl ops::Neg<T> for T {
200200
fn neg(&self) -> T { -*self }
201201
}
202+
#[cfg(notest)]
203+
impl ops::BitOr<T,T> for T {
204+
fn bitor(&self, other: &T) -> T { *self | *other }
205+
}
206+
#[cfg(notest)]
207+
impl ops::BitAnd<T,T> for T {
208+
fn bitand(&self, other: &T) -> T { *self & *other }
209+
}
210+
#[cfg(notest)]
211+
impl ops::BitXor<T,T> for T {
212+
fn bitxor(&self, other: &T) -> T { *self ^ *other }
213+
}
214+
#[cfg(notest)]
215+
impl ops::Shl<T,T> for T {
216+
fn shl(&self, other: &T) -> T { *self << *other }
217+
}
218+
#[cfg(notest)]
219+
impl ops::Shr<T,T> for T {
220+
fn shr(&self, other: &T) -> T { *self >> *other }
221+
}
222+
#[cfg(notest)]
223+
impl ops::Not<T> for T {
224+
fn not(&self) -> T { !*self }
225+
}
202226
203227
// String conversion functions and impl str -> num
204228
@@ -283,6 +307,16 @@ mod tests {
283307
use super::inst::T;
284308
use prelude::*;
285309
310+
#[test]
311+
fn test_bitwise_ops() {
312+
assert!(0b1110 as T == (0b1100 as T).bitor(&(0b1010 as T)));
313+
assert!(0b1000 as T == (0b1100 as T).bitand(&(0b1010 as T)));
314+
assert!(0b0110 as T == (0b1100 as T).bitxor(&(0b1010 as T)));
315+
assert!(0b1110 as T == (0b0111 as T).shl(&(1 as T)));
316+
assert!(0b0111 as T == (0b1110 as T).shr(&(1 as T)));
317+
assert!(-(0b11 as T) - (1 as T) == (0b11 as T).not());
318+
}
319+
286320
#[test]
287321
fn test_from_str() {
288322
assert!(from_str(~"0") == Some(0 as T));

branches/auto/src/libcore/num/uint-template.rs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,30 @@ impl ops::Modulo<T,T> for T {
164164
impl ops::Neg<T> for T {
165165
fn neg(&self) -> T { -*self }
166166
}
167+
#[cfg(notest)]
168+
impl ops::BitOr<T,T> for T {
169+
fn bitor(&self, other: &T) -> T { *self | *other }
170+
}
171+
#[cfg(notest)]
172+
impl ops::BitAnd<T,T> for T {
173+
fn bitand(&self, other: &T) -> T { *self & *other }
174+
}
175+
#[cfg(notest)]
176+
impl ops::BitXor<T,T> for T {
177+
fn bitxor(&self, other: &T) -> T { *self ^ *other }
178+
}
179+
#[cfg(notest)]
180+
impl ops::Shl<T,T> for T {
181+
fn shl(&self, other: &T) -> T { *self << *other }
182+
}
183+
#[cfg(notest)]
184+
impl ops::Shr<T,T> for T {
185+
fn shr(&self, other: &T) -> T { *self >> *other }
186+
}
187+
#[cfg(notest)]
188+
impl ops::Not<T> for T {
189+
fn not(&self) -> T { !*self }
190+
}
167191
168192
// String conversion functions and impl str -> num
169193
@@ -247,6 +271,17 @@ mod tests {
247271
use super::*;
248272
use super::inst::T;
249273
use prelude::*;
274+
275+
#[test]
276+
fn test_bitwise_ops() {
277+
assert!(0b1110 as T == (0b1100 as T).bitor(&(0b1010 as T)));
278+
assert!(0b1000 as T == (0b1100 as T).bitand(&(0b1010 as T)));
279+
assert!(0b0110 as T == (0b1100 as T).bitxor(&(0b1010 as T)));
280+
assert!(0b1110 as T == (0b0111 as T).shl(&(1 as T)));
281+
assert!(0b0111 as T == (0b1110 as T).shr(&(1 as T)));
282+
assert!(max_value - (0b1011 as T) == (0b1011 as T).not());
283+
}
284+
250285
#[test]
251286
pub fn test_to_str() {
252287
assert!(to_str_radix(0 as T, 10u) == ~"0");

branches/auto/src/libcore/repr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ use io::{Writer, WriterUtil};
2323
use libc::c_void;
2424
use managed;
2525
use ptr;
26-
#[cfg(stage0)] use sys;
2726
use reflect;
2827
use reflect::{MovePtr, align};
28+
use sys;
2929
use to_str::ToStr;
3030
use vec::UnboxedVecRepr;
3131
use vec::raw::{VecRepr, SliceRepr};
@@ -479,7 +479,7 @@ impl TyVisitor for ReprVisitor {
479479
}
480480

481481
#[cfg(not(stage0))]
482-
fn visit_enter_enum(&self, _n_variants: uint,
482+
fn visit_enter_enum(&self, n_variants: uint,
483483
get_disr: extern unsafe fn(ptr: *Opaque) -> int,
484484
_sz: uint, _align: uint) -> bool {
485485
let disr = unsafe { get_disr(transmute(self.ptr)) };

branches/auto/src/libcore/rt/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ macro_rules! rtdebug (
3232
($( $arg:expr),+) => ( $(let _ = $arg)*; )
3333
)
3434

35-
#[path = "sched/mod.rs"]
3635
mod sched;
3736
mod rtio;
3837
pub mod uvll;

0 commit comments

Comments
 (0)