Skip to content

Commit 584fe30

Browse files
committed
---
yaml --- r: 165423 b: refs/heads/master c: 11a94f2 h: refs/heads/master i: 165421: d75fefa 165419: 4ae3f95 165415: 5d41952 165407: a8b3566 v: v3
1 parent 181c2e1 commit 584fe30

File tree

587 files changed

+19832
-14657
lines changed

Some content is hidden

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

587 files changed

+19832
-14657
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9f4f6cf655c0619541f7251541a2a7221aa78938
2+
refs/heads/master: 11a94f2ac737642d08a77630ff88ebcc4b12c59c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 658529467d9d69ac9e09cacf98a6d61d781c2c76
55
refs/heads/try: aee614fc4973262a5a68efc643026e2b1458d65b

trunk/mk/crates.mk

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@
5151

5252
TARGET_CRATES := libc std flate arena term \
5353
serialize getopts collections test time rand \
54-
log regex graphviz core rbml alloc \
54+
log regex graphviz core rbml alloc rustrt \
5555
unicode
56-
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
57-
rustc_trans rustc_back rustc_llvm
56+
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_driver rustc_trans rustc_back rustc_llvm
5857
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc regex_macros fmt_macros
5958
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6059
TOOLS := compiletest rustdoc rustc
@@ -63,17 +62,17 @@ DEPS_core :=
6362
DEPS_libc := core
6463
DEPS_unicode := core
6564
DEPS_alloc := core libc native:jemalloc
66-
DEPS_std := core libc rand alloc collections unicode \
67-
native:rust_builtin native:backtrace native:rustrt_native
65+
DEPS_rustrt := alloc core libc collections native:rustrt_native
66+
DEPS_std := core libc rand alloc collections rustrt unicode \
67+
native:rust_builtin native:backtrace
6868
DEPS_graphviz := std
6969
DEPS_syntax := std term serialize log fmt_macros arena libc
7070
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
71-
rustc_typeck rustc_resolve log syntax serialize rustc_llvm rustc_trans
71+
rustc_typeck log syntax serialize rustc_llvm rustc_trans
7272
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
7373
log syntax serialize rustc_llvm
7474
DEPS_rustc_typeck := rustc syntax
7575
DEPS_rustc_borrowck := rustc log graphviz syntax
76-
DEPS_rustc_resolve := rustc log syntax
7776
DEPS_rustc := syntax flate arena serialize getopts rbml \
7877
time log graphviz rustc_llvm rustc_back
7978
DEPS_rustc_llvm := native:rustllvm libc std
@@ -120,11 +119,9 @@ DOC_CRATES := $(filter-out rustc, \
120119
$(filter-out rustc_trans, \
121120
$(filter-out rustc_typeck, \
122121
$(filter-out rustc_borrowck, \
123-
$(filter-out rustc_resolve, \
124122
$(filter-out rustc_driver, \
125-
$(filter-out syntax, $(CRATES))))))))
126-
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
127-
rustc_typeck rustc_driver syntax
123+
$(filter-out syntax, $(CRATES)))))))
124+
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_typeck rustc_driver syntax
128125

129126
# This macro creates some simple definitions for each crate being built, just
130127
# some munging of all of the parameters above.

trunk/mk/dist.mk

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
229229
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)
230230
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-MIT $$(PREPARE_DEST_DIR)
231231
$$(Q)$$(PREPARE_MAN_CMD) $$(S)README.md $$(PREPARE_DEST_DIR)
232-
$$(Q)[ ! -d doc ] || cp -r doc $$(PREPARE_DEST_DIR)
232+
$$(Q)cp -r doc $$(PREPARE_DEST_DIR)
233233

234234
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
235235
@$(call E, build: $$@)
@@ -312,17 +312,9 @@ MAYBE_DIST_TAR_SRC=dist-tar-src
312312
MAYBE_DISTCHECK_TAR_SRC=distcheck-tar-src
313313
endif
314314

315-
ifneq ($(CFG_DISABLE_DOCS),)
316-
MAYBE_DIST_DOCS=
317-
MAYBE_DISTCHECK_DOCS=
318-
else
319-
MAYBE_DIST_DOCS=dist-docs
320-
MAYBE_DISTCHECK_DOCS=distcheck-docs
321-
endif
322-
323-
dist: $(MAYBE_DIST_TAR_SRC) dist-osx dist-tar-bins $(MAYBE_DIST_DOCS)
315+
dist: $(MAYBE_DIST_TAR_SRC) dist-osx dist-tar-bins dist-docs
324316

325-
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-osx distcheck-tar-bins $(MAYBE_DISTCHECK_DOCS)
317+
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-osx distcheck-tar-bins distcheck-docs
326318
$(Q)rm -Rf tmp/distcheck
327319
@echo
328320
@echo -----------------------------------------------

trunk/mk/docs.mk

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -216,36 +216,6 @@ endef
216216
$(foreach docname,$(DOCS),$(eval $(call DEF_DOC,$(docname))))
217217

218218

