Skip to content

Commit f8ce778

Browse files
committed
---
yaml --- r: 105919 b: refs/heads/auto c: 500bade h: refs/heads/master i: 105917: 64963e8 105915: 2721c00 105911: 3c718a6 105903: 0ceaa0d 105887: 4d7e4a8 105855: 282821f v: v3
1 parent 0a9f6c3 commit f8ce778

File tree

157 files changed

+1445
-42541
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+1445
-42541
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 12b2607572d6233a1d4b4f7592573e49b505771e
16+
refs/heads/auto: 500bade87e48eacf5cf14e236ca46bd434e542d6
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ HOST_CRATES := syntax rustc rustdoc fourcc hexfloat
5555
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5656
TOOLS := compiletest rustdoc rustc
5757

58-
DEPS_std := native:rustrt native:compiler-rt native:backtrace
58+
DEPS_std := native:rustrt native:compiler-rt
5959
DEPS_extra := std term sync serialize getopts collections time rand
6060
DEPS_green := std rand native:context_switch
6161
DEPS_rustuv := std native:uv native:uv_support

branches/auto/mk/docs.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ SHOULD_BUILD_PDF_DOC_$(1) = 1
147147
endef
148148
$(foreach docname,$(PDF_DOCS),$(eval $(call DEF_SHOULD_BUILD_PDF_DOC,$(docname))))
149149

150-
doc/footer.tex: $(D)/footer.inc | doc/
151-
@$(call E, pandoc: $@)
152-
$(CFG_PANDOC) --from=html --to=latex $< --output=$@
153-
154150
define DEF_DOC
155151

156152
# HTML (rustdoc)
@@ -167,6 +163,10 @@ doc/$(1).epub: $$(D)/$(1).md | doc/
167163
@$$(call E, pandoc: $$@)
168164
$$(CFG_PANDOC) $$(PANDOC_EPUB_OPTS) $$< --output=$$@
169165

166+
doc/footer.tex: $(D)/footer.inc | doc/
167+
@$$(call E, pandoc: $$@)
168+
$$(CFG_PANDOC) --from=html --to=latex $$< --output=$$@
169+
170170
# PDF (md =(pandoc)=> tex =(pdflatex)=> pdf)
171171
DOC_TARGETS += doc/$(1).tex
172172
doc/$(1).tex: $$(D)/$(1).md doc/footer.tex doc/version.tex | doc/

branches/auto/mk/rt.mk

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -249,73 +249,6 @@ $$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS) $$(MKFILE_DEPS)
249249
triple-runtime
250250
$$(Q)cp $$(COMPRT_BUILD_DIR_$(1))/triple/runtime/libcompiler_rt.a $$(COMPRT_LIB_$(1))
251251

