Commit d51047de authored by Tamir Duberstein's avatar Tamir Duberstein

Strip all leading/trailing newlines

parent 95018eec
......@@ -25,4 +25,3 @@ CFG_LDPATH_x86_64-unknown-linux-gnu :=
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
......@@ -221,5 +221,3 @@ prepare-maybe-clean-$(1):
endef
......@@ -17,4 +17,3 @@ else
endif
S := $(CFG_SRC_DIR)
......@@ -63,4 +63,3 @@ function populate_rust_search() {
populate_site_search();
populate_rust_search();
</script>
......@@ -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
`<body>`, before the rendered content (including the search bar).
- `--html-after-content FILE`: includes the contents of FILE after all the rendered content.
......@@ -543,4 +543,3 @@ The `extern` makes this function adhere to the C calling convention, as
discussed above in "[Foreign Calling
Conventions](ffi.html#foreign-calling-conventions)". The `no_mangle`
attribute turns off Rust's name mangling, so that it is easier to link to.
......@@ -242,4 +242,3 @@ print
for line in lines:
print "* " + line
print
......@@ -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)]
data_ptr = unique_ptr_val[first_field(unique_ptr_val)]
assert data_ptr.type.code == gdb.TYPE_CODE_PTR
return (length, data_ptr)
\ No newline at end of file
return (length, data_ptr)
......@@ -70,4 +70,3 @@ consistent with the licensing of the Independent Modules.
The availability of this Exception does not imply any general
presumption that third-party software is unaffected by the copyleft
requirements of the license of GCC.
......@@ -50,4 +50,3 @@ else
printf "failed. $passed passed; $failed failed; $skipped skipped\n\n"
exit 1
fi
......@@ -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: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
......@@ -8633,4 +8633,3 @@ build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
# sh-indentation:2
# End:
# vi:sw=2
......@@ -164,4 +164,3 @@ default_impl! { i64, 0 }
default_impl! { f32, 0.0f32 }
default_impl! { f64, 0.0f64 }
......@@ -107,4 +107,3 @@ impl<'a, A, F> Drop for Finallyalizer<'a, A, F> where F: FnMut(&mut A) {
(self.dtor)(self.mutate);
}
}
......@@ -18,4 +18,3 @@ macro_rules! assert_approx_eq {
"{} is not approximately equal to {}", *a, *b);
})
}
......@@ -28,4 +28,3 @@ fn test_typeid_unsized_types() {
assert_eq!(TypeId::of::<Y>(), TypeId::of::<Y>());
assert!(TypeId::of::<X>() != TypeId::of::<Y>());
}
......@@ -197,4 +197,3 @@ macro_rules! log_enabled {
::log::mod_enabled(lvl, module_path!())
})
}
......@@ -132,4 +132,3 @@ register_diagnostics! {
}
__build_diagnostic_array! { DIAGNOSTICS }
......@@ -963,4 +963,3 @@ fn parse_region_bounds_<'a, 'tcx, F>(st: &mut PState<'a, 'tcx>, conv: &mut F)
}
}
}
......@@ -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 target(&'a self, edge: &Edge<'a>) -> Node<'a> { self.cfg.target(edge) }
}
......@@ -96,4 +96,3 @@ pub fn simplify_type(tcx: &ty::ctxt,
ty::ty_infer(_) | ty::ty_err => None,
}
}
......@@ -112,4 +112,3 @@ impl<'a, 'tcx> ty_fold::TypeFolder<'tcx> for FullTypeResolver<'a, 'tcx> {
}
}
}
......@@ -153,4 +153,3 @@ impl<'f, 'tcx> Combine<'tcx> for Sub<'f, 'tcx> {
self.higher_ranked_sub(a, b)
}
}
......@@ -1635,4 +1635,3 @@ impl<'tcx> UserString<'tcx> for Upvar {
format!("captured outer variable in an `{}` closure", kind)
}
}
......@@ -568,5 +568,3 @@ impl<'tcx> fmt::Debug for super::MismatchedProjectionTypes<'tcx> {
write!(f, "MismatchedProjectionTypes(..)")
}
}
......@@ -324,4 +324,3 @@ impl<'a> ArchiveBuilder<'a> {
Ok(())
}
}
......@@ -32,4 +32,3 @@ pub fn opts() -> TargetOptions {
.. Default::default()
}
}
......@@ -27,4 +27,3 @@ pub fn opts() -> TargetOptions {
.. Default::default()
}
}
......@@ -30,4 +30,3 @@ pub fn opts() -> TargetOptions {
.. Default::default()
}
}
......@@ -213,4 +213,3 @@ fn read_from_le_bytes<T: Int>(bytes: &[u8], position_in_bytes: uint) -> T {
Int::from_le(data)
}
......@@ -259,4 +259,3 @@ pub fn trans_closure_expr<'a, 'tcx>(dest: Dest<'a, 'tcx>,
Some(bcx)
}
......@@ -34,5 +34,3 @@ impl LlvmRepr for ValueRef {
ccx.tn().val_to_string(*self)
}
}
......@@ -248,5 +248,3 @@ fn self_type_matches_expected_vid<'a,'tcx>(
_ => None,
}
}
......@@ -556,5 +556,3 @@ impl<'a,'tcx> euv::Delegate<'tcx> for AdjustBorrowKind<'a,'tcx> {
self.adjust_upvar_borrow_kind_for_mut(assignee_cmt);
}
}
......@@ -302,4 +302,3 @@ pub fn select_new_fcx_obligations(fcx: &FnCtxt) {
Err(errors) => { report_fulfillment_errors(fcx.infcx(), &errors); }
}
}
......@@ -181,4 +181,3 @@ register_diagnostics! {
}
__build_diagnostic_array! { DIAGNOSTICS }
......@@ -1350,4 +1350,3 @@ fn glb(v1: ty::Variance, v2: ty::Variance) -> ty::Variance {
(x, ty::Bivariant) | (ty::Bivariant, x) => x,
}
}
......@@ -111,4 +111,3 @@ impl fmt::Display for ItemType {
self.to_static_str().fmt(f)
}
}
......@@ -12,4 +12,3 @@
#![doc(primitive = "bool")]
#![stable(feature = "rust1", since = "1.0.0")]
......@@ -94,4 +94,3 @@ namespace msvc_typeof_impl {
#endif
#endif
/*
----------------------------------------------------------------
......@@ -284,4 +283,3 @@ typedef
(zznbytes), 0, 0 )
#endif
......@@ -11,4 +11,3 @@
#![crate_name = "a"]
pub fn foo<T>() { println!("hello!"); }
......@@ -11,4 +11,3 @@
pub trait TheTrait<T> : ::std::marker::PhantomFn<T> {
fn the_fn(&self);
}
......@@ -13,4 +13,3 @@ pub struct Heap;
pub struct FakeHeap;
pub struct FakeVec<T, A = FakeHeap> { pub f: Option<(T,A)> }
......@@ -20,4 +20,3 @@ fn no_op() { }
pub const D : C<fn()> = C {
k: no_op as fn()
};
......@@ -14,4 +14,3 @@
extern crate "issue-12133-rlib" as a;
extern crate "issue-12133-dylib" as b;
......@@ -14,4 +14,3 @@
#[macro_use] #[no_link] extern crate "issue-13560-1" as t1;
#[macro_use] extern crate "issue-13560-2" as t2;
......@@ -11,4 +11,3 @@
extern {
fn bar();
}
......@@ -12,4 +12,3 @@
use std::collections::HashMap;
pub type map = Box<HashMap<uint, uint>>;
......@@ -27,4 +27,3 @@ mod private {
}
pub static A: S = S { p: private::THREE };
......@@ -13,4 +13,3 @@ use std::marker::MarkerTrait;
pub trait Foo : MarkerTrait {
fn bar();
}
......@@ -13,4 +13,3 @@ extern crate libc;
extern "C" {
pub fn rand() -> libc::c_int;
}
......@@ -24,4 +24,3 @@ fn foo<T>(t: &T) {
let b = B;
bar(unsafe { mem::transmute(&b as &A) }, t)
}
......@@ -17,4 +17,3 @@ pub trait X {
}
fn dummy(&self) { }
}
......@@ -21,4 +21,3 @@ pub fn foo<T>() -> &'static int {
pub fn bar() -> &'static int {
foo::<int>()
}
......@@ -16,4 +16,3 @@
#![crate_type="lib"]
pub fn f<T:Copy>() {}
......@@ -32,5 +32,3 @@ extern fn eh_personality() {}
pub trait Copy : PhantomFn<Self> {
// Empty.
}
......@@ -18,4 +18,3 @@ impl Foo {
pub fn foo() {}
pub fn bar(&self) {}
}
......@@ -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>));
}
......@@ -11,4 +11,3 @@
enum Bar {
Baz { a: int }
}
......@@ -21,4 +21,3 @@ pub enum Bar<T:Trait> {
BBar(T),
CBar(uint),
}
......@@ -34,4 +34,3 @@ pub fn foo() {
mod std {
pub use core::{option, fmt};
}
......@@ -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
}
......@@ -14,4 +14,3 @@ pub struct S {
}
pub type S2 = S;
......@@ -36,4 +36,3 @@ pub enum EnumWithVariants {
EnumVariant,
EnumVariantArg(int)
}
......@@ -57,4 +57,3 @@ pub trait ToOwned {
fn main() {}
......@@ -18,4 +18,3 @@ trait Trait : ::std::marker::MarkerTrait {
impl Trait for isize {} //~ ERROR missing: `Type`
fn main() {}
......@@ -11,4 +11,3 @@
extern crate "#a" as bar; //~ ERROR: invalid character `#` in crate name: `#a`
fn main() {}
......@@ -152,4 +152,3 @@ fn main() {
borrow_after_mut_borrow_nested();
mut_borrow_after_borrow_nested();
}
......@@ -124,4 +124,3 @@ fn main() {
borrow_after_field_assign_after_uninit();
move_after_field_assign_after_uninit();
}
......@@ -32,4 +32,3 @@ fn main() {
for &a in x.iter() { //~ ERROR cannot move out
}
}
......@@ -18,4 +18,3 @@ fn main() {
vector[1] = 5; //~ ERROR cannot borrow
}
}
......@@ -62,4 +62,3 @@ fn main() {
borrow_in_field_from_var();
borrow_in_field_from_field();
}
......@@ -17,4 +17,3 @@ fn f() {
fn main() {
f();
}
......@@ -63,4 +63,3 @@ fn main() {
same_var_after_borrow();
same_var_after_move();
}
......@@ -30,4 +30,3 @@ fn foo() -> isize {
fn main() {
foo();
}
......@@ -37,4 +37,3 @@ fn imm_owned_receiver(mut x: Box<Foo>) {
}
fn main() {}
......@@ -35,4 +35,3 @@ fn mut_owned_receiver(mut x: Box<Foo>) {
}
fn main() {}
......@@ -77,4 +77,3 @@ fn h() {
}
fn main() {}
......@@ -31,4 +31,3 @@ fn main() {
stuff();
println!("Hello, world!")
}
......@@ -26,4 +26,3 @@ fn c<F:FnOnce(isize, isize) -> isize>(f: F) {
}
fn main() {}
......@@ -94,4 +94,3 @@ fn main() {
field_deref_after_var_borrow();
field_deref_after_field_borrow();
}
......@@ -20,4 +20,3 @@ fn main() {
let f = |s: &str| println!("{}{}", s, string);
call_bare(f) //~ ERROR mismatched types