Skip to content

Commit 5b56d73

Browse files
committed
Auto merge of #25984 - Manishearth:rollup, r=Manishearth
- Successful merges: #25939, #25963, #25970, #25971, #25974 - Failed merges:
2 parents a5979be + e490c17 commit 5b56d73

File tree

5 files changed

+12
-23
lines changed

5 files changed

+12
-23
lines changed

configure

+4-8
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ valopt sysconfdir "/etc" "install system configuration files"
582582
valopt datadir "${CFG_PREFIX}/share" "install data"
583583
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
584584
valopt llvm-root "" "set LLVM root"
585+
valopt python "" "set path to python"
585586
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
586587
valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
587588
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
@@ -695,7 +696,9 @@ putvar CFG_BOOTSTRAP_KEY
695696
step_msg "looking for build programs"
696697

697698
probe_need CFG_CURLORWGET curl wget
698-
probe_need CFG_PYTHON python2.7 python2.6 python2 python
699+
if [ -z "$CFG_PYTHON_PROVIDED" ]; then
700+
probe_need CFG_PYTHON python2.7 python2.6 python2 python
701+
fi
699702

700703
python_version=$($CFG_PYTHON -V 2>&1)
701704
if [ $(echo $python_version | grep -c '^Python 2\.[4567]') -ne 1 ]; then
@@ -849,13 +852,6 @@ then
849852
putvar CFG_LOCAL_RUST_ROOT
850853
fi
851854

852-
# Force freebsd to build with clang; gcc doesn't like us there
853-
if [ $CFG_OSTYPE = unknown-freebsd ]
854-
then
855-
step_msg "on FreeBSD, forcing use of clang"
856-
CFG_ENABLE_CLANG=1
857-
fi
858-
859855
# Force bitrig to build with clang; gcc doesn't like us there
860856
if [ $CFG_OSTYPE = unknown-bitrig ]
861857
then

mk/docs.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ endef
265265
$(foreach crate,$(CRATES),$(eval $(call DEF_LIB_DOC,$(crate))))
266266

267267
COMPILER_DOC_TARGETS := $(CRATES:%=doc/%/index.html)
268-
ifdef CFG_COMPILER_DOCS
268+
ifdef CFG_ENABLE_COMPILER_DOCS
269269
DOC_TARGETS += $(COMPILER_DOC_TARGETS)
270270
else
271271
DOC_TARGETS += $(DOC_CRATES:%=doc/%/index.html)

src/doc/trpl/mutability.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ b.x = 10; // error: cannot assign to immutable field `b.x`
159159

160160
[struct]: structs.html
161161

162-
However, by using `Cell<T>`, you can emulate field-level mutability:
162+
However, by using [`Cell<T>`][cell], you can emulate field-level mutability:
163163

164164
```rust
165165
use std::cell::Cell;
@@ -176,4 +176,6 @@ point.y.set(7);
176176
println!("y: {:?}", point.y);
177177
```
178178

179+
[cell]: ../std/cell/struct.Cell.html
180+
179181
This will print `y: Cell { value: 7 }`. We’ve successfully updated `y`.

src/librustc_back/target/freebsd_base.rs

-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ pub fn opts() -> TargetOptions {
1818
executables: true,
1919
morestack: true,
2020
has_rpath: true,
21-
pre_link_args: vec!(
22-
"-L/usr/local/lib".to_string(),
23-
"-L/usr/local/lib/gcc46".to_string(),
24-
"-L/usr/local/lib/gcc44".to_string(),
25-
),
2621

2722
.. Default::default()
2823
}

src/libstd/sys/common/stack.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ pub unsafe fn record_os_managed_stack_bounds(stack_lo: usize, _stack_hi: usize)
139139
pub unsafe fn record_sp_limit(limit: usize) {
140140
return target_record_sp_limit(limit);
141141

142-
// x86-64
143142
#[cfg(all(target_arch = "x86_64",
144143
any(target_os = "macos", target_os = "ios")))]
145144
#[inline(always)]
@@ -164,7 +163,6 @@ pub unsafe fn record_sp_limit(limit: usize) {
164163
asm!("movq $0, %fs:32" :: "r"(limit) :: "volatile")
165164
}
166165

167-
// x86
168166
#[cfg(all(target_arch = "x86",
169167
any(target_os = "macos", target_os = "ios")))]
170168
#[inline(always)]
@@ -182,8 +180,8 @@ pub unsafe fn record_sp_limit(limit: usize) {
182180
unsafe fn target_record_sp_limit(_: usize) {
183181
}
184182

185-
// mips, arm - Some brave soul can port these to inline asm, but it's over
186-
// my head personally
183+
// mips, arm - The implementations are a bit big for inline asm!
184+
// They can be found in src/rt/arch/$target_arch/record_sp.S
187185
#[cfg(any(target_arch = "mips",
188186
target_arch = "mipsel",
189187
all(target_arch = "arm", not(target_os = "ios"))))]
@@ -221,7 +219,6 @@ pub unsafe fn record_sp_limit(limit: usize) {
221219
pub unsafe fn get_sp_limit() -> usize {
222220
return target_get_sp_limit();
223221

224-
// x86-64
225222
#[cfg(all(target_arch = "x86_64",
226223
any(target_os = "macos", target_os = "ios")))]
227224
#[inline(always)]
@@ -255,7 +252,6 @@ pub unsafe fn get_sp_limit() -> usize {
255252
return limit;
256253
}
257254

258-
// x86
259255
#[cfg(all(target_arch = "x86",
260256
any(target_os = "macos", target_os = "ios")))]
261257
#[inline(always)]
@@ -278,8 +274,8 @@ pub unsafe fn get_sp_limit() -> usize {
278274
return 1024;
279275
}
280276

281-
// mips, arm - Some brave soul can port these to inline asm, but it's over
282-
// my head personally
277+
// mips, arm - The implementations are a bit big for inline asm!
278+
// They can be found in src/rt/arch/$target_arch/record_sp.S
283279
#[cfg(any(target_arch = "mips",
284280
target_arch = "mipsel",
285281
all(target_arch = "arm", not(target_os = "ios"))))]

0 commit comments

Comments
 (0)