Strip all leading/trailing newlines

This commit is contained in:
Tamir Duberstein 2015-03-14 16:29:28 -07:00
parent 95018eec69
commit d51047ded0
383 changed files with 5 additions and 413 deletions

View file

@ -11,4 +11,3 @@
#![crate_name = "a"]
pub fn foo<T>() { println!("hello!"); }

View file

@ -11,4 +11,3 @@
pub trait TheTrait<T> : ::std::marker::PhantomFn<T> {
fn the_fn(&self);
}

View file

@ -13,4 +13,3 @@ pub struct Heap;
pub struct FakeHeap;
pub struct FakeVec<T, A = FakeHeap> { pub f: Option<(T,A)> }

View file

@ -20,4 +20,3 @@ fn no_op() { }
pub const D : C<fn()> = C {
k: no_op as fn()
};

View file

@ -14,4 +14,3 @@
extern crate "issue-12133-rlib" as a;
extern crate "issue-12133-dylib" as b;

View file

@ -14,4 +14,3 @@
#[macro_use] #[no_link] extern crate "issue-13560-1" as t1;
#[macro_use] extern crate "issue-13560-2" as t2;

View file

@ -11,4 +11,3 @@
extern {
fn bar();
}

View file

@ -12,4 +12,3 @@
use std::collections::HashMap;
pub type map = Box<HashMap<uint, uint>>;

View file

@ -27,4 +27,3 @@ mod private {
}
pub static A: S = S { p: private::THREE };

View file

@ -13,4 +13,3 @@ use std::marker::MarkerTrait;
pub trait Foo : MarkerTrait {
fn bar();
}

View file

@ -13,4 +13,3 @@ extern crate libc;
extern "C" {
pub fn rand() -> libc::c_int;
}

View file

@ -24,4 +24,3 @@ fn foo<T>(t: &T) {
let b = B;
bar(unsafe { mem::transmute(&b as &A) }, t)
}

View file

@ -17,4 +17,3 @@ pub trait X {
}
fn dummy(&self) { }
}

View file

@ -21,4 +21,3 @@ pub fn foo<T>() -> &'static int {
pub fn bar() -> &'static int {
foo::<int>()
}

View file

@ -16,4 +16,3 @@
#![crate_type="lib"]
pub fn f<T:Copy>() {}

View file

@ -32,5 +32,3 @@ extern fn eh_personality() {}
pub trait Copy : PhantomFn<Self> {
// Empty.
}

View file

@ -18,4 +18,3 @@ impl Foo {
pub fn foo() {}
pub fn bar(&self) {}
}

View file

@ -32,4 +32,3 @@ pub fn registrar(_: &mut Registry) {
thread_local!(static FOO: RefCell<Option<Box<Any+Send>>> = RefCell::new(None));
FOO.with(|s| *s.borrow_mut() = Some(box Foo { foo: 10 } as Box<Any+Send>));
}

View file

@ -11,4 +11,3 @@
enum Bar {
Baz { a: int }
}

View file

@ -21,4 +21,3 @@ pub enum Bar<T:Trait> {
BBar(T),
CBar(uint),
}

View file

