Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rolling up PRs in the queue #20104

Merged
merged 105 commits into from
Dec 22, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
1e77e29
Don't preserve line breaks in inline code
lambda-fairy Dec 11, 2014
c0e8dc6
Added example to TempDir
Dec 16, 2014
6875eb5
Improve Arc<T> documentation, and Rc<T> docs a bit
steveklabnik Dec 17, 2014
c910252
Replaced wrapper functions with no_run and as_str().unwrap() with dis…
Dec 17, 2014
bada7df
doc: remove extraneous line
tshepang Dec 17, 2014
1afa8ac
Use #[deriving(Copy)] for InvariantLifetime
shepmaster Dec 14, 2014
1a996f9
Remove wrong `&str + String` and `&[T] + Vec<T>` implementations
Dec 18, 2014
5806519
doc: Small changes to ownership guide.
Dec 18, 2014
11a94f2
remove l10n
steveklabnik Dec 18, 2014
eee209d
Only count nested returns when the outer return is reachable
Aatch Dec 15, 2014
fb3e871
Add some documentation
Aatch Dec 15, 2014
9115b31
Fix formatting issues
Aatch Dec 16, 2014
b4f54f9
Minor fixes
Aatch Dec 17, 2014
9bb5380
Stability: tweak rules for trait impls
aturon Dec 18, 2014
5722410
Fix logic error and add unreachable after returns
Aatch Dec 18, 2014
6746b94
iOS: fallout of `marker::NoCopy` removal
vhbit Dec 18, 2014
85196bf
Fixed deprecation warnings on Unicode literals
vhbit Dec 18, 2014
0e9b12b
Add regression test for Issue 19811.
pnkfelix Dec 18, 2014
11d9175
serialize: keep libserialize in sync with rustc-serialize to simplify…
erickt Dec 18, 2014
d729c96
serialize: silence some warnings
erickt Dec 18, 2014
3d6babe
Use `-perm /a+x` instead of `-perm +a+x` in calls to find
Munksgaard Dec 18, 2014
01aa4ca
Clean up `collections::binary_heap`
apasel422 Dec 18, 2014
15d5454
Put quotes around "as", because it's a keyword.
th0114nd Dec 18, 2014
edb39b8
Boolean literals are not Number literals
th0114nd Dec 18, 2014
1b42e89
std: Remove public bool,tuple,unit modules
alexcrichton Dec 19, 2014
ce10c01
clean up ptr docs
Gankra Dec 9, 2014
b048114
debuginfo: Create debuginfo for for-loop variables again.
michaelwoerister Dec 19, 2014
14a5992
Allow marker types to have unsized parameters
lilyball Dec 19, 2014
3bb91aa
Add a check for uninferred type parameter
Munksgaard Dec 18, 2014
34a6fcf
debuginfo: Clean the debuginfo module up a bit.
michaelwoerister Dec 19, 2014
87c5927
debuginfo: Add test case for destructured for-loop variable.
michaelwoerister Dec 19, 2014
611ef49
Took out all of the metrics stuff from tests.mk
Dec 19, 2014
e5d8c85
iOS: fallout of runtime removal
vhbit Dec 19, 2014
84086c4
Register new snapshots
alexcrichton Dec 18, 2014
1919de8
Miscellaneous changes to Rust Guide
iKevinY Dec 13, 2014
cf350ea
hashset: Clean up and rename the HashSet iterators
Dec 19, 2014
d61db0c
Implement resize for Vec
csouth3 Dec 19, 2014
a71686f
std: Second pass stabilization of Result<T, E>
alexcrichton Dec 17, 2014
39f2490
Implement Deref for Box
barosl Dec 19, 2014
7023bea
Print a friendly error for the if-let construct without an else block
barosl Dec 19, 2014
314ed2d
Drop the Match prefix from the MatchSource variants
barosl Dec 19, 2014
2e86929
Allow use of `[_ ; n]` syntax for fixed length and repeating arrays.
nrc Dec 20, 2014
e0d4438
rustc: use Ty instead of passing ty::sty around.
eddyb Dec 16, 2014
89f75a6
Stabilize integer modules
aturon Dec 20, 2014
e473e70
Stabilize cell
aturon Dec 20, 2014
a7f1ce3
use binary literals to better reflect "bitflags"
jarod Dec 20, 2014
31f5ab3
Allow `Self` in impls.
nrc Dec 14, 2014
84b8f31
add {:?} fmt syntax
seanmonstar Dec 20, 2014
92ccc07
Stabilize clone
aturon Dec 20, 2014
b4a065a
Correct typo in doc for StdinReaderGuard
shepmaster Dec 20, 2014
44f6f52
metadata: Encode attrs for foreign items.
tomjakubowski Dec 20, 2014
cc33ce6
Add String::push_with_ascii_fast_path, bench it against String::push
SimonSapin Dec 20, 2014
e40a81b
Merge String::push_with_ascii_fast_path into String::push.
SimonSapin Dec 20, 2014
fb9b451
Visit + encode stability for foreign items
tomjakubowski Dec 20, 2014
bffd802
Fix small typos in std::rand documentation
shepmaster Dec 20, 2014
ebf0e96
rollup merge of #19651: Gankro/ptr-docs
alexcrichton Dec 21, 2014
86cb99d
rollup merge of #19727: lfairy/patch-1
alexcrichton Dec 21, 2014
693cfab
rollup merge of #19823: iKevinY/doc-fixes
alexcrichton Dec 21, 2014
98af642
Remove a ton of public reexports
frewsxcv Dec 13, 2014
bc99ced
rollup merge of #19838: shepmaster/invariant-lifetime-copy
alexcrichton Dec 21, 2014
25f8051
rollup merge of #19842: frewsxcv/rm-reexports
alexcrichton Dec 21, 2014
2af8155
rollup merge of #19898: Aatch/issue-19684
alexcrichton Dec 21, 2014
e654491
rollup merge of #19926: eddyb/less-sty
alexcrichton Dec 21, 2014
264088c
rollup merge of #19932: elszben/master
alexcrichton Dec 21, 2014
c76590c
rollup merge of #19944: steveklabnik/doc_sync_arc
alexcrichton Dec 21, 2014
5acb622
rollup merge of #19957: tshepang/patch-1
alexcrichton Dec 21, 2014
e872269
rollup merge of #19961: alexcrichton/second-pass-result
alexcrichton Dec 21, 2014
9f4f6cf
rollup merge of #19965: japaric/remove-wrong-add
alexcrichton Dec 21, 2014
8c030a8
rollup merge of #19966: steveklabnik/remove_l10n
alexcrichton Dec 21, 2014
b4f393e
rollup merge of #19967: apasel422/binary_heap
alexcrichton Dec 21, 2014
ee1bb3f
rollup merge of #19969: aturon/inherit-trait-stab
alexcrichton Dec 21, 2014
31800b3
rollup merge of #19973: vhbit/ios-no-copy
alexcrichton Dec 21, 2014
319ed81
rollup merge of #19974: vhbit/json-unicode-literals
alexcrichton Dec 21, 2014
1d34d93
rollup merge of #19977: pnkfelix/add-test-for-issue-19811
alexcrichton Dec 21, 2014
ca521fb
rollup merge of #19979: Munksgaard/19978
alexcrichton Dec 21, 2014
5831122
rollup merge of #19980: erickt/cleanup-serialize
alexcrichton Dec 21, 2014
576467b
rollup merge of #19983: Munksgaard/fix-19981
alexcrichton Dec 21, 2014
67ea1dc
rollup merge of #19989: th0114nd/quotes-around-as
alexcrichton Dec 21, 2014
91b3232
rollup merge of #19993: bluss/setalgebraitems
alexcrichton Dec 21, 2014
7e2ed4a
rollup merge of #19994: bluss/doc-ownership
alexcrichton Dec 21, 2014
4ae3107
rollup merge of #19996: th0114nd/boolean-inden
alexcrichton Dec 21, 2014
fc40812
rollup merge of #20006: alexcrichton/no-more-empty-modules
alexcrichton Dec 21, 2014
de7abcf
rollup merge of #20014: kballard/unsized-marker-type-params
alexcrichton Dec 21, 2014
a3dfaa6
rollup merge of #20027: michaelwoerister/for-loop-var
alexcrichton Dec 21, 2014
cfc815b
rollup merge of #20029: vhbit/ios-no-rt
alexcrichton Dec 21, 2014
eb47e1e
rollup merge of #20039: barosl/if-let-friendly-error
alexcrichton Dec 21, 2014
fb6ff04
rollup merge of #20044: csouth3/vec-resize
alexcrichton Dec 21, 2014
40d59e9
rollup merge of #20052: barosl/deref-for-box
alexcrichton Dec 21, 2014
7e62684
rollup merge of #20054: bheesham/nomet
alexcrichton Dec 21, 2014
bc1d818
rollup merge of #20057: nick29581/array-syntax
alexcrichton Dec 21, 2014
e1d0976
rollup merge of #20059: nick29581/self-impl
alexcrichton Dec 21, 2014
f6a7388
rollup merge of #20062: aturon/stab-2-ints
alexcrichton Dec 21, 2014
b187ae5
rollup merge of #20066: aturon/stab-2-cell
alexcrichton Dec 21, 2014
6495c27
rollup merge of #20069: jarod/bitflags
alexcrichton Dec 21, 2014
1dc5e63
rollup merge of #20070: aturon/stab-2-clone
alexcrichton Dec 21, 2014
0191dce
rollup merge of #20077: shepmaster/stdin-typo
alexcrichton Dec 21, 2014
3e5257f
rollup merge of #20079: SimonSapin/string_push_ascii_fast_path
alexcrichton Dec 21, 2014
40e1f7c
rollup merge of #20080: seanmonstar/new-show-syntax
alexcrichton Dec 21, 2014
97f605e
rollup merge of #20081: tomjakubowski/issue-19646
alexcrichton Dec 21, 2014
1c80446
Create a snapshot for 8443b09
flaper87 Dec 20, 2014
2135712
rollup merge of #20086: shepmaster/random-typo
alexcrichton Dec 21, 2014
08ac8d7
rollup merge of #20090: FlaPer87/snapshot
alexcrichton Dec 21, 2014
b084cda
rollup merge of #20100: alexcrichton/issue-20091
alexcrichton Dec 21, 2014
dbeef0e
rollup merge of #19972: alexcrichton/snapshots
alexcrichton Dec 21, 2014
fb7c088
Test fixes and rebase conflicts
alexcrichton Dec 21, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions mk/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -216,36 +216,6 @@ endef
$(foreach docname,$(DOCS),$(eval $(call DEF_DOC,$(docname))))


