Skip to content

Commit e3861aa

Browse files
author
Clark Gaebel
committed
---
yaml --- r: 105904 b: refs/heads/auto c: 5bdbd21 h: refs/heads/master v: v3
1 parent 0ceaa0d commit e3861aa

38 files changed

+1553
-861
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: 4d64441bcb820cf35d3e39dde8514c46765a12a6
16+
refs/heads/auto: 5bdbd2100946a5204ef82b12eb474e8e4d9ba64e
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

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/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)