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

@ -25,4 +25,3 @@ CFG_LDPATH_x86_64-unknown-linux-gnu :=
CFG_RUN_x86_64-unknown-linux-gnu=$(2) CFG_RUN_x86_64-unknown-linux-gnu=$(2)
CFG_RUN_TARG_x86_64-unknown-linux-gnu=$(call CFG_RUN_x86_64-unknown-linux-gnu,,$(2)) CFG_RUN_TARG_x86_64-unknown-linux-gnu=$(call CFG_RUN_x86_64-unknown-linux-gnu,,$(2))
CFG_GNU_TRIPLE_x86_64-unknown-linux-gnu := x86_64-unknown-linux-gnu CFG_GNU_TRIPLE_x86_64-unknown-linux-gnu := x86_64-unknown-linux-gnu

View File

@ -221,5 +221,3 @@ prepare-maybe-clean-$(1):
endef endef

View File

@ -17,4 +17,3 @@ else
endif endif
S := $(CFG_SRC_DIR) S := $(CFG_SRC_DIR)

View File

@ -63,4 +63,3 @@ function populate_rust_search() {
populate_site_search(); populate_site_search();
populate_rust_search(); populate_rust_search();
</script> </script>

View File

@ -521,4 +521,3 @@ This sets a few different options, with a logo, favicon, and a root URL.
- `--html-before-content FILE`: includes the contents of FILE directly after - `--html-before-content FILE`: includes the contents of FILE directly after
`<body>`, before the rendered content (including the search bar). `<body>`, before the rendered content (including the search bar).
- `--html-after-content FILE`: includes the contents of FILE after all the rendered content. - `--html-after-content FILE`: includes the contents of FILE after all the rendered content.

View File

@ -543,4 +543,3 @@ The `extern` makes this function adhere to the C calling convention, as
discussed above in "[Foreign Calling discussed above in "[Foreign Calling
Conventions](ffi.html#foreign-calling-conventions)". The `no_mangle` Conventions](ffi.html#foreign-calling-conventions)". The `no_mangle`
attribute turns off Rust's name mangling, so that it is easier to link to. attribute turns off Rust's name mangling, so that it is easier to link to.

View File

@ -242,4 +242,3 @@ print
for line in lines: for line in lines:
print "* " + line print "* " + line
print print

View File

@ -340,4 +340,4 @@ def extract_length_and_data_ptr_from_std_vec(vec_val):
unique_ptr_val = vec_ptr_val[first_field(vec_ptr_val)] unique_ptr_val = vec_ptr_val[first_field(vec_ptr_val)]
data_ptr = unique_ptr_val[first_field(unique_ptr_val)] data_ptr = unique_ptr_val[first_field(unique_ptr_val)]
assert data_ptr.type.code == gdb.TYPE_CODE_PTR assert data_ptr.type.code == gdb.TYPE_CODE_PTR
return (length, data_ptr) return (length, data_ptr)

View File

@ -70,4 +70,3 @@ consistent with the licensing of the Independent Modules.
The availability of this Exception does not imply any general The availability of this Exception does not imply any general
presumption that third-party software is unaffected by the copyleft presumption that third-party software is unaffected by the copyleft
requirements of the license of GCC. requirements of the license of GCC.

View File

@ -50,4 +50,3 @@ else
printf "failed. $passed passed; $failed failed; $skipped skipped\n\n" printf "failed. $passed passed; $failed failed; $skipped skipped\n\n"
exit 1 exit 1
fi fi

View File

@ -15153,4 +15153,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi fi

View File

@ -8633,4 +8633,3 @@ build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
# sh-indentation:2 # sh-indentation:2
# End: # End:
# vi:sw=2 # vi:sw=2

View File

@ -164,4 +164,3 @@ default_impl! { i64, 0 }
default_impl! { f32, 0.0f32 } default_impl! { f32, 0.0f32 }
default_impl! { f64, 0.0f64 } default_impl! { f64, 0.0f64 }

View File

@ -107,4 +107,3 @@ impl<'a, A, F> Drop for Finallyalizer<'a, A, F> where F: FnMut(&mut A) {
(self.dtor)(self.mutate); (self.dtor)(self.mutate);
} }
} }

View File