@ -34,4 +34,3 @@ pub fn foo() {
mod std {
pub use core::{option, fmt};
}

View file

@ -27,4 +27,3 @@ impl<T> Equal for T where T: Eq {
pub fn equal<T>(x: &T, y: &T) -> bool where T: Eq {
x == y
}

View file

@ -14,4 +14,3 @@ pub struct S {
}
pub type S2 = S;

View file

@ -36,4 +36,3 @@ pub enum EnumWithVariants {
EnumVariant,
EnumVariantArg(int)
}

View file

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

View file

@ -18,4 +18,3 @@ trait Trait : ::std::marker::MarkerTrait {
impl Trait for isize {} //~ ERROR missing: `Type`
fn main() {}

View file

@ -11,4 +11,3 @@
extern crate "#a" as bar; //~ ERROR: invalid character `#` in crate name: `#a`
fn main() {}

View file

@ -152,4 +152,3 @@ fn main() {
borrow_after_mut_borrow_nested();
mut_borrow_after_borrow_nested();
}

View file

@ -22,4 +22,3 @@ pub fn main() {
};
r()
}

View file

@ -124,4 +124,3 @@ fn main() {
borrow_after_field_assign_after_uninit();
move_after_field_assign_after_uninit();
}

View file

@ -32,4 +32,3 @@ fn main() {
for &a in x.iter() { //~ ERROR cannot move out
}
}

View file

@ -18,4 +18,3 @@ fn main() {
vector[1] = 5; //~ ERROR cannot borrow
}
}

View file

@ -62,4 +62,3 @@ fn main() {
borrow_in_field_from_var();
borrow_in_field_from_field();
}

View file

@ -17,4 +17,3 @@ fn f() {
fn main() {
f();
}

View file

@ -63,4 +63,3 @@ fn main() {
same_var_after_borrow();
same_var_after_move();
}

View file

@ -30,4 +30,3 @@ fn foo() -> isize {
fn main() {
foo();
}

View file

@ -37,4 +37,3 @@ fn imm_owned_receiver(mut x: Box<Foo>) {
}
fn main() {}

View file

@ -35,4 +35,3 @@ fn mut_owned_receiver(mut x: Box<Foo>) {
}
fn main() {}

View file

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

View file

@ -44,4 +44,3 @@ fn main() {
}
fn read(_: usize) { }

View file

@ -31,4 +31,3 @@ fn main() {
stuff();
println!("Hello, world!")
}

View file

@ -26,4 +26,3 @@ fn c<F:FnOnce(isize, isize) -> isize>(f: F) {
}
fn main() {}

View file

@ -94,4 +94,3 @@ fn main() {
field_deref_after_var_borrow();
field_deref_after_field_borrow();
}

View file

@ -20,4 +20,3 @@ fn main() {
let f = |s: &str| println!("{}{}", s, string);
call_bare(f) //~ ERROR mismatched types
}

View file

@ -24,4 +24,3 @@ pub fn main() {
//~| expected &-ptr
//~| found box
}

View file

@ -16,4 +16,3 @@ fn main() {
println!("{}", *s);
}
}

View file

@ -13,4 +13,3 @@ fn f(a: isize, a: isize) {}
fn main() {
}

View file

@ -36,4 +36,3 @@ impl<T,T> Qux<T,T> for Option<T> {}
fn main() {
}

View file

@ -26,4 +26,3 @@ impl<'a,'b> Foo<'a,'b> {
}
fn main() {}

View file

@ -28,4 +28,3 @@ extern "rust-intrinsic" {
}
fn main() {}

View file

@ -16,4 +16,3 @@ fn main() {
[ 1, 2, xs.. ] => {} // OK without feature gate
}
}

View file

@ -20,4 +20,3 @@ fn main() {
let x = box (HEAP) 'c'; //~ ERROR box expression syntax is experimental
println!("x: {}", x);
}

View file

@ -10,4 +10,3 @@
#[start]
fn foo() {} //~ ERROR: a #[start] function is an experimental feature

View file

@ -15,4 +15,3 @@ fn foo<T>() {} //~ ERROR generic functions must be mangled
#[no_mangle]
extern fn foo<T>() {} //~ ERROR generic functions must be mangled

View file

@ -23,4 +23,3 @@ fn main() {
bar::<isize>(i); // i should not be re-coerced back to an isize
//~^ ERROR: mismatched types
}

View file

@ -15,4 +15,3 @@ macro_rules! recursive {
fn main() {
recursive!()
}

View file

@ -27,5 +27,3 @@ unsafe fn g() -> isize {
}
fn main() {}

View file

@ -29,4 +29,3 @@ pub fn main() {
// least throw a conventional error.
assert!({one! two});
}

View file

@ -30,4 +30,3 @@ fn main() {
test(&*ptr);
//~^ ERROR: cannot borrow `*ptr` as immutable
}

View file

@ -18,4 +18,3 @@ impl private_trait_xc::Foo for Bar {}
//~^ ERROR: trait `Foo` is private
fn main() {}

View file

@ -18,4 +18,3 @@ fn main() {
None => panic!()
}
}

View file

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

View file

@ -20,4 +20,3 @@ mod test {
}
fn main() {}

View file

@ -16,4 +16,3 @@
static VEC: [u32; 256] = vec!();
fn main() {}

View file

@ -11,4 +11,3 @@
fn fn1(0: Box) {} //~ ERROR: wrong number of type arguments: expected 1, found 0
fn main() {}

View file

@ -19,4 +19,3 @@ fn main() {
_ => false
};
}

View file

@ -18,4 +18,3 @@ fn main() {
//~| expected &-ptr
//~| found struct `core::raw::Slice`
}

View file

@ -16,4 +16,3 @@ fn main() {
unsafe { foo::bar(); }
//~^ ERROR: function `bar` is private
}

View file