219-
# Localized documentation
220-
221-
# FIXME: I (huonw) haven't actually been able to test properly, since
222-
# e.g. (by default) I'm doing an out-of-tree build (#12763), but even
223-
# adjusting for that, the files are too old(?) and are rejected by
224-
# po4a.
225-
#
226-
# As such, I've attempted to get it working as much as possible (and
227-
# switching from pandoc to rustdoc), but preserving the old behaviour
228-
# (e.g. only running on the guide)
229-
.PHONY: l10n-mds
230-
l10n-mds: $(D)/po4a.conf \
231-
$(foreach lang,$(L10N_LANG),$(D)/po/$(lang)/*.md.po)
232-
$(warning WARNING: localized documentation is experimental)
233-
po4a --copyright-holder="The Rust Project Developers" \
234-
--package-name="Rust" \
235-
--package-version="$(CFG_RELEASE)" \
236-
-M UTF-8 -L UTF-8 \
237-
$(D)/po4a.conf
238-
239-
define DEF_L10N_DOC
240-
DOC_L10N_TARGETS += doc/l10n/$(1)/$(2).html
241-
doc/l10n/$(1)/$(2).html: l10n-mds $$(HTML_DEPS) $$(RUSTDOC_DEPS_$(2))
242-
@$$(call E, rustdoc: $$@)
243-
$$(RUSTDOC) $$(RUSTDOC_HTML_OPTS) $$(RUSTDOC_FLAGS_$(1)) doc/l10n/$(1)/$(2).md
244-
endef
245-
246-
$(foreach lang,$(L10N_LANGS),$(eval $(call DEF_L10N_DOC,$(lang),guide)))
247-
248-
249219
######################################################################
250220
# Rustdoc (libstd/extra)
251221
######################################################################
@@ -294,7 +264,3 @@ endif
294264

295265
docs: $(DOC_TARGETS)
296266
compiler-docs: $(COMPILER_DOC_TARGETS)
297-
298-
docs-l10n: $(DOC_L10N_TARGETS)
299-
300-
.PHONY: docs-l10n

trunk/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ $(eval $(call RUST_CRATE,coretest))
2121

2222
TEST_TARGET_CRATES = $(filter-out core unicode,$(TARGET_CRATES)) coretest
2323
TEST_DOC_CRATES = $(DOC_CRATES)
24-
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve rustc_trans,\
25-
$(HOST_CRATES))
24+
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_trans,$(HOST_CRATES))
2625
TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)
2726

2827
######################################################################

trunk/src/compiletest/runtest.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use std::io;
3232
use std::os;
3333
use std::str;
3434
use std::string::String;
35-
use std::thread::Thread;
35+
use std::task;
3636
use std::time::Duration;
3737
use test::MetricMap;
3838

@@ -445,9 +445,9 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
445445
loop {
446446
//waiting 1 second for gdbserver start
447447
timer::sleep(Duration::milliseconds(1000));
448-
let result = Thread::spawn(move || {
448+
let result = task::try(move || {
449449
tcp::TcpStream::connect("127.0.0.1:5039").unwrap();
450-
}).join();
450+
});
451451
if result.is_err() {
452452
continue;
453453
}
@@ -1609,7 +1609,7 @@ fn _arm_exec_compiled_test(config: &Config,
16091609
stderr_out.as_slice());
16101610

16111611
ProcRes {
1612-
status: process::ProcessExit::ExitStatus(exitcode),
1612+
status: process::ExitStatus(exitcode),
16131613
stdout: stdout_out,
16141614
stderr: stderr_out,
16151615
cmdline: cmdline
@@ -1666,7 +1666,7 @@ fn compile_test_and_save_bitcode(config: &Config, props: &TestProps,
16661666
// FIXME (#9639): This needs to handle non-utf8 paths
16671667
let mut link_args = vec!("-L".to_string(),
16681668
aux_dir.as_str().unwrap().to_string());
1669-
let llvm_args = vec!("--emit=llvm-bc,obj".to_string(),
1669+
let llvm_args = vec!("--emit=bc,obj".to_string(),
16701670
"--crate-type=lib".to_string());
16711671
link_args.extend(llvm_args.into_iter());
16721672
let args = make_compile_args(config,

trunk/src/doc/README.md

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
document converter, is required to generate docs as HTML from Rust's
77
source code.
88

9-
[po4a](http://po4a.alioth.debian.org/) is required for generating translated
10-
docs from the master (English) docs.
11-
12-
[GNU gettext](http://www.gnu.org/software/gettext/) is required for managing
13-
the translation data.
14-
159
## Building
1610

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

4640
- http://kramdown.gettalong.org/quickref.html
47-
48-
## Notes for translators
49-
50-
Notice: The procedure described below is a work in progress. We are working on
51-
translation system but the procedure contains some manual operations for now.
52-
53-
To start the translation for a new language, see `po4a.conf` at first.
54-
55-
To generate `.pot` and `.po` files, do something like:
56-
57-
~~~~
58-
po4a --copyright-holder="The Rust Project Developers" \
59-
--package-name="Rust" \
60-
--package-version="0.13.0" \
61-
-M UTF-8 -L UTF-8 \
62-
src/doc/po4a.conf
63-
~~~~
64-
65-
(the version number must be changed if it is not `0.13.0` now.)
66-
67-
Now you can translate documents with `.po` files, commonly used with gettext. If
68-
you are not familiar with gettext-based translation, please read the online
69-
manual linked from http://www.gnu.org/software/gettext/ . We use UTF-8 as the
70-
file encoding of `.po` files.
71-
72-
When you want to make a commit, do the command below before staging your
73-
change:
74-
75-
~~~~
76-
for f in src/doc/po/**/*.po; do
77-
msgattrib --translated $f -o $f.strip
78-
if [ -e $f.strip ]; then
79-
mv $f.strip $f
80-
else
81-
rm $f
82-
fi
83-
done
84-
~~~~
85-
86-
This removes untranslated entries from `.po` files to save disk space.

trunk/src/doc/guide-macros.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ macro_rules! early_return(
5858
_ => {}
5959
}
6060
);
61-
);
61+
)
6262
// ...
6363
early_return!(input_1 T::SpecialA);
6464
// ...
@@ -179,8 +179,8 @@ macro_rules! early_return(
179179
)+
180180
_ => {}
181181
}
182-
)
183-
);
182+
);
183+
)
184184
// ...
185185
early_return!(input_1, [T::SpecialA|T::SpecialC|T::SpecialD]);
186186
// ...
@@ -275,17 +275,17 @@ macro_rules! biased_match (
275275
_ => { $err }
276276
};
277277
)
278-
);
278+
)
279279
280280
# enum T1 { Good1(T2, uint), Bad1}
281281
# struct T2 { body: T3 }
282282
# enum T3 { Good2(uint), Bad2}
283283
# fn f(x: T1) -> uint {
284284
biased_match!((x) ~ (T1::Good1(g1, val)) else { return 0 };
285-
binds g1, val );
285+
binds g1, val )
286286
biased_match!((g1.body) ~ (T3::Good2(result) )
287287
else { panic!("Didn't get good_2") };
288-
binds result );
288+
binds result )
289289
// complicated stuff goes here
290290
return result + val;
291291
# }
@@ -303,7 +303,7 @@ pattern we want is clear:
303303
( $( ($e:expr) ~ ($p:pat) else $err:stmt ; )*
304304
binds $( $bind_res:ident ),*
305305
)
306-
# => (0));
306+
# => (0))
307307
~~~~
308308

