add gitattributes and fix whitespace issues

This commit is contained in:
Daniel Micay 2013-05-03 19:25:04 -04:00
parent bfd3cd8171
commit 86efd97a10
433 changed files with 196 additions and 597 deletions

View file

@ -17,4 +17,3 @@ pub impl Foo {
Foo { x: 3 }
}
}

View file

@ -27,4 +27,3 @@ pub mod kitties {
}
}
}

View file

@ -31,4 +31,3 @@ pub mod kitties {
}
}
}

View file

@ -56,5 +56,3 @@ pub mod kitty {
}
}
}

View file

@ -19,4 +19,3 @@ pub fn iter(v: ~[uint], f: &fn(uint)) {
i += 1u;
}
}

View file

@ -23,5 +23,3 @@ impl Foo for Bar {
io::println((*self).x);
}
}

View file

@ -3,4 +3,3 @@
pub mod extern_mod_ordering_lib {
pub fn f() {}
}

View file

@ -15,4 +15,3 @@ pub mod rustrt {
pub fn rust_get_argc() -> libc::c_int;
}
}

View file

@ -7,4 +7,3 @@ pub struct Fish {
pub impl Fish {
fn swim(&self) {}
}

View file

@ -11,5 +11,3 @@ mod unexported {
fn ne(&self, _: &Fish) -> bool { false }
}
}

View file

@ -20,4 +20,3 @@ trait foo {
impl foo for ~str {
fn foo(&self) {}
}

View file

@ -14,4 +14,3 @@
#[crate_type = "lib"];
extern mod a;

View file

@ -55,4 +55,3 @@ fn context_res() -> context_res {
}
pub type context = arc_destruct<context_res>;

View file

@ -17,5 +17,3 @@ pub mod cloth {
gingham, flannel, calico
}
}

View file

@ -12,7 +12,7 @@ trait x {
fn use_x<T>(&self);
}
struct y(());
impl x for y {
impl x for y {
fn use_x<T>(&self) {
struct foo { //~ ERROR quux
i: ()
@ -20,6 +20,5 @@ impl x for y {
fn new_foo<T>(i: ()) -> foo {
foo { i: i }
}
}
}
}

View file

@ -12,7 +12,7 @@ mod issue_3882 {
struct Completions {
len: libc::size_t,
}
mod c {
extern {
fn linenoiseAddCompletion(lc: *mut Completions);

View file

@ -25,4 +25,3 @@ pub fn f() {
let y = x;
let z = y;
}

View file

@ -1,4 +1,3 @@
#[crate_type="lib"];
pub struct Au(int);

View file

@ -18,4 +18,3 @@ pub mod a {
}
}
}

View file

@ -21,4 +21,3 @@ pub mod float {
fn from_int2(n: int) -> float { return n as float; }
}
}

View file

@ -14,4 +14,3 @@ pub struct S {
x: int,
y: int
}

View file

@ -17,5 +17,3 @@ pub struct A { x: int }
impl Foo for A { fn f(&self) -> int { 10 } }
impl Bar for A { fn g(&self) -> int { 20 } }
impl Baz for A { fn h(&self) -> int { 30 } }

View file

@ -38,4 +38,3 @@ impl Eq for MyInt {
impl MyNum for MyInt;
fn mi(v: int) -> MyInt { MyInt { val: v } }

View file

@ -7,4 +7,3 @@ pub struct Foo {
impl Foo {
fn new() -> Foo { Foo { x: 1 } }
}

View file

@ -104,7 +104,7 @@ fn main() {
~[~"", ~"10000", ~"4"]
} else {
copy args
};
};
debug!("%?", args);
run(args);

View file

@ -101,7 +101,7 @@ fn main() {
~[~"", ~"10000", ~"4"]
} else {
copy args
};
};
debug!("%?", args);
run(args);

View file

@ -72,7 +72,7 @@ fn main() {
~[~"", ~"10", ~"100"]
} else {
copy args
};
};
let num_tasks = uint::from_str(args[1]).get();
let msg_per_task = uint::from_str(args[2]).get();

View file

@ -65,7 +65,7 @@ fn main() {
~[~"", ~"100", ~"1000"]
} else {
copy args
};
};
let num_tasks = uint::from_str(args[1]).get();
let msg_per_task = uint::from_str(args[2]).get();