@ -17,4 +17,3 @@ const C2: &'static mut usize = &mut S;
//~^^ ERROR: references in constants may only refer to immutable values
fn main() {}

View file

@ -15,4 +15,3 @@ struct bar { x: bar }
fn main() {
}

View file

@ -28,4 +28,3 @@ fn main() {
};
s.bar();
}

View file

@ -15,4 +15,3 @@ extern crate issue_5844_aux;
fn main () {
issue_5844_aux::rand(); //~ ERROR: requires unsafe
}

View file

@ -17,4 +17,3 @@ impl Fo { //~ ERROR use of undeclared type name `Fo`
}
fn main() {}

View file

@ -15,4 +15,3 @@ impl B { //~ ERROR use of undeclared type name `B`
fn main() {
}

View file

@ -80,4 +80,3 @@ fn test<'a,T,U:Copy>(_: &'a isize) {
pub fn main() {
}

View file

@ -20,4 +20,3 @@ fn main() {
bar(move|| foo(x));
//~^ ERROR `core::marker::Send` is not implemented
}

View file

@ -37,4 +37,3 @@ fn i(_x: isize) -> &isize { //~ ERROR missing lifetime specifier
}
fn main() {}

View file

@ -18,4 +18,3 @@ extern {
fn main() {
println!("{:?}", foo);
}

View file

@ -60,4 +60,3 @@ fn main() {
let n = 1_isize << std::isize::BITS; //~ ERROR: bitshift exceeds the type's number of bits
let n = 1_usize << std::usize::BITS; //~ ERROR: bitshift exceeds the type's number of bits
}

View file

@ -22,4 +22,3 @@ use lint_stability::*;
fn main() {
macro_test_arg_nested!(deprecated_text);
}

View file

@ -40,4 +40,3 @@ fn main() {
let _ = Something { X: 0 };
}

View file

@ -29,4 +29,3 @@ fn main() {
//~^^ ERROR unresolved name `a::bar`
b::bar();
}

View file

@ -28,4 +28,3 @@ fn main() {
a::bar(); //~ ERROR unresolved name `a::bar`
b::bar();
}

View file

@ -13,5 +13,3 @@
fn main() {
}

View file

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

View file

@ -19,4 +19,3 @@ trait me2 {
}
impl me2 for usize { fn me(&self) -> usize { *self } }
fn main() { 1_usize.me(); } //~ ERROR E0034

View file

@ -40,4 +40,3 @@ fn main() {
.filter_map; //~ ERROR attempted to take value of method `filter_map` on type
//~^ HELP maybe a `()` to call it is missing
}

View file

@ -16,4 +16,3 @@ fn main() {
let mut x: Box<_> = box 3;
f(x) //~ ERROR mismatched types
}

View file

@ -26,4 +26,3 @@ fn use_bar(t: Box<Bar>) {
}
fn main() { }

View file

@ -30,4 +30,3 @@ impl Copy for IWantToCopyThisToo {}
//~^ ERROR the trait `Copy` may not be implemented for this type
fn main() {}

View file

@ -31,4 +31,3 @@ fn main() {
};
drop(s(3)) //~ ERROR cannot use call notation
}

View file

@ -23,4 +23,3 @@ fn main() {
_ => ()
}
}

View file

@ -14,4 +14,3 @@ fn main() {
Some(_) => {}
}
}

View file

@ -13,4 +13,3 @@ fn call_rec<F>(mut f: F) -> usize where F: FnMut(usize) -> usize {
}
fn main() {}

View file

@ -26,4 +26,3 @@ fn borrowed_receiver_same_lifetime<'a>(x: &'a Foo) -> &'a () {
#[rustc_error]
fn main() {} //~ ERROR compilation successful

View file

@ -21,4 +21,3 @@ fn borrowed_receiver_different_lifetimes<'a,'b>(x: &'a Foo) -> &'b () {
}
fn main() {}

View file

@ -26,4 +26,3 @@ fn borrowed_receiver_related_lifetimes<'a,'b>(x: &'a (Foo+'b)) -> &'a () {
#[rustc_error]
fn main() {} //~ ERROR compilation successful

View file

@ -23,4 +23,3 @@ fn borrowed_receiver_related_lifetimes2<'a,'b>(x: &'a (Foo+'b)) -> &'b () {
}
fn main() {}

View file

@ -22,4 +22,3 @@ fn owned_receiver(x: Box<Foo>) -> &'static () {
}
fn main() {}

View file

@ -20,4 +20,3 @@ fn main() {
f = move |a: isize, b: isize| { a + b + *c_ref };
}
}

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