252-
################################################################################
253-
# libbacktrace
254-
#
255-
# We use libbacktrace on linux to get symbols in backtraces, but only on linux.
256-
# Elsewhere we use other system utilities, so this library is only built on
257-
# linux.
258-
################################################################################
259-
260-
BACKTRACE_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),backtrace)
261-
BACKTRACE_LIB_$(1) := $$(RT_OUTPUT_DIR_$(1))/$$(BACKTRACE_NAME_$(1))
262-
BACKTRACE_BUILD_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/libbacktrace
263-
264-
ifeq ($$(findstring darwin,$$(OSTYPE_$(1))),darwin)
265-
266-
# We don't use this on platforms that aren't linux-based, so just make the file
267-
# available, the compilation of libstd won't actually build it.
268-
$$(BACKTRACE_LIB_$(1)):
269-
touch $$@
270-
271-
else
272-
ifeq ($$(CFG_WINDOWSY_$(1)),1)
273-
$$(BACKTRACE_LIB_$(1)):
274-
touch $$@
275-
else
276-
277-
ifdef CFG_ENABLE_FAST_MAKE
278-
BACKTRACE_DEPS := $(S)/.gitmodules
279-
else
280-
BACKTRACE_DEPS := $(wildcard $(S)src/libbacktrace/*)
281-
endif
282-
283-
# We need to export CFLAGS because otherwise it doesn't pick up cross compile
284-
# builds. If libbacktrace doesn't realize this, it will attempt to read 64-bit
285-
# elf headers when compiled for a 32-bit system, yielding blank backtraces.
286-
#
287-
# This also removes the -Werror flag specifically to prevent errors during
288-
# configuration.
289-
#
290-
# Down below you'll also see echos into the config.h generated by the
291-
# ./configure script. This is done to force libbacktrace to *not* use the
292-
# atomic/sync functionality because it pulls in unnecessary dependencies and we
293-
# never use it anyway.
294-
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: \
295-
export CFLAGS:=$$(CFG_GCCISH_CFLAGS_$(1):-Werror=) \
296-
-fno-stack-protector
297-
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: export CC:=$$(CC_$(1))
298-
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: export AR:=$$(AR_$(1))
299-
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: export RANLIB:=$$(AR_$(1)) s
300-
$$(BACKTRACE_BUILD_DIR_$(1))/Makefile: $$(BACKTRACE_DEPS) $$(MKFILE_DEPS)
301-
$$(Q)rm -rf $$(BACKTRACE_BUILD_DIR_$(1))
302-
$$(Q)mkdir -p $$(BACKTRACE_BUILD_DIR_$(1))
303-
$$(Q)(cd $$(BACKTRACE_BUILD_DIR_$(1)) && \
304-
$(S)src/libbacktrace/configure --target=$(1) --host=$(CFG_BUILD))
305-
$$(Q)echo '#undef HAVE_ATOMIC_FUNCTIONS' >> \
306-
$$(BACKTRACE_BUILD_DIR_$(1))/config.h
307-
$$(Q)echo '#undef HAVE_SYNC_FUNCTIONS' >> \
308-
$$(BACKTRACE_BUILD_DIR_$(1))/config.h
309-
310-
$$(BACKTRACE_LIB_$(1)): $$(BACKTRACE_BUILD_DIR_$(1))/Makefile $$(MKFILE_DEPS)
311-
@$$(call E, make: libbacktrace)
312-
$$(Q)$$(MAKE) -C $$(BACKTRACE_BUILD_DIR_$(1)) \
313-
INCDIR=$(S)src/libbacktrace
314-
$$(Q)cp $$(BACKTRACE_BUILD_DIR_$(1))/.libs/libbacktrace.a $$@
315-
316-
endif # endif for windowsy
317-
endif # endif for darwin
318-
319252
endef
320253

321254
# Instantiate template for all stages/targets

branches/auto/mk/tests.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ tidy:
240240
| grep '^$(S)src/libuv' -v \
241241
| grep '^$(S)src/llvm' -v \
242242
| grep '^$(S)src/gyp' -v \
243-
| grep '^$(S)src/libbacktrace' -v \
244243
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
245244
$(Q)find $(S)src/etc -name '*.py' \
246245
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
@@ -267,7 +266,6 @@ tidy:
267266
| grep '^$(S)src/etc' -v \
268267
| grep '^$(S)src/doc' -v \
269268
| grep '^$(S)src/compiler-rt' -v \
270-
| grep '^$(S)src/libbacktrace' -v \
271269
| xargs $(CFG_PYTHON) $(S)src/etc/check-binaries.py
272270

273271
endif

branches/auto/src/compiletest/compiletest.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ pub fn opt_str2(maybestr: Option<~str>) -> ~str {
191191
}
192192

193193
pub fn str_mode(s: ~str) -> mode {
194-
match s.as_slice() {
195-
"compile-fail" => mode_compile_fail,
196-
"run-fail" => mode_run_fail,
197-
"run-pass" => mode_run_pass,
198-
"pretty" => mode_pretty,
199-
"debug-info" => mode_debug_info,
200-
"codegen" => mode_codegen,
194+
match s {
195+
~"compile-fail" => mode_compile_fail,
196+
~"run-fail" => mode_run_fail,
197+
~"run-pass" => mode_run_pass,
198+
~"pretty" => mode_pretty,
199+
~"debug-info" => mode_debug_info,
200+
~"codegen" => mode_codegen,
201201
_ => fail!("invalid mode")
202202
}
203203
}

branches/auto/src/compiletest/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn load_errors(testfile: &Path) -> ~[ExpectedError] {
1919
let mut rdr = BufferedReader::new(File::open(testfile).unwrap());
2020
let mut line_num = 1u;
2121
for ln in rdr.lines() {
22-
error_patterns.push_all_move(parse_expected(line_num, ln.unwrap()));
22+
error_patterns.push_all_move(parse_expected(line_num, ln));
2323
line_num += 1u;
2424
}
2525
return error_patterns;

branches/auto/src/compiletest/header.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ fn iter_header(testfile: &Path, it: |&str| -> bool) -> bool {
140140
// Assume that any directives will be found before the first
141141
// module or function. This doesn't seem to be an optimization
142142
// with a warm page cache. Maybe with a cold one.
143-
let ln = ln.unwrap();
144143
if ln.starts_with("fn") || ln.starts_with("mod") {
145144
return true;
146145
} else { if !(it(ln.trim())) { return false; } }

branches/auto/src/compiletest/runtest.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ use test::MetricMap;
3838

3939
pub fn run(config: config, testfile: ~str) {
4040

41-
match config.target.as_slice() {
41+
match config.target {
4242

43-
"arm-linux-androideabi" => {
43+
~"arm-linux-androideabi" => {
4444
if !config.adb_device_status {
4545
fail!("android device not available");
4646
}
@@ -277,8 +277,8 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
277277
let exe_file = make_exe_name(config, testfile);
278278
279279
let mut proc_args;
280-
match config.target.as_slice() {
281-
"arm-linux-androideabi" => {
280+
match config.target {
281+
~"arm-linux-androideabi" => {
282282

283283
cmds = cmds.replace("run","continue");
284284

@@ -682,9 +682,9 @@ fn exec_compiled_test(config: &config, props: &TestProps,
682682

683683
let env = props.exec_env.clone();
684684

685-
match config.target.as_slice() {
685+
match config.target {
686686

687-
"arm-linux-androideabi" => {
687+
~"arm-linux-androideabi" => {
688688
_arm_exec_compiled_test(config, props, testfile, env)
689689
}
690690

@@ -735,9 +735,9 @@ fn compose_and_run_compiler(
735735
&auxres);
736736
}
737737

738-
match config.target.as_slice() {
738+
match config.target {
739739

740-
"arm-linux-androideabi" => {
740+
~"arm-linux-androideabi" => {
741741
_arm_push_aux_shared_library(config, testfile);
742742
}
743743

branches/auto/src/doc/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ li {list-style-type: none; }
3535
* [The `getopts` argument parsing library](getopts/index.html)
3636
* [The `glob` file path matching library](glob/index.html)
3737
* [The `green` M:N runtime library](green/index.html)
38-
* [The `hexfloat` library for hexadecimal floating-point literals](hexfloat/index.html)
3938
* [The `native` 1:1 threading runtime](native/index.html)
4039
* [The `num` arbitrary precision numerics library](num/index.html)
41-
* [The `rand` library for random numbers and distributions](rand/index.html)
4240
* [The `rustc` compiler](rustc/index.html)
4341
* [The `rustuv` M:N I/O library](rustuv/index.html)
4442
* [The `semver` version collation library](semver/index.html)

branches/auto/src/doc/rust.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,7 @@ and are instead terminated by a semicolon.
14721472

14731473
~~~~
14741474
# use std::libc::{c_char, FILE};
1475+
# #[nolink]
14751476
14761477
extern {
14771478
fn fopen(filename: *c_char, mode: *c_char) -> *FILE;

branches/auto/src/etc/emacs/rust-mode-tests.el

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -570,11 +570,6 @@ fn indenting_middle_of_line() {
570570
pull_me_back_in();
571571
}
572572
}
573-
574-
fn indented_already() {
575-
576-
// The previous line already has its spaces
577-
}
578573
"
579574

580575
;; Symbol -> (line column)
@@ -601,15 +596,7 @@ fn indented_already() {
601596
(after-whitespace-indent-start (13 1))
602597
(after-whitespace-indent-target (13 8))
603598
(middle-pull-indent-start (15 19))
604-
(middle-pull-indent-target (15 12))
605-
(blank-line-indented-already-bol-start (20 0))
606-
(blank-line-indented-already-bol-target (20 4))
607-
(blank-line-indented-already-middle-start (20 2))
608-
(blank-line-indented-already-middle-target (20 4))
609-
(nonblank-line-indented-already-bol-start (21 0))
610-
(nonblank-line-indented-already-bol-target (21 4))
611-
(nonblank-line-indented-already-middle-start (21 2))
612-
(nonblank-line-indented-already-middle-target (21 4))))
599+
(middle-pull-indent-target (15 12))))
613600

614601
(defun rust-get-buffer-pos (pos-symbol)
615602
"Get buffer position from POS-SYMBOL.
@@ -806,31 +793,3 @@ All positions are position symbols found in `rust-test-positions-alist'."
806793
'middle-pull-indent-start
807794
'middle-pull-indent-target
808795
#'indent-for-tab-command))
809-
810-
(ert-deftest indent-line-blank-line-indented-already-bol ()
811-
(rust-test-motion
812-
rust-test-indent-motion-string
813-
'blank-line-indented-already-bol-start
814-
'blank-line-indented-already-bol-target
815-
#'indent-for-tab-command))
816-
817-
(ert-deftest indent-line-blank-line-indented-already-middle ()
818-
(rust-test-motion
819-
rust-test-indent-motion-string
820-
'blank-line-indented-already-middle-start
821-
'blank-line-indented-already-middle-target
822-
#'indent-for-tab-command))
823-
824-
(ert-deftest indent-line-nonblank-line-indented-already-bol ()
825-
(rust-test-motion
826-
rust-test-indent-motion-string
827-
'nonblank-line-indented-already-bol-start
828-
'nonblank-line-indented-already-bol-target
829-
#'indent-for-tab-command))
830-
831-
(ert-deftest indent-line-nonblank-line-indented-already-middle ()
832-
(rust-test-motion
833-
rust-test-indent-motion-string
834-
'nonblank-line-indented-already-middle-start
835-
'nonblank-line-indented-already-middle-target
836-
#'indent-for-tab-command))

branches/auto/src/etc/emacs/rust-mode.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@
140140
;; Otherwise, we are continuing the same expression from the previous line,
141141
;; so add one additional indent level
142142
(+ baseline rust-indent-offset))))))))))
143-
144-
;; If we're at the beginning of the line (before or at the current
145-
;; indentation), jump with the indentation change. Otherwise, save the
146-
;; excursion so that adding the indentations will leave us at the
147-
;; equivalent position within the line to where we were before.
148-
(if (<= (current-column) (current-indentation))
149-
(indent-line-to indent)
150-
(save-excursion (indent-line-to indent)))))
143+
(when (not (eq (current-indentation) indent))
144+
;; If we're at the beginning of the line (before or at the current
145+
;; indentation), jump with the indentation change. Otherwise, save the
146+
;; excursion so that adding the indentations will leave us at the
147+
;; equivalent position within the line to where we were before.
148+
(if (<= (current-column) (current-indentation))
149+
(indent-line-to indent)
150+
(save-excursion (indent-line-to indent))))))
151151

152152

153153
;; Font-locking definitions and helpers

0 commit comments

Comments
 (0)