Strip all leading/trailing newlines
This commit is contained in:
parent
95018eec69
commit
d51047ded0
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,4 +25,3 @@
|
|||
});
|
||||
}
|
||||
}());
|
||||
|
||||
|
|
|
@ -12,4 +12,3 @@
|
|||
|
||||
#![doc(primitive = "bool")]
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
|
|
|
@ -94,4 +94,3 @@ namespace msvc_typeof_impl {
|
|||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/*
|
||||
----------------------------------------------------------------
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,4 +22,3 @@ pub fn main() {
|
|||
};
|
||||
r()
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {}
|
||||
|
||||
|
|
|
@ -44,4 +44,3 @@ fn main() {
|
|||
}
|
||||
|
||||
fn read(_: usize) { }
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -24,4 +24,3 @@ pub fn main() {
|
|||
//~| expected &-ptr
|
||||
//~| found box
|
||||
}
|
||||
|
||||
|
|
|
@ -16,4 +16,3 @@ fn main() {
|
|||
println!("{}", *s);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,4 +13,3 @@ fn f(a: isize, a: isize) {}
|
|||
|
||||
fn main() {
|
||||
}
|
||||
|
||||
|
|
|
@ -36,4 +36,3 @@ impl<T,T> Qux<T,T> for Option<T> {}
|
|||
|
||||
fn main() {
|
||||
}
|
||||
|
||||
|
|
|
@ -26,4 +26,3 @@ impl<'a,'b> Foo<'a,'b> {
|
|||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
|
|
@ -28,4 +28,3 @@ extern "rust-intrinsic" {
|
|||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
|
|
@ -16,4 +16,3 @@ fn main() {
|
|||
[ 1, 2, xs.. ] => {} // OK without feature gate
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,4 +20,3 @@ fn main() {
|
|||
let x = box (HEAP) 'c'; //~ ERROR box expression syntax is experimental
|
||||
println!("x: {}", x);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,4 +10,3 @@
|
|||
|
||||
#[start]
|
||||
fn foo() {} //~ ERROR: a #[start] function is an experimental feature
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -23,4 +23,3 @@ fn main() {
|
|||
bar::<isize>(i); // i should not be re-coerced back to an isize
|
||||
//~^ ERROR: mismatched types
|
||||
}
|
||||
|
||||
|
|
|
@ -15,4 +15,3 @@ macro_rules! recursive {
|
|||
fn main() {
|
||||
recursive!()
|
||||
}
|
||||
|
||||
|
|
|
@ -27,5 +27,3 @@ unsafe fn g() -> isize {
|
|||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
||||
|
|
|
@ -29,4 +29,3 @@ pub fn main() {
|
|||
// least throw a conventional error.
|
||||
assert!({one! two});
|
||||
}
|
||||
|
||||
|
|
|
@ -30,4 +30,3 @@ fn main() {
|
|||
test(&*ptr);
|
||||
//~^ ERROR: cannot borrow `*ptr` as immutable
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue