Skip to content

Commit 9b11d7b

Browse files
committed
---
yaml --- r: 105907 b: refs/heads/auto c: a53242a h: refs/heads/master i: 105905: 70c5448 105903: 0ceaa0d v: v3
1 parent 675ab1a commit 9b11d7b

38 files changed

+1679
-735
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: f079c94f723f8c67319da8c727324b2011d7b36f
16+
refs/heads/auto: a53242a1a38301b4a40be71fcd182568b7ee91b6
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,6 +147,10 @@ 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+
150154
define DEF_DOC
151155

152156
# HTML (rustdoc)
@@ -163,10 +167,6 @@ doc/$(1).epub: $$(D)/$(1).md | doc/
163167
@$$(call E, pandoc: $$@)
164168
$$(CFG_PANDOC) $$(PANDOC_EPUB_OPTS) $$< --output=$$@
165169

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ 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)
3839
* [The `native` 1:1 threading runtime](native/index.html)
3940
* [The `num` arbitrary precision numerics library](num/index.html)
41+
* [The `rand` library for random numbers and distributions](rand/index.html)
4042
* [The `rustc` compiler](rustc/index.html)
4143
* [The `rustuv` M:N I/O library](rustuv/index.html)
4244
* [The `semver` version collation library](semver/index.html)

branches/auto/src/doc/rust.md

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

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

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

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,11 @@ 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+
}
573578
"
574579

575580
;; Symbol -> (line column)
@@ -596,7 +601,15 @@ fn indenting_middle_of_line() {
596601
(after-whitespace-indent-start (13 1))
597602
(after-whitespace-indent-target (13 8))
598603
(middle-pull-indent-start (15 19))
599-
(middle-pull-indent-target (15 12))))
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))))
600613

601614
(defun rust-get-buffer-pos (pos-symbol)
602615
"Get buffer position from POS-SYMBOL.
@@ -793,3 +806,31 @@ All positions are position symbols found in `rust-test-positions-alist'."
793806
'middle-pull-indent-start
794807
'middle-pull-indent-target
795808
#'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-
(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))))))
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)))))
151151

152152

153153
;; Font-locking definitions and helpers

0 commit comments

Comments
 (0)