@ -18,4 +18,3 @@ macro_rules! assert_approx_eq {
"{} is not approximately equal to {}", *a, *b); "{} is not approximately equal to {}", *a, *b);
}) })
} }

View File

@ -28,4 +28,3 @@ fn test_typeid_unsized_types() {
assert_eq!(TypeId::of::<Y>(), TypeId::of::<Y>()); assert_eq!(TypeId::of::<Y>(), TypeId::of::<Y>());
assert!(TypeId::of::<X>() != TypeId::of::<Y>()); assert!(TypeId::of::<X>() != TypeId::of::<Y>());
} }

View File

@ -197,4 +197,3 @@ macro_rules! log_enabled {
::log::mod_enabled(lvl, module_path!()) ::log::mod_enabled(lvl, module_path!())
}) })
} }

View File

@ -132,4 +132,3 @@ register_diagnostics! {
} }
__build_diagnostic_array! { DIAGNOSTICS } __build_diagnostic_array! { DIAGNOSTICS }

View File

@ -963,4 +963,3 @@ fn parse_region_bounds_<'a, 'tcx, F>(st: &mut PState<'a, 'tcx>, conv: &mut F)
} }
} }
} }

View File

@ -124,4 +124,3 @@ impl<'a, 'ast> dot::GraphWalk<'a, Node<'a>, Edge<'a>> for LabelledCFG<'a, 'ast>
fn source(&'a self, edge: &Edge<'a>) -> Node<'a> { self.cfg.source(edge) } fn source(&'a self, edge: &Edge<'a>) -> Node<'a> { self.cfg.source(edge) }
fn target(&'a self, edge: &Edge<'a>) -> Node<'a> { self.cfg.target(edge) } fn target(&'a self, edge: &Edge<'a>) -> Node<'a> { self.cfg.target(edge) }
} }

View File

@ -96,4 +96,3 @@ pub fn simplify_type(tcx: &ty::ctxt,
ty::ty_infer(_) | ty::ty_err => None, ty::ty_infer(_) | ty::ty_err => None,
} }
} }

View File

@ -112,4 +112,3 @@ impl<'a, 'tcx> ty_fold::TypeFolder<'tcx> for FullTypeResolver<'a, 'tcx> {
} }
} }
} }

View File

@ -153,4 +153,3 @@ impl<'f, 'tcx> Combine<'tcx> for Sub<'f, 'tcx> {
self.higher_ranked_sub(a, b) self.higher_ranked_sub(a, b)
} }
} }

View File

@ -1635,4 +1635,3 @@ impl<'tcx> UserString<'tcx> for Upvar {
format!("captured outer variable in an `{}` closure", kind) format!("captured outer variable in an `{}` closure", kind)
} }
} }

View File

@ -568,5 +568,3 @@ impl<'tcx> fmt::Debug for super::MismatchedProjectionTypes<'tcx> {
write!(f, "MismatchedProjectionTypes(..)") write!(f, "MismatchedProjectionTypes(..)")
} }
} }

View File

@ -324,4 +324,3 @@ impl<'a> ArchiveBuilder<'a> {
Ok(()) Ok(())
} }
} }

View File

@ -32,4 +32,3 @@ pub fn opts() -> TargetOptions {
.. Default::default() .. Default::default()
} }
} }

View File

@ -27,4 +27,3 @@ pub fn opts() -> TargetOptions {
.. Default::default() .. Default::default()
} }
} }

View File

@ -30,4 +30,3 @@ pub fn opts() -> TargetOptions {
.. Default::default() .. Default::default()
} }
} }

View File

@ -213,4 +213,3 @@ fn read_from_le_bytes<T: Int>(bytes: &[u8], position_in_bytes: uint) -> T {
Int::from_le(data) Int::from_le(data)
} }

View File

@ -259,4 +259,3 @@ pub fn trans_closure_expr<'a, 'tcx>(dest: Dest<'a, 'tcx>,
Some(bcx) Some(bcx)
} }

View File

@ -34,5 +34,3 @@ impl LlvmRepr for ValueRef {
ccx.tn().val_to_string(*self) ccx.tn().val_to_string(*self)
} }
} }

View File

@ -248,5 +248,3 @@ fn self_type_matches_expected_vid<'a,'tcx>(
_ => None, _ => None,
} }
} }

