Skip to content

Commit 47f9e52

Browse files
committed
Auto merge of #25827 - Manishearth:rollup, r=Manishearth
- Successful merges: #25128, #25651, #25668, #25726, #25760, #25792, #25806, #25807 - Failed merges:
2 parents af60248 + 6090d15 commit 47f9e52

File tree

9 files changed

+68
-16
lines changed

9 files changed

+68
-16
lines changed

Diff for: configure

-5
Original file line numberDiff line numberDiff line change
@@ -863,11 +863,6 @@ then
863863
CFG_DISABLE_JEMALLOC=1
864864
fi
865865

866-
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
867-
then
868-
err "either clang or gcc is required"
869-
fi
870-
871866
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
872867
# system, so if we find that gcc is clang, we should just use clang directly.
873868
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]

Diff for: man/rustc.1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTC "1" "March 2014" "rustc 0.13.0" "User Commands"
1+
.TH RUSTC "1" "August 2015" "rustc 1.2.0" "User Commands"
22
.SH NAME
33
rustc \- The Rust compiler
44
.SH SYNOPSIS
@@ -160,7 +160,7 @@ If the value is 'help', then a list of available CPUs is printed.
160160
\fBtarget\-feature\fR='\fI+feature1\fR,\fI\-feature2\fR'
161161
A comma\[hy]separated list of features to enable or disable for the target.
162162
A preceding '+' enables a feature while a preceding '\-' disables it.
163-
Available features can be discovered through \fItarget\-cpu=help\fR.
163+
Available features can be discovered through \fIllc -mcpu=help\fR.
164164
.TP
165165
\fBpasses\fR=\fIval\fR
166166
A space\[hy]separated list of extra LLVM passes to run.

Diff for: man/rustdoc.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RUSTDOC "1" "March 2014" "rustdoc 0.13.0" "User Commands"
1+
.TH RUSTDOC "1" "August 2015" "rustdoc 1.2.0" "User Commands"
22
.SH NAME
33
rustdoc \- generate documentation from Rust source code
44
.SH SYNOPSIS

Diff for: src/libcore/cell.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl<T:Copy> Cell<T> {
212212
}
213213
}
214214

215-
/// Gets a reference to the underlying `UnsafeCell`.
215+
/// Returns a reference to the underlying `UnsafeCell`.
216216
///
217217
/// # Unsafety
218218
///
@@ -439,7 +439,7 @@ impl<T: ?Sized> RefCell<T> {
439439
}
440440
}
441441