# Localized documentation

# FIXME: I (huonw) haven't actually been able to test properly, since
# e.g. (by default) I'm doing an out-of-tree build (#12763), but even
# adjusting for that, the files are too old(?) and are rejected by
# po4a.
#
# As such, I've attempted to get it working as much as possible (and
# switching from pandoc to rustdoc), but preserving the old behaviour
# (e.g. only running on the guide)
.PHONY: l10n-mds
l10n-mds: $(D)/po4a.conf \
$(foreach lang,$(L10N_LANG),$(D)/po/$(lang)/*.md.po)
$(warning WARNING: localized documentation is experimental)
po4a --copyright-holder="The Rust Project Developers" \
--package-name="Rust" \
--package-version="$(CFG_RELEASE)" \
-M UTF-8 -L UTF-8 \
$(D)/po4a.conf

define DEF_L10N_DOC
DOC_L10N_TARGETS += doc/l10n/$(1)/$(2).html
doc/l10n/$(1)/$(2).html: l10n-mds $$(HTML_DEPS) $$(RUSTDOC_DEPS_$(2))
@$$(call E, rustdoc: $$@)
$$(RUSTDOC) $$(RUSTDOC_HTML_OPTS) $$(RUSTDOC_FLAGS_$(1)) doc/l10n/$(1)/$(2).md
endef

$(foreach lang,$(L10N_LANGS),$(eval $(call DEF_L10N_DOC,$(lang),guide)))


######################################################################
# Rustdoc (libstd/extra)
######################################################################
Expand Down Expand Up @@ -294,7 +264,3 @@ endif

docs: $(DOC_TARGETS)
compiler-docs: $(COMPILER_DOC_TARGETS)

docs-l10n: $(DOC_L10N_TARGETS)

.PHONY: docs-l10n
17 changes: 0 additions & 17 deletions mk/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,6 @@ endif
TEST_LOG_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
TEST_OK_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).ok

TEST_RATCHET_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4)-metrics.json
TEST_RATCHET_NOISE_PERCENT=10.0

# Whether to ratchet or merely save benchmarks
ifdef CFG_RATCHET_BENCH
CRATE_TEST_EXTRA_ARGS= \
--test $(TEST_BENCH) \
--ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
--ratchet-noise-percent $(TEST_RATCHET_NOISE_PERCENT)
else
CRATE_TEST_EXTRA_ARGS= \
--test $(TEST_BENCH) \
--save-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4))
endif

# If we're sharding the testsuite between parallel testers,
# pass this argument along to the compiletest and crate test
# invocations.
Expand Down Expand Up @@ -455,7 +440,6 @@ $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
$$(Q)touch tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
$$(Q)$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log tmp/
$$(Q)$(CFG_ADB) shell rm $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
$$(Q)$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/$$(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) tmp/
@if grep -q "result: ok" tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp; \
then \
rm tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp; \
Expand Down Expand Up @@ -697,7 +681,6 @@ CTEST_ARGS$(1)-T-$(2)-H-$(3)-$(4) := \
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
--src-base $$(S)src/test/$$(CTEST_SRC_BASE_$(4))/ \
--build-base $(3)/test/$$(CTEST_BUILD_BASE_$(4))/ \
--ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
--mode $$(CTEST_MODE_$(4)) \
$$(CTEST_RUNTOOL_$(4))

Expand Down
2 changes: 1 addition & 1 deletion src/compiletest/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ fn _arm_exec_compiled_test(config: &Config,
stderr_out.as_slice());

ProcRes {
status: process::ExitStatus(exitcode),
status: process::ProcessExit::ExitStatus(exitcode),
stdout: stdout_out,
stderr: stderr_out,
cmdline: cmdline
Expand Down
46 changes: 0 additions & 46 deletions src/doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
document converter, is required to generate docs as HTML from Rust's
source code.

[po4a](http://po4a.alioth.debian.org/) is required for generating translated
docs from the master (English) docs.

[GNU gettext](http://www.gnu.org/software/gettext/) is required for managing
the translation data.

## Building

To generate all the docs, just run `make docs` from the root of the repository.
Expand Down Expand Up @@ -44,43 +38,3 @@ The syntax for pandoc flavored markdown can be found at:
A nice quick reference (for non-pandoc markdown) is at:

- http://kramdown.gettalong.org/quickref.html

## Notes for translators

Notice: The procedure described below is a work in progress. We are working on
translation system but the procedure contains some manual operations for now.

To start the translation for a new language, see `po4a.conf` at first.

To generate `.pot` and `.po` files, do something like:

~~~~
po4a --copyright-holder="The Rust Project Developers" \
--package-name="Rust" \
--package-version="0.13.0" \
-M UTF-8 -L UTF-8 \
src/doc/po4a.conf
~~~~

(the version number must be changed if it is not `0.13.0` now.)

Now you can translate documents with `.po` files, commonly used with gettext. If
you are not familiar with gettext-based translation, please read the online
manual linked from http://www.gnu.org/software/gettext/ . We use UTF-8 as the
file encoding of `.po` files.

When you want to make a commit, do the command below before staging your
change:

~~~~
for f in src/doc/po/**/*.po; do
msgattrib --translated $f -o $f.strip
if [ -e $f.strip ]; then
mv $f.strip $f
else
rm $f
fi
done
~~~~

This removes untranslated entries from `.po` files to save disk space.
8 changes: 4 additions & 4 deletions src/doc/guide-ownership.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ fn main() {
let f = Foo { x: y }; // -+ f goes into scope
// stuff // |
// |
} // -+ f & y go out of scope
} // -+ f and y go out of scope
```

Our `f` lives within the scope of `y`, so everything works. What if it didn't?
Expand All @@ -342,7 +342,7 @@ fn main() {
let y = &5i; // ---+ y goes into scope
let f = Foo { x: y }; // ---+ f goes into scope
x = &f.x; // | | error here
} // ---+ f & y go out of scope
} // ---+ f and y go out of scope
// |
println!("{}", x); // |
} // -+ x goes out of scope
Expand Down Expand Up @@ -395,7 +395,7 @@ struct Wheel {
}

fn main() {
let car = Car { name: "DeLorian".to_string() };
let car = Car { name: "DeLorean".to_string() };

for _ in range(0u, 4) {
Wheel { size: 360, owner: car };
Expand Down Expand Up @@ -431,7 +431,7 @@ struct Wheel {
}

fn main() {
let car = Car { name: "DeLorian".to_string() };
let car = Car { name: "DeLorean".to_string() };

let car_owner = Rc::new(car);

Expand Down
Loading