View File

@ -556,5 +556,3 @@ impl<'a,'tcx> euv::Delegate<'tcx> for AdjustBorrowKind<'a,'tcx> {
self.adjust_upvar_borrow_kind_for_mut(assignee_cmt); self.adjust_upvar_borrow_kind_for_mut(assignee_cmt);
} }
} }

View File

@ -302,4 +302,3 @@ pub fn select_new_fcx_obligations(fcx: &FnCtxt) {
Err(errors) => { report_fulfillment_errors(fcx.infcx(), &errors); } Err(errors) => { report_fulfillment_errors(fcx.infcx(), &errors); }
} }
} }

View File

@ -181,4 +181,3 @@ register_diagnostics! {
} }
__build_diagnostic_array! { DIAGNOSTICS } __build_diagnostic_array! { DIAGNOSTICS }

View File

@ -1350,4 +1350,3 @@ fn glb(v1: ty::Variance, v2: ty::Variance) -> ty::Variance {
(x, ty::Bivariant) | (ty::Bivariant, x) => x, (x, ty::Bivariant) | (ty::Bivariant, x) => x,
} }
} }

View File

@ -111,4 +111,3 @@ impl fmt::Display for ItemType {
self.to_static_str().fmt(f) self.to_static_str().fmt(f)
} }
} }

View File

@ -25,4 +25,3 @@
}); });
} }
}()); }());

View File

@ -12,4 +12,3 @@
#![doc(primitive = "bool")] #![doc(primitive = "bool")]
#![stable(feature = "rust1", since = "1.0.0")] #![stable(feature = "rust1", since = "1.0.0")]

View File

@ -94,4 +94,3 @@ namespace msvc_typeof_impl {
#endif #endif
#endif #endif

View File

@ -1,4 +1,3 @@
/* /*
---------------------------------------------------------------- ----------------------------------------------------------------
@ -284,4 +283,3 @@ typedef
(zznbytes), 0, 0 ) (zznbytes), 0, 0 )
#endif #endif

View File

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

View File

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

View File

@ -13,4 +13,3 @@ pub struct Heap;
pub struct FakeHeap; pub struct FakeHeap;
pub struct FakeVec<T, A = FakeHeap> { pub f: Option<(T,A)> } 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 { pub const D : C<fn()> = C {
k: no_op as fn() k: no_op as fn()
}; };

View File

@ -14,4 +14,3 @@
extern crate "issue-12133-rlib" as a; extern crate "issue-12133-rlib" as a;
extern crate "issue-12133-dylib" as b; 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] #[no_link] extern crate "issue-13560-1" as t1;
#[macro_use] extern crate "issue-13560-2" as t2; #[macro_use] extern crate "issue-13560-2" as t2;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -18,4 +18,3 @@ impl Foo {
pub fn foo() {} pub fn foo() {}
pub fn bar(&self) {} 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)); 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>)); FOO.with(|s| *s.borrow_mut() = Some(box Foo { foo: 10 } as Box<Any+Send>));
} }

View File

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

View File

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

View File

@ -34,4 +34,3 @@ pub fn foo() {
mod std { mod std {
pub use core::{option, fmt}; 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 { pub fn equal<T>(x: &T, y: &T) -> bool where T: Eq {
x == y x == y
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -124,4 +124,3 @@ fn main() {
borrow_after_field_assign_after_uninit(); borrow_after_field_assign_after_uninit();
move_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 for &a in x.iter() { //~ ERROR cannot move out
} }
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -16,4 +16,3 @@ fn main() {
[ 1, 2, xs.. ] => {} // OK without feature gate [ 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 let x = box (HEAP) 'c'; //~ ERROR box expression syntax is experimental
println!("x: {}", x); println!("x: {}", x);
} }

View File

@ -10,4 +10,3 @@
#[start] #[start]
fn foo() {} //~ ERROR: a #[start] function is an experimental feature 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] #[no_mangle]
extern fn foo<T>() {} //~ ERROR generic functions must be mangled 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 bar::<isize>(i); // i should not be re-coerced back to an isize
//~^ ERROR: mismatched types //~^ ERROR: mismatched types
} }

View File

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

View File

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

View File

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

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