442-
/// Gets a reference to the underlying `UnsafeCell`.
442+
/// Returns a reference to the underlying `UnsafeCell`.
443443
///
444444
/// This can be used to circumvent `RefCell`'s safety checks.
445445
///
@@ -671,8 +671,8 @@ impl<T> UnsafeCell<T> {
671671
///
672672
/// # Unsafety
673673
///
674-
/// This function is unsafe because there is no guarantee that this or other threads are
675-
/// currently inspecting the inner value.
674+
/// This function is unsafe because this thread or another thread may currently be
675+
/// inspecting the inner value.
676676
///
677677
/// # Examples
678678
///

Diff for: src/librustc_trans/back/link.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub fn sanitize(s: &str) -> String {
279279
}
280280

281281
pub fn mangle<PI: Iterator<Item=PathElem>>(path: PI,
282-
hash: Option<&str>) -> String {
282+
hash: Option<&str>) -> String {
283283
// Follow C++ namespace-mangling style, see
284284
// http://en.wikipedia.org/wiki/Name_mangling for more info.
285285
//

Diff for: src/librustc_trans/back/write.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ struct HandlerFreeVars<'a> {
342342
}
343343

344344
unsafe extern "C" fn report_inline_asm<'a, 'b>(cgcx: &'a CodegenContext<'a>,
345-
msg: &'b str,
346-
cookie: c_uint) {
345+
msg: &'b str,
346+
cookie: c_uint) {
347347
use syntax::codemap::ExpnId;
348348

349349
match cgcx.lto_ctxt {

Diff for: src/libstd/env.rs

+54
Original file line numberDiff line numberDiff line change
@@ -598,40 +598,94 @@ pub fn page_size() -> usize {
598598
pub mod consts {
599599
/// A string describing the architecture of the CPU that this is currently
600600
/// in use.
601+
///
602+
/// Some possible values:
603+
///
604+
/// - x86
605+
/// - x86_64
606+
/// - arm
607+
/// - aarch64
608+
/// - mips
609+
/// - mipsel
610+
/// - powerpc
601611
#[stable(feature = "env", since = "1.0.0")]
602612
pub const ARCH: &'static str = super::arch::ARCH;
603613

604614
/// The family of the operating system. In this case, `unix`.
615+
///
616+
/// Some possible values:
617+
///
618+
/// - unix
619+
/// - windows
605620
#[stable(feature = "env", since = "1.0.0")]
606621
pub const FAMILY: &'static str = super::os::FAMILY;
607622

608623
/// A string describing the specific operating system in use: in this
609624
/// case, `linux`.
625+
///
626+
/// Some possible values:
627+
///
628+
/// - linux
629+
/// - macos
630+
/// - ios
631+
/// - freebsd
632+
/// - dragonfly
633+
/// - bitrig
634+
/// - openbsd
635+
/// - android
636+
/// - windows
610637
#[stable(feature = "env", since = "1.0.0")]
611638
pub const OS: &'static str = super::os::OS;
612639

613640
/// Specifies the filename prefix used for shared libraries on this
614641
/// platform: in this case, `lib`.
642+
///
643+
/// Some possible values:
644+
///
645+
/// - lib
646+
/// - `""` (an empty string)
615647
#[stable(feature = "env", since = "1.0.0")]
616648
pub const DLL_PREFIX: &'static str = super::os::DLL_PREFIX;
617649

618650
/// Specifies the filename suffix used for shared libraries on this
619651
/// platform: in this case, `.so`.
652+
///
653+
/// Some possible values:
654+
///
655+
/// - .so
656+
/// - .dylib
657+
/// - .dll
620658
#[stable(feature = "env", since = "1.0.0")]
621659
pub const DLL_SUFFIX: &'static str = super::os::DLL_SUFFIX;
622660

623661
/// Specifies the file extension used for shared libraries on this
624662
/// platform that goes after the dot: in this case, `so`.
663+
///
664+
/// Some possible values:
665+
///
666+
/// - .so
667+
/// - .dylib
668+
/// - .dll
625669
#[stable(feature = "env", since = "1.0.0")]
626670
pub const DLL_EXTENSION: &'static str = super::os::DLL_EXTENSION;
627671

628672
/// Specifies the filename suffix used for executable binaries on this
629673
/// platform: in this case, the empty string.
674+
///
675+
/// Some possible values:
676+
///
677+
/// - exe
678+
/// - `""` (an empty string)
630679
#[stable(feature = "env", since = "1.0.0")]
631680
pub const EXE_SUFFIX: &'static str = super::os::EXE_SUFFIX;
632681

633682
/// Specifies the file extension, if any, used for executable binaries
634683
/// on this platform: in this case, the empty string.
684+
///
685+
/// Some possible values:
686+
///
687+
/// - exe
688+
/// - `""` (an empty string)
635689
#[stable(feature = "env", since = "1.0.0")]
636690
pub const EXE_EXTENSION: &'static str = super::os::EXE_EXTENSION;
637691

Diff for: src/libstd/fs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,8 @@ pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
844844

845845
/// Rename a file or directory to a new name.
846846
///
847+
/// This will not work if the new name is on a different mount point.
848+
///
847849
/// # Errors
848850
///
849851
/// This function will return an error if the provided `from` doesn't exist, if

Diff for: src/test/compile-fail/asm-src-loc-codegen-units.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010
//
11-
// ignore-stage1 (#20184)
11+
// WONTFIX(#20184) Needs landing pads (not present in stage1) or the compiler hangs.
12+
// ignore-stage1
1213
// compile-flags: -C codegen-units=2
1314
// error-pattern: build without -C codegen-units for more exact errors
1415

0 commit comments

Comments
 (0)