View file

@ -73,7 +73,7 @@ fn main() {
~[~"", ~"10", ~"100"]
} else {
copy args
};
};
let num_tasks = uint::from_str(args[1]).get();
let msg_per_task = uint::from_str(args[2]).get();

View file

@ -11,7 +11,7 @@
// Compare bounded and unbounded protocol performance.
// xfail-pretty
extern mod std;
use core::cell::Cell;

View file

@ -218,4 +218,3 @@ fn main() {
rendezvous(nn,
~[Blue, Red, Yellow, Red, Yellow, Blue, Red, Yellow, Red, Blue]);
}

View file

@ -92,4 +92,3 @@ fn main() {
let n: i32 = FromStr::from_str(os::args()[1]).get();
println(fmt!("Pfannkuchen(%d) = %d", n as int, fannkuch_redux(n) as int));
}

View file

@ -201,4 +201,3 @@ fn main() {
fputc('\n' as c_int, stdout);
}
}

View file

@ -222,4 +222,3 @@ fn main() {
io::println(from_child[ii].recv());
}
}

View file

@ -252,7 +252,7 @@ fn generate_frequencies(frequencies: &mut Table,
mut input: &[u8],
frame: i32) {
let mut code = Code(0);
// Pull first frame.
for (frame as uint).times {
code = code.push_char(input[0]);
@ -313,4 +313,3 @@ fn main() {
print_occurrences(frequencies, occurrence);
}
}

View file

@ -57,4 +57,3 @@ fn main() {
}
}
}

View file

@ -175,4 +175,3 @@ fn main() {
let n: u32 = FromStr::from_str(os::args()[1]).get();
pidigits(n);
}

View file

@ -152,4 +152,3 @@ fn main() {
fwrite(transmute(out.unsafe_ref(0)), 1, pos as size_t, stdout);
}
}

View file

@ -274,4 +274,3 @@ fn main() {
sudoku.solve();
sudoku.write(io::stdout());
}

View file

@ -14,4 +14,3 @@ enum a { A, }
enum b { B, }
fn main() { let x: a = A; match x { B => { } } }

View file

@ -14,4 +14,3 @@ enum a { A(int), }
enum b { B(int), }
fn main() { let x: a = A(0); match x { B(y) => { } } }

View file

@ -28,4 +28,3 @@ fn main() {
let x = Foo { x: 3 };
x.printme(); //~ ERROR illegal borrow
}

View file

@ -21,4 +21,3 @@ fn main() {
hsl(h, s, l) => { debug!("hsl"); }
}
}

View file