309309
However, it's not possible to directly expand to nested match statements. But
@@ -323,7 +323,7 @@ input patterns:
323323
# #![feature(macro_rules)]
324324
# macro_rules! b(
325325
( binds $( $bind_res:ident ),* )
326-
# => (0));
326+
# => (0))
327327
# fn main() {}
328328
~~~~
329329

@@ -337,7 +337,7 @@ input patterns:
337337
$( ($e_rest:expr) ~ ($p_rest:pat) else $err_rest:stmt ; )*
338338
binds $( $bind_res:ident ),*
339339
)
340-
# => (0));
340+
# => (0))
341341
~~~~
342342

343343
The resulting macro looks like this. Note that the separation into
@@ -366,7 +366,7 @@ macro_rules! biased_match_rec (
366366
);
367367
// Produce the requested values
368368
( binds $( $bind_res:ident ),* ) => ( ($( $bind_res ),*) )
369-
);
369+
)
370370
371371
// Wrap the whole thing in a `let`.
372372
macro_rules! biased_match (
@@ -388,7 +388,7 @@ macro_rules! biased_match (
388388
binds $( $bind_res ),*
389389
);
390390
)
391-
);
391+
)
392392
393393
394394
# enum T1 { Good1(T2, uint), Bad1}
@@ -398,7 +398,7 @@ macro_rules! biased_match (
398398
biased_match!(
399399
(x) ~ (T1::Good1(g1, val)) else { return 0 };
400400
(g1.body) ~ (T3::Good2(result) ) else { panic!("Didn't get Good2") };
401-
binds val, result );
401+
binds val, result )
402402
// complicated stuff goes here
403403
return result + val;
404404
# }
@@ -444,7 +444,7 @@ macro_rules! loop_x (
444444
$e
445445
}
446446
);
447-
);
447+
)
448448
449449
fn main() {
450450
'x: loop {
@@ -482,30 +482,30 @@ An example:
482482

483483
```rust
484484
# #![feature(macro_rules)]
485-
macro_rules! m1 (() => (()));
485+
macro_rules! m1 (() => (()))
486486

487487
// visible here: m1
488488

489489
mod foo {
490490
// visible here: m1
491491

492492
#[macro_export]
493-
macro_rules! m2 (() => (()));
493+
macro_rules! m2 (() => (()))
494494

495495
// visible here: m1, m2
496496
}
497497

498498
// visible here: m1
499499

500-
macro_rules! m3 (() => (()));
500+
macro_rules! m3 (() => (()))
501501

502502
// visible here: m1, m3
503503

504504
#[macro_escape]
505505
mod bar {
506506
// visible here: m1, m3
507507

508-
macro_rules! m4 (() => (()));
508+
macro_rules! m4 (() => (()))
509509

510510
// visible here: m1, m3, m4
511511
}

0 commit comments

Comments
 (0)