Skip to content

Commit 61441cb

Browse files
committed
Auto merge of #31285 - Manishearth:rollup, r=Manishearth
- Successful merges: #31252, #31256, #31264, #31269, #31272, #31275, #31276 - Failed merges:
2 parents ebe92e5 + 7a0e490 commit 61441cb

File tree

9 files changed

+38
-12
lines changed

9 files changed

+38
-12
lines changed

mk/cfg/armv7s-apple-ios.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ CFG_LIB_GLOB_armv7s-apple-ios = lib$(1)-*.a
1414
CFG_INSTALL_ONLY_RLIB_armv7s-apple-ios = 1
1515
CFG_STATIC_LIB_NAME_armv7s-apple-ios=lib$(1).a
1616
CFG_LIB_DSYM_GLOB_armv7s-apple-ios = lib$(1)-*.a.dSYM
17-
CFG_JEMALLOC_CFLAGS_armv7s-apple-ios := -arch armv7s -mfpu=vfp4 $(CFG_IOS_SDK_FLAGS_armv7s-apple-ios)
18-
CFG_GCCISH_CFLAGS_armv7s-apple-ios := -Wall -Werror -g -fPIC $(CFG_IOS_SDK_FLAGS_armv7s-apple-ios) -mfpu=vfp4 -arch armv7s
17+
CFG_JEMALLOC_CFLAGS_armv7s-apple-ios := -arch armv7s $(CFG_IOS_SDK_FLAGS_armv7s-apple-ios)
18+
CFG_GCCISH_CFLAGS_armv7s-apple-ios := -Wall -Werror -g -fPIC $(CFG_IOS_SDK_FLAGS_armv7s-apple-ios) -arch armv7s
1919
CFG_GCCISH_CXXFLAGS_armv7s-apple-ios := -fno-rtti $(CFG_IOS_SDK_FLAGS_armv7s-apple-ios) -I$(CFG_IOS_SDK_armv7s-apple-ios)/usr/include/c++/4.2.1
2020
CFG_GCCISH_LINK_FLAGS_armv7s-apple-ios := -lpthread -syslibroot $(CFG_IOS_SDK_armv7s-apple-ios) -Wl,-no_compact_unwind
2121
CFG_GCCISH_DEF_FLAG_armv7s-apple-ios := -Wl,-exported_symbols_list,

mk/cfg/powerpc64-unknown-linux-gnu.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# powerpc64-unknown-linux-gnu configuration
2-
CROSS_PREFIX_powerpc64-unknown-linux-gnu=powerpc64-linux-gnu-
2+
CROSS_PREFIX_powerpc64-unknown-linux-gnu=powerpc-linux-gnu-
33
CC_powerpc64-unknown-linux-gnu=$(CC)
44
CXX_powerpc64-unknown-linux-gnu=$(CXX)
55
CPP_powerpc64-unknown-linux-gnu=$(CPP)

src/doc/reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ comments (`/** ... */`), are interpreted as a special syntax for `doc`
104104
`#[doc="..."]` around the body of the comment, i.e., `/// Foo` turns into
105105
`#[doc="Foo"]`.
106106

107-
Line comments beginning with `//!` and block comments `/*! ... !*/` are
107+
Line comments beginning with `//!` and block comments `/*! ... */` are
108108
doc comments that apply to the parent of the comment, rather than the item
109109
that follows. That is, they are equivalent to writing `#![doc="..."]` around
110110
the body of the comment. `//!` comments are usually used to document

src/libcollections/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ impl String {
641641
Cow::Owned(res)
642642
}
643643

644-
/// Decode a UTF-16 encoded vector `v` into a `String`, returning `None`
644+
/// Decode a UTF-16 encoded vector `v` into a `String`, returning `Err`
645645
/// if `v` contains any invalid data.
646646
///
647647
/// # Examples

src/liblibc

src/librustdoc/html/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ impl fmt::Display for clean::Type {
460460
[] => primitive_link(f, clean::PrimitiveTuple, "()"),
461461
[ref one] => {
462462
try!(primitive_link(f, clean::PrimitiveTuple, "("));
463-
try!(write!(f, "{}", one));
463+
try!(write!(f, "{},", one));
464464
primitive_link(f, clean::PrimitiveTuple, ")")
465465
}
466466
many => {

src/libstd/sys/unix/thread.rs

+9-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use cmp;
1515
#[cfg(not(target_env = "newlib"))]
1616
use ffi::CString;
1717
use io;
18-
use libc::PTHREAD_STACK_MIN;
1918
use libc;
2019
use mem;
2120
use ptr;
@@ -339,14 +338,20 @@ fn min_stack_size(attr: *const libc::pthread_attr_t) -> usize {
339338
});
340339

341340
match unsafe { __pthread_get_minstack } {
342-
None => PTHREAD_STACK_MIN as usize,
341+
None => libc::PTHREAD_STACK_MIN as usize,
343342
Some(f) => unsafe { f(attr) as usize },
344343
}
345344
}
346345

347346
// No point in looking up __pthread_get_minstack() on non-glibc
348347
// platforms.
349-
#[cfg(not(target_os = "linux"))]
348+
#[cfg(all(not(target_os = "linux"),
349+
not(target_os = "netbsd")))]
350+
fn min_stack_size(_: *const libc::pthread_attr_t) -> usize {
351+
libc::PTHREAD_STACK_MIN as usize
352+
}
353+
354+
#[cfg(target_os = "netbsd")]
350355
fn min_stack_size(_: *const libc::pthread_attr_t) -> usize {
351-
PTHREAD_STACK_MIN as usize
356+
2048 // just a guess
352357
}

src/test/run-pass/multi-panic.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ fn main() {
1717

1818
panic!();
1919
} else {
20-
let test = std::process::Command::new(&args[0]).arg("run_test").output().unwrap();
20+
let test = std::process::Command::new(&args[0]).arg("run_test")
21+
.env_remove("RUST_BACKTRACE")
22+
.output()
23+
.unwrap();
2124
assert!(!test.status.success());
2225
let err = String::from_utf8_lossy(&test.stderr);
2326
let mut it = err.lines();

src/test/rustdoc/tuples.rs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
#![crate_name = "foo"]
12+
13+
// @has foo/fn.tuple0.html //pre 'pub fn tuple0(x: ())'
14+
pub fn tuple0(x: ()) -> () { x }
15+
// @has foo/fn.tuple1.html //pre 'pub fn tuple1(x: (i32,)) -> (i32,)'
16+
pub fn tuple1(x: (i32,)) -> (i32,) { x }
17+
// @has foo/fn.tuple2.html //pre 'pub fn tuple2(x: (i32, i32)) -> (i32, i32)'
18+
pub fn tuple2(x: (i32, i32)) -> (i32, i32) { x }

0 commit comments

Comments
 (0)