@ -45,4 +45,3 @@ fn c() {
fn main() {
}

View file

@ -42,4 +42,3 @@ fn d() {
fn main() {
}

View file

@ -38,4 +38,3 @@ fn c(x: &const Foo) {
fn main() {
}

View file

@ -30,6 +30,6 @@ use core::either::{Either, Left, Right};
let y: &Either<int, float> = &x;
let z: &mut Either<int, float> = &mut x; //~ ERROR conflicts with prior loan
*z = *y;
}
}
fn main() {}

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
struct Point {
struct Point {
x: int,
y: int,
}
@ -56,4 +56,3 @@ fn c() {
fn main() {
}

View file

@ -63,4 +63,3 @@ fn c() {
fn main() {
}

View file

@ -14,4 +14,3 @@ fn main() {
v[1] = 4;
}
}

View file

@ -13,9 +13,8 @@ fn main() {
match Some(~"Hello") { //~ ERROR illegal borrow
Some(ref m) => {
msg = m;
},
},
None => { fail!() }
}
}
io::println(*msg);
}

View file

@ -52,4 +52,3 @@ fn box_imm_recs(v: @Outer) {
fn main() {
}

View file

@ -9,4 +9,3 @@ fn a() {
}
fn main() {}

View file

@ -18,4 +18,3 @@ fn b() {
}
fn main() {}

View file

@ -3,4 +3,3 @@ fn main() {
let _x = &mut *b; //~ NOTE prior loan as mutable granted here
let _y = &mut *b; //~ ERROR loan of dereference of mutable ~ pointer as mutable conflicts with prior loan
}

View file

@ -5,4 +5,3 @@ fn main() {
let mut d = /*move*/ a; //~ ERROR moving out of mutable local variable prohibited due to outstanding loan
*d += 1;
}

View file

@ -4,4 +4,3 @@ fn main() {
let mut y = /*move*/ b; //~ ERROR moving out of mutable local variable prohibited
*y += 1;
}

View file

@ -7,5 +7,3 @@ fn foo(x: &mut int) {
fn main() {
}

View file

@ -20,4 +20,3 @@ fn main() {
&Bar(ref identifier) => io::println(*identifier)
};
}

View file

@ -15,4 +15,3 @@
fn f(caller: str) { debug!(caller); }
fn main() { return f("main"); debug!("Paul is dead"); }

View file

@ -1,3 +1,2 @@
// error-pattern: unresolved name: `this_does_nothing_what_the`.
fn main() { debug!("doing"); this_does_nothing_what_the; debug!("boing"); }

View file

@ -19,5 +19,3 @@ impl Drop for Foo { //~ ERROR the Drop trait may only be implemented
fn main() {
}

View file

@ -22,4 +22,3 @@ fn main() {
let x = Foo { x: 3 };
x.finalize(); //~ ERROR explicit call to destructor
}

View file

@ -31,5 +31,3 @@ impl Bar for Foo {
fn main() {
let x = Foo { x: 3 };
}

View file

@ -12,4 +12,3 @@ fn main() {
let x: f32 = 1; //~ ERROR mismatched types
let y: f32 = 1f; //~ ERROR mismatched types
}

View file

@ -21,4 +21,3 @@ fn main() {
test::free();
//~^ ERROR access to unsafe function requires unsafe function or block
}

View file

@ -21,5 +21,3 @@ fn main() {
let x = test::free;
//~^ ERROR access to unsafe function requires unsafe function or block
}

View file

@ -30,4 +30,3 @@ fn main() {
fooT(T {f: x});
fooT(T {f: bar});
}

View file

@ -15,5 +15,4 @@ fn foo<T, U>(x: T, y: U) {
}
fn main() {
}

View file

@ -17,4 +17,3 @@ fn main() {
//
// the first error is, um, non-ideal.
}

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
enum bottom { }
enum bottom { }
fn main() {
let x = ptr::to_unsafe_ptr(&()) as *bottom;

View file

@ -12,11 +12,11 @@
struct HasNested {
mut nest: ~[~[int]],
}
impl HasNested {
fn method_push_local(&self) {
self.nest[0].push(0);
}
}
fn main() {}

View file

@ -11,12 +11,12 @@
struct Foo {
baz: uint
}
impl Foo {
fn bar() {
Foo { baz: 0 }.bar();
}
fn bar() { //~ ERROR duplicate definition of value bar
}
}

View file

@ -37,4 +37,3 @@ mod m1 {
fn main() {
foo(); //~ ERROR: unresolved name: `foo`
}

View file

@ -14,4 +14,3 @@ static A: (int,int) = (4,2);
fn main() {
match 42 { A => () } //~ ERROR mismatched types: expected `<VI0>` but found `(int,int)` (expected integral variable but found tuple)
}

View file

@ -9,4 +9,3 @@ impl Drop for Foo { //~ ERROR cannot implement a destructor on a struct that is
}
fn main() { }

View file

@ -5,4 +5,3 @@ trait Foo { //~ ERROR default methods are experimental
}
fn main() {}

View file

@ -32,4 +32,3 @@ fn qux() {
i += 1;
}
}

View file

@ -11,6 +11,6 @@
fn foo(x: int) { debug!(x); }
fn main() {
let x: int; if 1 > 2 { x = 10; }
foo(x); //~ ERROR use of possibly uninitialized variable: `x`
let x: int; if 1 > 2 { x = 10; }
foo(x); //~ ERROR use of possibly uninitialized variable: `x`
}

View file

@ -9,8 +9,8 @@
// except according to those terms.
fn f() -> int {
let x: int;
return x; //~ ERROR use of possibly uninitialized variable: `x`
let x: int;
return x; //~ ERROR use of possibly uninitialized variable: `x`
}
fn main() { f(); }

View file

@ -13,4 +13,3 @@ fn main() {
fn baz(_x: int) { }
baz(bar); //~ ERROR use of possibly uninitialized variable: `bar`
}

View file

@ -11,6 +11,6 @@
fn foo(x: int) { debug!(x); }
fn main() {
let x: int;
foo(x); //~ ERROR use of possibly uninitialized variable: `x`
let x: int;
foo(x); //~ ERROR use of possibly uninitialized variable: `x`
}

View file

@ -13,5 +13,3 @@
fn main() {
globnar::brotz!();
}

View file

@ -24,4 +24,3 @@ impl MyEq for A; //~ ERROR missing method
fn main() {
}

View file

@ -13,4 +13,3 @@
fn f() -> int { }
fn main() { f(); }

View file

@ -24,4 +24,3 @@ fn main() {
}
}
}

View file

@ -5,4 +5,3 @@ fn main() {
}
io::println(x); //~ ERROR use of moved value
}

View file

@ -29,4 +29,3 @@ fn consume(v: ~List) -> int {
}
fn main() {}

View file

@ -16,7 +16,7 @@ use std::arc;
fn main() {
let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
let arc_v = arc::ARC(v);
do task::spawn() {
let v = *arc::get(&arc_v);
assert!(v[3] == 4);

View file

@ -20,4 +20,3 @@ fn main() {
let x: int = noexporttypelib::foo();
//~^ ERROR expected `int` but found `core::option::Option<int>`
}

View file

@ -20,4 +20,3 @@ fn main() {
b => { fail!(~"goodbye"); }
}
}

View file

@ -14,4 +14,3 @@ fn main() {
let h: &fn() = ||();
let i: &once fn() = h; // ok
}

View file

@ -22,4 +22,3 @@ fn main() {
let s = a::Foo { x: 1 };
s.foo(); //~ ERROR method `foo` is private
}

View file

@ -15,4 +15,3 @@ mod a {
fn main() {
a::f(); //~ ERROR unresolved name
}

View file

@ -12,4 +12,3 @@ fn main() {
let x = a::Foo;
x.f(); //~ ERROR method `f` is private
}

View file

@ -17,4 +17,3 @@ mod a {
fn main() {
let s = a::Foo { x: 1 }; //~ ERROR field `x` is private
}

View file

@ -25,4 +25,3 @@ fn main() {
Foo { x: _ } => {} //~ ERROR field `x` is private
}
}

View file

@ -65,4 +65,3 @@ fn main() {
fn check_pp<T>(expr: T, f: &fn(pprust::ps, T), expect: str) {
fail!();
}

View file

@ -60,4 +60,3 @@ fn main() {
fn check_pp<T>(expr: T, f: &fn(pprust::ps, T), expect: str) {
fail!();
}

View file

@ -12,4 +12,3 @@ fn main() {
let f = |3: int| io::println("hello"); //~ ERROR refutable pattern
f(4);
}

Some files were not shown because too many files have changed in this diff Show more